Glade and GtkNotebook problem
Hi all, I'm developing an application which has a notebook widget on it. I designed the GUI on glade and added two pages to the notebook, however when I run my app. The notebook shows only the second page with the contents of the first page. Why is that happening? Thanks, -- César Leonardo Blum Silveira Graduando em Ciência da Computação - Unisinos Centro de Simulação de Humanos Virtuais http://cesarbs.blogspot.com/ MSN: cesarbs490 _at_ msn _dot_ com ICQ: 170861826 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GtkButton doesn't always react on mouse clicks
I have a GtkButton in my application that gets deactivated (greyed out, via gtk_widget_set_sensitive) each time it gets clicked on and, at some point later, re-activated. Here is the problem I have. Suppose I click on the button (thereby deactivating it) and then do NOT move the mouse away until the program re-activates the button back. Now, clicking on the button has no effect at all until I move the mouse away and then move it back onto the button. Once I've done this, the button lights up as usual, and everything starts working fine. Anybody please could tell me how to make the button that was just re-activated receive the click signals without first having to move the mouse away and then move it back on? (I am using gtk v. 2.4.11). Evidently, the button fails to recognize that the mouse is over it at the time it becomes sensitive again. Many thanks, Nickolai ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GtkButton doesn't always react on mouse clicks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/2/2005 2:37 PM, Nickolai Dobrynin wrote: Brian, Thanks for your response. Can you think of any work around for this particular pseudo-bug? Anything on the low level that could be changed? Not that I know of, sorry. I'd suggest filing a bug on bugzilla.gnome.org (after first searching to see if it's been reported already). -brian Best, Nickolai On 11/2/05, *Brian J. Tarricone* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 11/2/2005 12:07 PM, Nickolai Dobrynin wrote: I have a GtkButton in my application that gets deactivated (greyed out, via gtk_widget_set_sensitive) each time it gets clicked on and, at some point later, re-activated. Here is the problem I have. Suppose I click on the button (thereby deactivating it) and then do NOT move the mouse away until the program re-activates the button back. Now, clicking on the button has no effect at all until I move the mouse away and then move it back onto the button. Once I've done this, the button lights up as usual, and everything starts working fine. Anybody please could tell me how to make the button that was just re-activated receive the click signals without first having to move the mouse away and then move it back on? (I am using gtk v. 2.4.11). Evidently, the button fails to recognize that the mouse is over it at the time it becomes sensitive again. I've seen this problem before with gtk 2.8.x as well. Seems like a semi-obscure gtk bug. -brian ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org mailto:gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (MingW32) iD8DBQFDaUeK6XyW6VEeAnsRAp20AKCpV+XqbPHAHSYO1SQ18/10L6XFowCgv20j zXPShl+CL+99azyu9hRlfQQ= =3J9D -END PGP SIGNATURE- ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Changing the GtkButton appearence
Thank you very much Dain. On 10/30/05, Alem Dain [EMAIL PROTECTED] wrote: This is the province of the GTK theme, usually defined in resource files. The philosophy is that the user -- not the programmer -- decides how his buttons should look. That being said, there are plenty of ways around it. The first is to enforce the use of a particular theme, either by hardcoding it or loading it from a file with gtk_rc_parse. See file:///usr/local/share/gtk-doc/html/gtk/gtk-Resource-Files.html for info on GTK resources. Another way is to load an image onto the button, and use a transparency mask to change the shape. I was involved in a thread on this a few months ago: search for How to shape a button. Once you have a pixmap (for example, from gdk_pixmap_create_from_xpm), you set the transparency mask with gdk_window_shape_combine_mask, create an image with gtk_image_new_from_pixmap, and add the image to the button (as a container). All these functions are, of course, documented. Good luck, Alem. 2005/10/28, sadhees kumar [EMAIL PROTECTED]: Dear Friends, I want to display my button widget with different look. Is there any way to change the appearence of GtkButton from rectangle to ellipse? if anybody achieved this, attach the sample code. Thanks in advance. _ Regards, K.Sadheeskumar. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- _ Regards, K.Sadheeskumar. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list