Re: g_signal_emit and parameters
- From: Mike Massonnet <mmassonnet gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: g_signal_emit and parameters
- Date: Sat, 30 Aug 2008 18:19:04 +0200
Le Sat, 30 Aug 2008 17:45:32 +0200,
Salvatore De Paolis <iwkse claws-mail org> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]