Le Sat, 30 Aug 2008 17:45:32 +0200,
Salvatore De Paolis <[EMAIL PROTECTED]> a écrit :

> Hi all,
> 
> I have in a library such a signal emission
> 
> g_signal_emit(view, MY_SIGNAL, NULL, menu);
> 
> and from the program I'm connecting a callback to it in the way
> 
> gboolean my_callback_menu (TYPE_VIEW *view, TYPE_MENU *menu, gpointer
> userdata)
> 
> In this callback i basically do that
> 
> GtkMenuShell *_sh_menu;
> GtkWidget *item = gtk_menu_item_new_with_label ("foo");
> 
> _sh_menu = GTK_MENU_SHELL(menu);
> gtk_menu_shell_append(_sh_menu, item);
> 
> to override the menu on the library.
> What's wrong with this since i can't see the new item?

Completely random guess, gtk_widget_show (item) maybe.

> Regards
> Sal

HTH
Cheers
Mike
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to