Re: how do I handle right-click on menu_items
- From: JParker coinstar com
- To: Kervin Pierre <kpierre fit edu>
- Cc: gtk-app-devel-list gnome org, gtk-app-devel-list-admin gnome org, gtk-list gnome org
- Subject: Re: how do I handle right-click on menu_items
- Date: Fri, 17 Nov 2000 09:13:29 -0800
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
<kpierre fit edu> To: gtk-app-devel-list gnome org, gtk-list gnome org
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
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]