mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
parent
c8a936cdcc
commit
972c0fa998
@ -1924,6 +1924,7 @@ gtk_menu_popup_at_rect (GtkMenu *menu,
|
||||
const GdkEvent *trigger_event)
|
||||
{
|
||||
GtkMenuPrivate *priv;
|
||||
GdkEvent *current_event = NULL;
|
||||
GdkDevice *device = NULL;
|
||||
guint button = 0;
|
||||
guint32 activate_time = GDK_CURRENT_TIME;
|
||||
@ -1941,7 +1942,8 @@ gtk_menu_popup_at_rect (GtkMenu *menu,
|
||||
|
||||
if (!trigger_event)
|
||||
{
|
||||
trigger_event = gtk_get_current_event ();
|
||||
current_event = gtk_get_current_event ();
|
||||
trigger_event = current_event;
|
||||
}
|
||||
|
||||
if (trigger_event)
|
||||
@ -1962,6 +1964,8 @@ gtk_menu_popup_at_rect (GtkMenu *menu,
|
||||
NULL,
|
||||
button,
|
||||
activate_time);
|
||||
|
||||
g_clear_object (¤t_event);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user