[Goodies-dev] xfce_panel_plugin_menu_insert_item() example ?

Adriano Winter Bess awbess at gmail.com
Sun Oct 22 20:57:47 CEST 2006


On Sun, Oct 22, 2006 at 07:46:14PM +0200, Landry Breuil wrote:
> [...]
> 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));

I guess you're missing:

	gtk_widget_show (random);

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/7ca49c06/attachment.pgp>


More information about the Goodies-dev mailing list