[Goodies-dev] xfce_panel_plugin_menu_insert_item() example ?

Adriano Winter Bess awbess at gmail.com
Sun Oct 22 21:28:49 CEST 2006


On Sun, Oct 22, 2006 at 08:59:33PM +0200, Stefan Stuhr wrote:
> [...]
> Remember that you have to gtk_widget_show your menuitem. Something like
> this:
> 
> GtkWidget* random = gtk_check_menu_item_new_with_label (_("Random"));
> gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(random), TRUE);
> xfce_panel_plugin_menu_insert_item(plugin,GTK_MENU_ITEM(random)); 
> gtk_widget_show(GTK_WIDGET(random));

Hum, exactly as I thought :)
Just a small contribution: there's no need to cast random to a GtkWidget* since
it already is one.

Regards,
Adriano
-- 
Adriano Winter Bess
ICQ: 21569917
MSN: awbess -at- gmail -dot- com
Freenode: nyquide @ #debian-br/#debian/#xfce

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.xfce.org/pipermail/goodies-dev/attachments/20061022/e2a79b8d/attachment.pgp>


More information about the Goodies-dev mailing list