[Java-gnome-developer] How to change the icon of a ToolMenuButton ?
Brought to you by:
afcowie
From: Mehdi R. <meh...@gm...> - 2006-06-07 20:05:32
|
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. |