Re: Pop up Menu



You must use the gtk_menu_popup (). The GTK api shows all you may do
with this. See it at:
http://developer.gnome.org/doc/API/2.0/gtk/GtkMenu.html#gtk-menu-popup

Use this function inside your callback for a click on your frame. Then
specify the button you clicked (GDK_BUTTON3_MASK for the right click).

e.g
gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL,
GDK_BUTTON3_MASK, gtk_get_current_event_time());

-- 
André Pedralho
Bachelor in Computer Science
Instituto Nokia de Tecnologia


On 4/18/05, dimitri PIEL <d piel siepel com> wrote:

Hi

I'm moreless newbie with Gtk and I don't really know how to display a pop up menu when the user right-click 
inside a frame.
Could you help me please

Thanks.

Dimitri
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]