Re: [Java-gnome-developer] How to change the icon of a ToolMenuButton ?
Brought to you by:
afcowie
From: Mehdi R. <meh...@gm...> - 2006-06-08 11:35:11
|
Hi Remy, I solved my problem by calling : - MenuToolButton.setStockId("gtk-cancel") - with MenuTooButton.setLabel("A different label from the standard"); Even if I didn't manage to reproduce the errors from the MenuToolButton.setIconWidget(new ToolButton("gtk-cancel")) method, it still didn't work to show an icon. If someone can explain me a little what it's for I can write it in the doc. Regards, Mehdi On 6/8/06, Remy Suen <rem...@gm...> wrote: > > 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 > > > > > > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > |