Re: [Java-gnome-developer] How to change the icon of a ToolMenuButton ?
Brought to you by:
afcowie
From: Remy S. <rem...@gm...> - 2006-06-08 11:09:23
|
Mehdi, could you file a bug about this if it is consistently reproducible at bugzilla.gnome.org? Also, you are using a fairly recent version of libgtk-java like 2.8.3, 2.8.4, or 2.8.5, right? Regards, Rem On 6/6/06, Mehdi Rabah <meh...@gm...> wrote: > > Hi again, > > I tried something like this : > > MenuToolButton menuButton = /* loaded from glade file */ > menuButton.setIconWidget(new ToolButton("gtk-apply")); > > to change the icon of a MenuToolButton, and it didn't work. > > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_get_data: assertion > `G_IS_OBJECT (object)' failed > (java-gnome:3524): GLib-GObject-CRITICAL **: g_object_set_data_full: > assertion `G_IS_OBJECT (object)' failed > > Someone can help ? I can say that I have read the doc since there is no > doc for this class :-) > I think the paramater of the constructor of ToolButton is not good but I > don't know what to use. > > > Thanks in advance, > -- > Mehdi R. > > > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > |