Re: [gtk-list] Re: menu
- From: Matt Wimer <matt thunder cgibuilder com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: menu
- Date: Thu, 16 Apr 1998 23:14:00 -0700 (PDT)
> > PS. if the user clicks and drags the mouse over the menu in one
> > quick movenment the menu_items don't get "highlight" becuase the
> > text widget still is getting this event. How can i fix that.
>
> Uh? How are you popping up the menu?
>
> Quartic
static gint
pop_mymenu (GtkWidget *widget, GdkEventButton *button, gpointer data)
{
if (button->button != 3)
return FALSE;
/* I tried this as well.
gtk_signal_emit_stop_by_name (GTK_OBJECT (widget),
"event");
*/
gtk_signal_emit_stop_by_name (GTK_OBJECT (widget),
"button_press_event");
/*popup_my_nice_menu ();*/
gtk_menu_popup (GTK_MENU (mymenu), NULL, NULL,
NULL, NULL, 3, event->time);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]