G'Day !
This should work ....
gint button_press_event (GtkWidget *widget, GdkEventButton *event )
{
if (event ->button ==1)
{
/* your code */
return TRUE;
}
if (event -> button ==2)
{
/* more code */
return TRUE;
}
return FALSE;
}
This should all be documented in the appropiate header files.
cheers,
Jim Parker
Sailboat racing is not a matter of life and death .... It is far more important
than that !!!
Kervin Pierre
<[EMAIL PROTECTED]> To:
[EMAIL PROTECTED], [EMAIL PROTECTED]
Sent by: cc:
gtk-app-devel-list-admin Subject: how do I handle
right-click on menu_items
@gnome.org
11/16/00 10:26 PM
hello,
I'd like to have right-click handled differently than left click on my
gtk menu. My handler currently listens for the "activate" signal, but
I'd like to listen for the "activate" and right-click signals.
My goal is to have the right click on any part of the menu or the rest
of the program window to open a "properties" dialog.
Any insight on how this is done?
Thanks in advance,
Kervin
_______________________________________________
gtk-app-devel-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
- how do I handle right-click on menu_items Kervin Pierre
- Re: how do I handle right-click on menu_items Florent. Devin
- Re: how do I handle right-click on menu_items JParker
- Re: how do I handle right-click on menu_items Paul Barton-Davis
