[Goodies-dev] xfce_panel_plugin_menu_insert_item() example ?

Landry Breuil landry.breuil at gmail.com
Sun Oct 22 20:58:58 CEST 2006


2006/10/22, Landry Breuil <landry.breuil at gmail.com>:
>
> Hi !
>
> I'm trying to customize my mpc panel-plugin, and add some GtkCheckMenuItem
> to the right-click menu.. but it never shows up. I only have the standard
> right-click menu.
>
> Is the following code correct ? Is the item correctly initialized ? This
> code is called upon creation of plugin widget.
>
> 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));



Okay, don't bother, i got it, gtk_widget_show(random); was missing.... i
didn't think it had to be explicitely called for menu items too.

Landry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/goodies-dev/attachments/20061022/5a9c330e/attachment.html>


More information about the Goodies-dev mailing list