XIM key interpretation fix for 2.2.x?
Hi, I've been looking through bugzilla for the exact report.. but there was (still is w/ 2.2.x) a problem where when using the XIM based immodule, key events are recieved by the application even when an XIM consumes those keys. For example, in gedit, if one uses the skkinput method, hitting Ctrl+G in the appropriate context will always trigger a gedit dialog box, though in skkinput, it means to cancel the current conversion. The bug is particularly annoying when Enter means different things to the IM and the application. Anyhow, I know it has been fixed (i just can't find the report) and was curious if it could be backported to the 2.2.x branch, as it is still quite annoying to deal with (in every gtk+ app). I tried 2.2.3 but the behaviour was still the same. Ken -- If only God were alive to see this.. -Homer Simpson ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GtkCombo with active glist
Does anybody how to have a gtkCombo where the associated GList is visible the entry is receiving keyboard input? I mean, something like what you see in mozilla while typing something into the location entry? Can that behaviour be achieved in gtk without some ugly hack? TIA Edscott ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: color in string
Luiz Rafael Culik Guimaraes wrote: Hi how to transform the GDK_COLOR structure resulted from an GtkColorSelection Dialog in the form of #33DD44 Regads Luiz This is untested, but should work: GdkColor c; char s[8]; sprintf( s, #%02x%02x%02x, c.red8, c.green8, c.blue8 ); -- Tim Evans Applied Research Associates NZ http://www.aranz.com/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: color in string
On Monday 01 September 2003 21:40, Tim Evans wrote: Luiz Rafael Culik Guimaraes wrote: how to transform the GDK_COLOR structure resulted from an GtkColorSelection Dialog in the form of #33DD44 This is untested, but should work: GdkColor c; char s[8]; sprintf( s, #%02x%02x%02x, c.red8, c.green8, c.blue8 ); Try: gdk_color_parse(#33DD44,c); Dave Smith ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Learning GTK / GUI Programming
Hi Rick, GNOME has a Human Interface guideline for designing GUI, it is applied to GTK+ application too. http://developer.gnome.org/projects/gup/hig For general hacking, refer to GNU Coding Standards http://www.gnu.org/prep/standards_toc.html regards, HOH On Sat, 2003-08-30 at 07:03, Rick Sutphin wrote: Hello, I am a newbie who is trying to learn GTK+, and GUI programming in general. I have gone through the tutorial, and have written a couple simple programs. What I am having trouble with, is trying to learn to write/design larger applications. The programs I have written so far have been ugly; full of global variables, and with the application code tightly coupled to the GUI code. Does anyone have any suggestions of how to learn to write clean well designed GUI applications (in GTK or just in general)? Rick ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list -- Chee Bin HOH ([EMAIL PROTECTED]), from where I belong, GNU and Free Software community (http://www.gnu.org) Where we're going, we don't need roads..., GNOME (http://www.gnome.org) Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html ** * The views expressed here regarding about Free Software are my personal * * views, not those of MIMOS Berhad (http://www.mimos.my) and * * iVEST (http://www.ivest.com.my)* ** ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GtkTreeModel
On Sun, 2003-08-31 at 13:27, Christer Palm wrote: Hi! A question for all you GtkTreeModel wizards out there; I have implemented a custom GtkTreeModel to model a directory tree. For obvious performance reasons, I need to delay the scanning of a subdirectory until the user actually expands it. Thus, all directories will initially be assumed to contain subdirectories (i.e. my gtk_tree_model_iter_has_child() implementation speculatively returns true). The tricky part is what happens if the user tries to expand a subdirectory which doesn't happen to contain any subdirectories. Just like the Windoze explorer (cough) directory view, I want the expander for that directory to magically disappear when the user tries to expand it. Use gtktreestore model. Add a dummy for non expanded directories. That makes the expander appear. When the user expands, if nothing is in there, collapse the node and remove the dummy. Since there will be no children, the expander disappears. But what would you do if some other process or whatever creates a file in that directory? You will not be able to expand it, unless you are constantly monitoring the contents. Edscott However, just having the model change its mind turns out to be a very bad idea. I get messages like: (DirectoryTreeTest:30175): Gtk-CRITICAL **: file gtktreeview.c: line 3243 (gtk_tree_view_bin_expose): assertion `has_child' failed. There is a disparity between the internal view of the GtkTreeView, and the GtkTreeModel. This generally means that the model has changed without letting the view know. Any display from now on is likely to be incorrect. all over the place... How can I let the view know that the model has changed, and is it safe to do it from within the GtkTreeModel implementation? Cheers, -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: XIM key interpretation fix for 2.2.x?
On Mon, 1 Sep 2003 16:58:18 -0700 Ken Deeter [EMAIL PROTECTED] wrote: I've been looking through bugzilla for the exact report.. but there was(still is w/ 2.2.x) a problem where when using the XIM based immodule, key events are recieved by the application even when an XIM consumes those keys. It's not a problem about XIM based immodule only. All of immodule has the same problem. I've reported to bugzilla a few month ago, and you can see the report at http://bugzilla.gnome.org/show_bug.cgi?id=111438 Anyhow, I know it has been fixed (i just can't find the report) and was curious if it could be backported to the 2.2.x branch, as it is still quite annoying to deal with (in every gtk+ app). I tried 2.2.3 but the behaviour was still the same. This bug has been fixed? I've tested latest CVS now, but seems this bug isn't fixed yet. To solve this problem, once inputing starts, input method should steal all inputs from the keyboard until inputing ends, I think. (I haven't finished reading XEMBED Spec and haven't understood proper behavior of Client/Embedder, so I cannot say how we should do to solve the problem.) Regards, TOKUNAGA Hiroyuki ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GtkTreeModel
Hello Edscott! edscott wilson garcia wrote: The tricky part is what happens if the user tries to expand a subdirectory which doesn't happen to contain any subdirectories. Just like the Windoze explorer (cough) directory view, I want the expander for that directory to magically disappear when the user tries to expand it. Use gtktreestore model. Add a dummy for non expanded directories. That makes the expander appear. When the user expands, if nothing is in there, collapse the node and remove the dummy. Since there will be no children, the expander disappears. Hmm.. Yeah - that should work I guess. Although it feels a bit backward from an object-oriented point-of-view. But what would you do if some other process or whatever creates a file in that directory? You will not be able to expand it, unless you are constantly monitoring the contents. The view is transient so I don't think that would be a real problem. But I could easily add some kind of (user activated) refresh mechanism if that would be necessary. If I store the last modified timestamp along with the directory name, it would just be a matter of checking whether the timestamp has changed. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: color in string
Hi Tim This is untested, but should work: GdkColor c; char s[8]; sprintf( s, #%02x%02x%02x, c.red8, c.green8, c.blue8 ); thanks for the help []´s Luiz ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: color in string
Hi Dave gdk_color_parse(#33DD44,c); What i realy want to do is the inverse of this function Regards Luiz ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: XIM key interpretation fix for 2.2.x?
This bug has been fixed? I've tested latest CVS now, but seems this bug isn't fixed yet. My apologies, http://bugzilla.gnome.org/show_bug.cgi?id=90082 was the one I was looking for but apparently there has been some more stuff added since I last looked. To solve this problem, once inputing starts, input method should steal all inputs from the keyboard until inputing ends, I think. (I haven't finished reading XEMBED Spec and haven't understood proper behavior of Client/Embedder, so I cannot say how we should do to solve the problem.) Right, I'm not too sure of the details either, but the input methods definitely need to receive everything before anyone else. I suppose this makes the original request moot. I just hope this is really solved before 2.4 then. Wish I had the time to poke around the code myself :-( Ken -- If only God were alive to see this.. -Homer Simpson ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Compiling and Installing GTK+2.2
I am trying to install GTK+2.2.1 on a Redhat 9.0 system. I have sucessfully installed Glib, and Pango. Each configured and installed with no errors or warnings. However when I try to ./configure GTK+2.2.1 I get an error stating the following: checking Pango flags... -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -Wl,--export-dynamic -L/usr/local/lib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 configure: error: *** Can't link to Pango. Pango is required to build Not sure why I am getting this error. I tried googling it but no luck. Any help would be appreciated. Les ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Compiling and Installing GTK+2.2
[EMAIL PROTECTED] wrote: I am trying to install GTK+2.2.1 on a Redhat 9.0 system. I have sucessfully installed Glib, and Pango. Each configured and installed with no errors or warnings. However when I try to ./configure GTK+2.2.1 I get an error stating the following: checking Pango flags... -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -Wl,--export-dynamic -L/usr/local/lib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 configure: error: *** Can't link to Pango. Pango is required to build Not sure why I am getting this error. I tried googling it but no luck. One suggestion - try to remove old *.pc files from /usr/lib/pkgconfig dir. They still live there even you've removed devel packages from distro. Olexiy ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Fw: Changing the font of an gtkbutton label
Dear friends How to change the font of an button label this is an generic piece of code i use to change font for labels on menus and gtklabels PangoFontDescription *font_desc = pango_font_description_from_string(prop-value.font); GtkRcStyle *style ; switch( wWidget-type ) { case XWT_TYPE_BUTTON: case XWT_TYPE_TOGGLEBUTTON: case XWT_TYPE_RADIOBUTTON: case XWT_TYPE_CHECKBOX: { GtkWidget *child = gtk_bin_get_child(GTK_BIN(wSelf)); gtk_widget_modify_font(GTK_WIDGET(child),font_desc); } break; case XWT_TYPE_LABEL: style = gtk_widget_get_modifier_style(wMain); style - font_desc = font_desc; gtk_widget_modify_style(GTK_WIDGET(wMain) , style); break; } For labels(GTK_LABEL) works properly, what i'm doing wrong on this code Thanks in advance Regards Luiz ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Fw: Changing the font of an gtkbutton label
Luiz Rafael Culik Guimaraes wrote: Dear friends How to change the font of an button label this is an generic piece of code i use to change font for labels on menus and gtklabels PangoFontDescription *font_desc = pango_font_description_from_string(prop-value.font); GtkRcStyle *style ; switch( wWidget-type ) { case XWT_TYPE_BUTTON: case XWT_TYPE_TOGGLEBUTTON: case XWT_TYPE_RADIOBUTTON: case XWT_TYPE_CHECKBOX: { GtkWidget *child = gtk_bin_get_child(GTK_BIN(wSelf)); gtk_widget_modify_font(GTK_WIDGET(child),font_desc); } break; case XWT_TYPE_LABEL: style = gtk_widget_get_modifier_style(wMain); style - font_desc = font_desc; gtk_widget_modify_style(GTK_WIDGET(wMain) , style); break; } For labels(GTK_LABEL) works properly, what i'm doing wrong on this code One of many ways will look like: GtkWidget *button; PangoFontDescription*pfd; button = gtk_button_new_with_label (test); pfd = pango_font_description_from_string (Sans 32); gtk_widget_modify_font ( GTK_WIDGET (gtk_bin_get_child (button)), pfd); pango_font_description_free (pfd); I can't say what's wrong with your code, put a link to complete example which one can look/compile etc. Olexiy ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Hi
Hi, I want to develope few application using PHP-GTK toolkit. Can u help me Rajesh _ Need a naukri? Your search ends here. http://www.msn.co.in/naukri/ 50,000 of the best jobs! ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Hi
On Tue, 2003-09-02 at 06:53, Rajesh Khurana wrote: Hi, I want to develope few application using PHP-GTK toolkit. Can u help me Check the php-gtk web site for any api docs, and then look at some example code. You also need to be familiar with how GTK works (main loop and all). For that I recommend the GTK tutorial on the gtk web site. Please ask a more specific question and I'm sure you'll get a very good answer. Rajesh _ Need a naukri? Your search ends here. http://www.msn.co.in/naukri/ 50,000 of the best jobs! ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list -- Michael L Torrie [EMAIL PROTECTED] ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: XIM key interpretation fix for 2.2.x?
On Mon, 2003-09-01 at 23:10, TOKUNAGA Hiroyuki wrote: On Mon, 1 Sep 2003 16:58:18 -0700 Ken Deeter [EMAIL PROTECTED] wrote: I've been looking through bugzilla for the exact report.. but there was(still is w/ 2.2.x) a problem where when using the XIM based immodule, key events are recieved by the application even when an XIM consumes those keys. It's not a problem about XIM based immodule only. All of immodule has the same problem. I've reported to bugzilla a few month ago, and you can see the report at http://bugzilla.gnome.org/show_bug.cgi?id=111438 I'd suggest looking at: http://bugzilla.gnome.org/show_bug.cgi?id=90082 instead. The problem is not widgets should get all keystrokes before accelerator processing But: Input methods should get keystrokes before accelerator processing The first would be a way of solving the second, but not the only way. Anyhow, I know it has been fixed (i just can't find the report) and was curious if it could be backported to the 2.2.x branch, as it is still quite annoying to deal with (in every gtk+ app). I tried 2.2.3 but the behaviour was still the same. This bug has been fixed? I've tested latest CVS now, but seems this bug isn't fixed yet. To solve this problem, once inputing starts, input method should steal all inputs from the keyboard until inputing ends, I think. (I haven't finished reading XEMBED Spec and haven't understood proper behavior of Client/Embedder, so I cannot say how we should do to solve the problem.) Yes, handling XEMBEd is a major problem here. Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Referencing Widgets?
On Mon, 2003-09-01 at 14:08, Steve Woodward wrote: My apologies for grabbing the wrong list, will be sure to subscribe to the appropriate list. Thanks for the reply, that helps to clear things up. I was under the impression that by having the widgets defined in interface.h I could reference them directly...in other words, if entryStartNum is defined in interface.h I could just refer to it by that name without having to declare another variable. But I get it now, and I'm past that hurdle and on to the next! Many, many thanks. Please see: http://lists.ximian.com/archives/public/glade-devel/2003-February/15.html and switch to using libglade instead of generating code with Glade Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Trouble with delete-event
On Mon, 2003-09-01 at 03:50, Giovanni Corriga wrote: Il lun, 2003-09-01 alle 04:03, Havoc Pennington ha scritto: It seems to work for lots of other programs... are you sure you don't have some other mistake? Post a small, compilable test case... I found the problem. It was due to the fact that when you click on the close button, the window isn't destroyed, but is put below the other windows. Yes, this is an (IMO) annoying misfeature of metacity. I think the intent is to get the window out of your way faster, but the practical effect is increased confusion for even sophisticated users; even when you don't lose windows, more stuff is moving around so it makes the desktop feel less stable.) (It works especially bad for acroread, but then the fact that the close button closes the document in acroread, not the window, is crack anyways.) For some strange reason, the window list applet didn't show my window, so it seemed that the window was deleted. That, I don't understand. Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Referencing Widgets?
Owen Taylor wrote: and switch to using libglade instead of generating code with Glade Just three things I noticed when using (lib)glade2: 1) error displaying notebooks w/ empty pages (only the last tab is displayed) 2) missing first and last page in GnomeDruid 3) sometimesbutton and user_data are swapped for clicked signal (IIRC if user_data is not NULL) Using Glade to generate the code does work, obv! BYtE, Diego. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: Compiling and Installing GTK+2.2
Hi there, Related to the *.pc I got a question. I didn't try to install the new version of gtk yet event I download all the requirement file already. What I want to do is try to make the existing gtk came with redhat 9 work first. How every when I compile gtk code follow the instruction on gtk manual ther was and error. It said something like gtk+-2.0.pc is not found. What is the content of gtk+-2.0.pc look like? I try whereis gtk-2.0 and it found in /etc/gtk-2.0 /usr/.. Any advice? Regards, Kun -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Olexiy Avramchenko Sent: Tuesday, September 02, 2003 10:29 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Compiling and Installing GTK+2.2 [EMAIL PROTECTED] wrote: I am trying to install GTK+2.2.1 on a Redhat 9.0 system. I have sucessfully installed Glib, and Pango. Each configured and installed with no errors or warnings. However when I try to ./configure GTK+2.2.1 I get an error stating the following: checking Pango flags... -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -Wl,--export-dynamic -L/usr/local/lib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 configure: error: *** Can't link to Pango. Pango is required to build Not sure why I am getting this error. I tried googling it but no luck. One suggestion - try to remove old *.pc files from /usr/lib/pkgconfig dir. They still live there even you've removed devel packages from distro. Olexiy ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
the char in widgets is very small
hello: Iinstalled the gtk2.0 in my redhat 7.2 successfully, but when i compilede the programe with it ,I found the chars on label or other widgets is very very small also can't display chinese chars . also i found in my home derectory ,i didn't have the .gtkrc-2.0 file in the /etc derectory ,the gtk-2.0 derectory also didn't exit. how i can changed the char , Any help would be appreciated. zjd MSN Hotmail Get 2 months FREE*. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GtkTreeModel
Hello again! Christer Palm wrote: edscott wilson garcia wrote: Use gtktreestore model. Add a dummy for non expanded directories. That makes the expander appear. When the user expands, if nothing is in there, collapse the node and remove the dummy. Since there will be no children, the expander disappears. Hmm.. Yeah - that should work I guess. Although it feels a bit backward from an object-oriented point-of-view. In case anyone is interested, I just want to report that I've implemented Edscotts suggestion, and it works great! Thanks! I've also explored the row_has_child_toggled() and row_deleted() functions of GtkTreeModel a bit further, and ironically, while GTK immediately calls back on my interface to get the new child and node status when I call these functions, it still messes up and tries to refer to the deleted node as well as complain about inconsistency with the has_child status. At least when I call these from within the iter_children_vfunc() implementation. Even more surprising is that GTK attempts to dereference the GtkTreeIter iterator returned by my iter_children_vfunc() implementation, even though I have this function return false (and set the GtkTreeIter to an invalid value), as explained in the docs. So this does simply not appear to work correctly [or as documented :-)]. -- Christer Palm ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list