Re: [GtkMenu] Callback problem with popups submenus

2005-08-18 Thread Jan-Marek Glogowski
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

[GtkMenu] Callback problem with popups submenus

2005-08-17 Thread Emmanuel saracco
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 =

Re: [GtkMenu] Callback problem with popups submenus

2005-08-17 Thread Emmanuel saracco
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

Re: [GtkMenu] Callback problem with popups submenus

2005-08-17 Thread Brian J. Tarricone
-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 =

Re: [GtkMenu] Callback problem with popups submenus

2005-08-17 Thread Emmanuel saracco
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