Hi Emmanuel
For me it works as expected. I just added a gtk_main(), a gtk_init(...)
and a print()-callback and it works (on Debian Sarge gtk+ 2.6.4)
For gtk_menu_popup I used ..., 0, gtk_get_current_event_time());
Maybe something else is wrong in your code?
Jan-Marek
Hi,
I have a problem with popup submenus callbacks. The following code display the
popup, but the callback is not called:
-
GtkWidget *menu, *submenu, *item;
menu = gtk_menu_new ();
item = gtk_menu_item_new_with_label (Submenu 1);
gtk_container_add (GTK_CONTAINER (menu), item);
submenu =
Le Mercredi 17 Août 2005 22:45, John Coppens a écrit :
Hi John,
The GTK tutorial does things rather differently:
http://www.gtk.org/tutorial/ch-menuwidget.html#SEC-MANUALMENUCREATION
This is not the problem. Same thing following and adapting tutorial example to
my needs.
- I both build and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Emmanuel saracco wrote:
Hi,
I have a problem with popup submenus callbacks. The following code display
the
popup, but the callback is not called:
-
GtkWidget *menu, *submenu, *item;
menu = gtk_menu_new ();
item =
Le Jeudi 18 Août 2005 01:55, Brian J. Tarricone a écrit :
Hi,
I'm not sure if it matters or not (would have to look at the gtk source,
and I'm lazy), but you should be using gtk_menu_shell_append() instead
of gtk_container_add() to add menu items to the menu.
Same result: first level menu