[gtk+/gtk-3-10] Don't implement popup_menu in GtkWindow



commit 3217246e94a4ed4d844a64e369e844699d834c15
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 13 22:59:59 2014 -0500

    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

 gtk/gtkwindow.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 5be879a..8ea9de8 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -479,7 +479,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);
 
@@ -663,7 +662,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;
@@ -8294,14 +8292,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 *
  *********************************/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]