Commit 1691bb74 authored by Matthias Clasen's avatar Matthias Clasen

Don't implement popup_menu in GtkWindow

This leads to disastruous results, since each menu is itself
in a GtkWindow, so holding down the menu key leads to a neverending
cascade of menus on top of menus.

https://bugzilla.gnome.org/show_bug.cgi?id=722106
parent 7a411eb6
......@@ -493,7 +493,6 @@ static void gtk_window_on_theme_variant_changed (GtkSettings *settings,
#endif
static void gtk_window_set_theme_variant (GtkWindow *window);
static gboolean gtk_window_popup_menu (GtkWidget *widget);
static void gtk_window_do_popup (GtkWindow *window,
GdkEventButton *event);
......@@ -682,7 +681,6 @@ gtk_window_class_init (GtkWindowClass *klass)
widget_class->direction_changed = gtk_window_direction_changed;
widget_class->state_changed = gtk_window_state_changed;
widget_class->style_updated = gtk_window_style_updated;
widget_class->popup_menu = gtk_window_popup_menu;
widget_class->get_preferred_width = gtk_window_get_preferred_width;
widget_class->get_preferred_width_for_height = gtk_window_get_preferred_width_for_height;
widget_class->get_preferred_height = gtk_window_get_preferred_height;
......@@ -8307,14 +8305,6 @@ gtk_window_do_popup (GtkWindow *window,
0, gtk_get_current_event_time ());
}
static gboolean
gtk_window_popup_menu (GtkWidget *widget)
{
gtk_window_do_popup (GTK_WINDOW (widget), NULL);
return TRUE;
}
/*********************************
* Functions related to resizing *
*********************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment