Re: [gtk-list] Re: menu



> >  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]