Re: platform support
On Sat, 15 Jul 2006, ahmet alper parker wrote: > Dear all, I am planning to develop a c/c++ application and I > am searching for a good gui designer and found gtk+ and glade. > I have a simple question. If I develop a gui with glade will > it be platform independent? (or how I can achieve this?) Do I > need gtk+ to be supported at all platforms (in ex. linux/unix > mac windows etc...) GTK is an excellent toolkit, and it offers very decent cross-platform operability. But there are a few things to watch out for. First of all, yes, you need a gtk+ runtime on all platforms. Glade is basically a design tool, not a substitute for the gtk libraries. Then there's an issue with gtk versions. The latest and greatest works fine on GNU/Linux and (I think) Windows XP and related OSs. It doesn't work on win98 -- for that you have to back up to an earlier version. And GTK on Mac OS X is a bit fiddly. There's a "native" OS X verson of gtk, but it's not stable yet. The alternative is running the X11 version on OS X, which is quite doable but requires quite a lot of setup. -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
What's worry with the "entry" widget? It makes my application so ugly!
Hello everyone First ,I am sorry for my poor Englisth ! In my application, there are sveral "entry" widgets usually ,they are nice, and the widget's default size is that: it's width can accommodate 12 characters ,as follow, +-+ |012345678901| +-+ But ,today , when I test my application, I suddenly found that, the "entry" widget's default size it lagger than before it's width can accommodate nearly 25 characters ,asfollow, ++ |01234567890123456789012345| ++ The entry widget suddenly changed so large, It makes my application ugly I did not know why it becomes so large I need your help! Any commets would be much appreciated, and thanks in advance! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: platform support
thanks a lot for warm and kind answers... whish you all good things Regards with best wishes Ahmet Alper Parker On 7/15/06, ahmet alper parker <[EMAIL PROTECTED]> wrote: > > Dear all, I am planning to develop a c/c++ application and I am searching > for a good gui designer and found gtk+ and glade. I have a simple question. > If I develop a gui with glade will it be platform independent? (or how I can > achieve this?) Do I need gtk+ to be supported at all platforms (in ex. > linux/unix mac windows etc...) > Thanks for your answers > regards > Ahmet Alper Parker > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: platform support
On Sat, 2006-07-15 at 23:19 -0400, Allin Cottrell wrote: [big snip] I completely agree with Allin in his view of the GTK+ toolkit. > The alternative is running the X11 version on OS X, > which is quite doable but requires quite a lot of setup. Fortunately, there some quite good package distributions that drives the effort to a bare minimum, being reasonably easy to setup GTK+ on OsX right now. It comes to my mind the Fink project, http://fink.sourceforge.net/ . I've compiled some Linux developed GTK+ applications on OsX with fink's GTK+ packages, with success in all cases. There are some other library stacks that let you use GTK+ on OsX as OpenDarwin's DarwingPorts, reachable at http://opendarwin.org/ http://darwinports.opendarwin.org/ . With those distributions being quite mature, and the forthcoming of the native GTK+-cocoa port, the future of GTK+ on OsX is not just bright but sparkling. Just a counsel if you're going to develop multi-platform GTK+ apps: glib is your best friend, use it as much as you can. Regards. -- Iago Rubio -- Iago Rubio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: platform support
just to confirm, it is nearly ok on mac osX and ok on linux and windows. how about unix (and mostly on solaris)? I think it is ok since most of the linux programs run on unix too but I dont know exectly, I am a beginner and I dont know wether there is a difference for linux and unix programs. Regars... Ahmet Alper Parker On 7/15/06, ahmet alper parker <[EMAIL PROTECTED]> wrote: > > Dear all, I am planning to develop a c/c++ application and I am searching > for a good gui designer and found gtk+ and glade. I have a simple question. > If I develop a gui with glade will it be platform independent? (or how I can > achieve this?) Do I need gtk+ to be supported at all platforms (in ex. > linux/unix mac windows etc...) > Thanks for your answers > regards > Ahmet Alper Parker > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Can I hide password in config file?
Hi, I'm using the GLIB Key-value file parser (http://developer.gnome.org/doc/API/2.0/glib/glib-Key-value-file-parser.html) to create or read from a config file. The contents of this file is servername, port, some other things and a password for accessing this server. The user can use an options-dialog in my application to set those data and my application will write it to this file, so he hasn't to bother with the syntax. At the moment the password is clearly visible, as it is a normal key value. I'm looking for a way to protect the password. It should be stored in that file but like /etc/password. I have no clue how to do that. Any ideas? Thanks a lot ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: What's worry with the "entry" widget? It makes my application so ugly!
hi, if you want fine control over the size of your entry widgets, the following routines may be of help: gtk_entry_set_max_length() gtk_entry_set_width_chars() richard On Jul 16, 2006, at 9:39 AM, chao yeaj wrote: > Hello everyone > First ,I am sorry for my poor Englisth ! > > In my application, there are sveral "entry" widgets > > usually ,they are nice, and the widget's default size is that: > it's width can accommodate 12 characters ,as follow, > +-+ >|012345678901| > +-+ > > But ,today , when I test my application, > I suddenly found that, the "entry" widget's default size it lagger > than before >it's width can accommodate nearly 25 characters ,asfollow, > ++ > |01234567890123456789012345| > ++ > > > The entry widget suddenly changed so large, > It makes my application ugly > > I did not know why it becomes so large > I need your help! > > Any commets would be much appreciated, and thanks in advance! > ___ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: platform support
ahmet alper parker wrote: > just to confirm, it is nearly ok on mac osX and ok on linux and windows. how > about unix (and mostly on solaris)? I think it is ok since most of the linux > programs run on unix too but I dont know exectly, I am a beginner and I dont > know wether there is a difference for linux and unix programs. > Regars... I would caution you to understand your user community. I work on an open source cross platform product (CvsGui). The person that maintains the Mac port does not use the Gtk implementation, but has written a native one. Serious Mac users disdain most cross-platform tools, because most apps end up feeling like Windows applications, and the native Mac look and feel is quite different from that. If your app has a restricted user community and they are okay with Gtk apps, then fine. The old axim holds: know your customer. -- Guy Rouillier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: RADiola, a GTK RAD tool
Hello! > Message: 1 > Date: Fri, 14 Jul 2006 22:55:31 +0530 > From: Santhosh <[EMAIL PROTECTED]> > Subject: Re: RADiola, a GTK RAD tool > To: "Fabricio Rocha" <[EMAIL PROTECTED]> > Cc: gtk-app-devel-list@gnome.org > > You may need to find out the difference that RADiola is going to make... Thanks, Santhosh. In reply, there are some fundamental differences: - While Glade and Gazpacho are UI-builders, RADiola aims to be an application builder. This includes variables and subroutines, among other things. - Glade and Gazpacho are highly tied to GTK, and so are their users. RADiola is being made with GTK, but the user-created applications might adopt any other toolkit and various programming languages. - Users of those and other GUI builders still have to dominate a programming language and an API for creating an application, while RADiola will try to abstract all this "coding stuff" as much as possible. > I dont think that people would start working on your project just with > the concept... You need some code which atleast has something in it... > and it should convince the users to work on it... Sure. When I finish the planning stage (which includes the Development Guide) I will start writing code. It is just a big boost to know that there is people who has interest in a software like RADiola. I would not expect that anyone would do a "okay, lemme write yer code fer ya". But I will be glad to send the documentation, interface files, etc., and discuss them with anyone who might be interested. Best regards! Fabricio Rocha Brasilia, Brasil ___ Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! http://br.mobile.yahoo.com/mailalertas/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Can I hide password in config file?
On Sat, Jul 15, 2006 at 09:33:17PM +0200, Karl Reichert wrote: > I'm using the GLIB Key-value file parser > (http://developer.gnome.org/doc/API/2.0/glib/glib-Key-value-file-parser.html) > to create or read from a config file. The contents of this file is > servername, port, some other things and a password for accessing this server. > The user can use an options-dialog in my application to set those data and my > application will write it to this file, so he hasn't to bother with the > syntax. > > At the moment the password is clearly visible, as it is a normal key value. > I'm looking for a way to protect the password. It should be stored in that > file but like /etc/password. You cannot store it `as in /etc/passwd', read crypt(3) for details (assuming password as it was stored in /etc/passwd where it is not stored anymore). The short reason is that the password is not intended to be obtainable (to reveal it one has to search the password space). Your app does not need to check the passwords, it needs to obtain the passwords. And if your app can do that, anyone can. So you have the following possibilities: - do nothing, just make sure the file is 0700 (this advice applies to all following too) - use some mild obfuscation like Base64 (GLib 2.12 can do Base64) to make yourself feel better - encrypt the passwords with a master password the user has to enter to decrypt and obtain them -- see e.g. Firefox Yeti -- Anonyms eat their boogers. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: RADiola, a GTK RAD tool
On 7/14/06, Fabricio Rocha <[EMAIL PROTECTED]> wrote: > Well, I have to say that RADiola, as described in the User Guide, still > does NOT exist. well, that's pretty obvious. > The (sad) reality is that I am only a hobbyist programmer (in fact > I'm a TV reporter in the Politics area!), with little GTK experience, > and still had no time for writing more than a few lines of code. That says a lot. If you were an experienced programmed, you would know better that the kind of program you are aiming for is a lot hard. Specially the "GUI-oriented programming" stuff. It's already hard enough to have just a visual GUI-builder, let alone a visual code-builder. good luck, but if i was to give any advice, it would be to aim lower... and release actual code. Any code is better than none. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Load modules in Gtk+ IMModules
Hi all, Now, I'm developing my own text input method module by using the GtkIMModule. My own text input method is seperated to two major component, one is input engine and the other one is input helper. Input engine tooks response for retrieving the correct candidates for users inputs, while the Input helper charges for displaying them to the screen. And various input engines and input helpers are supported. my own text input method module here, plays the part of manager to choose the proper input engine and input helper for the current user. So I want my module can load the need engines or helpers module dynamically. The specific GtkIMModule is loaded as a module when the input method is selected, so all types in the module will be register use g_type_module_register_type(). I load my engines and helpers module in the class initizlize function and call g_type_module_use() and unload them in class finalzie function. Here is the problem, the first time I select my own input method module from the pop-up menu of a editable widget, it works perfect. But after I change to other input methods and re-select it again, an error occurs: Two different plugins tried to register 'x'. is a widget class defined in the helper module. Here are piece of my code: static void gtk_im_context_ptim_init(GTypeInstance * this, gpointer class) { GtkIMContextPTIM * this_ptim = GTK_IM_CONTEXT_PTIM(this); ... this->helper_module = g_object_new(PTIM_TYPE_HELPER_MODULE, NULL); this->helper_module->path = g_strdup(module_path); g_type_module_set_name(G_TYPE_MODULE(this->helper_module), this->helper_module->path); if (g_type_module_use(G_TYPE_MODULE(this->helper_module))) { gboolean res = TRUE; if (this->helper_module->helper_moudule_init) { res = this->helper_module->helper_moudule_init(G_TYPE_MODULE(this->helper_module)); } return res; } return; } ... static void gtk_im_context_ptim_finalize(GObject * this) { GtkIMContextPTIM * this_ptim = GTK_IM_CONTEXT_PTIM(this); GtkIMContext * super_class; ... g_type_module_unuse(G_TYPE_MODULE(this_ptim->helper_module)); /* Super class finalizatoin. */ super_class = g_type_class_peek(g_type_parent(GTK_TYPE_IM_CONTEXT_PTIM)); G_OBJECT_CLASS(super_class)->finalize(this); return; } The PTIM_TYPE_HELPER_MODULE is a sub-class of GTypeModule defined by myself to implement a specific helper module. helper_moudule_init() register all the types unsed by helper widgets. So, could anyone give some advices about the problem? Best regards, Nan Ye ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How can i show a GtkImage widget ?
Hello,everyone I have GtkWidget like this: GtkWidget *image = gtk_image_new_from_file("~/image.jpg"); and i show that widget like this: GtkWidget *frame = gtk_frame_new(NULL); gtk_container_add(GTK_CONTAINER(frame),image); gtk_show_widget_all(frame); But ,the problem is,I can not see the image in my application Why ? Any comments would be much appreciated,and thanks in advance !! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GtkEntryCompletion
Hello all, I am having some problems in controlling the drop-down list that appears from the GtkEntryCompletion. I have a long lisk of entries that can be popped up for the completion. By default if there are more than 14 elements, the EntryCompletion drop down list adds a scroll bar to its side. What should i do to make the scroll bar appear for 5 elements or more. Is there a method available to control when the scroll bar appears for the EntryCompletion. Thanks in advance for the help, nerdy - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: RADiola, a GTK RAD tool
Maybe I can give some help on RADiola. My suggestion would be to get the bare GUI you have done, compile and release it so that there will be a skeleton. There also is another issue I thought about which is the language support. Excuse me if you wrote something about this already in the documentation released but I did not have time to go through it in detail. My idea was as follows: Since you are aiming at a tool which makes application development easy, I would suggest picking a suitable language (or even a set). Something like python might be quite easy to handle. However the language binding can be done as some sort of plugin which is dynamically loaded. What were the intentions in this direction? Atanas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Question about put "GtkWidget" pointer as function's argument
Hello everyone My code like this: int create_image_from_file(GtkWidget *splash) { GtkWidget image = NULL; GtkWidget frame = NULL; image = gtk_image_new_from_file("~/splash.png"); frame = gtk_frame_new("image"); gtk_container_add(GTK_CONTAINER(frame),image); splash = frame;/* Here, the splash is not NULL*/ return 0;; } int other_function() { GtkWidget *splash = NULL; create_image_from_file(splash); /* Here, the splash is still NULL, Why ?*/ /* Here, the splash is still NULL, Why ?*/ } I do not know why the splash pointer in the "other_function" is still NULL,i need your help ? Any comments would be much appreciated,and thanks in advance ! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Question about put "GtkWidget" pointer as function's argument
chao yeaj wrote: > splash = frame;/* Here, the splash is not NULL*/ splash is a local variable. if you want to assign to the data at the pointer: *splash=frame ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list