[gtk/wip/matthiasc/context-menu: 202/202] treeview: Stop disabling the context menu



commit a98fe19af6751c43e66086dc930c796f5a162e75
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 11 14:48:06 2019 -0400

    treeview: Stop disabling the context menu

 gtk/gtktreeview.c | 17 -----------------
 1 file changed, 17 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 19c085a1c1..9715523506 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -798,9 +798,6 @@ static void     gtk_tree_view_search_window_hide        (GtkWidget        *searc
 static void     gtk_tree_view_search_position_func      (GtkTreeView      *tree_view,
                                                         GtkWidget        *search_window,
                                                         gpointer          user_data);
-static void     gtk_tree_view_search_disable_popdown    (GtkEntry         *entry,
-                                                        GtkMenu          *menu,
-                                                        gpointer          data);
 static void     gtk_tree_view_search_preedit_changed    (GtkText          *text,
                                                          const char       *preedit,
                                                         GtkTreeView      *tree_view);
@@ -10204,8 +10201,6 @@ gtk_tree_view_ensure_interactive_directory (GtkTreeView *tree_view)
 
   /* add entry */
   tree_view->priv->search_entry = gtk_text_new ();
-  g_signal_connect (tree_view->priv->search_entry, "populate-popup",
-                   G_CALLBACK (gtk_tree_view_search_disable_popdown), tree_view);
   g_signal_connect (tree_view->priv->search_entry, "activate",
                     G_CALLBACK (gtk_tree_view_search_activate), tree_view);
   g_signal_connect (tree_view->priv->search_entry, "preedit-changed",
@@ -13760,18 +13755,6 @@ gtk_tree_view_search_position_func (GtkTreeView *tree_view,
 {
 }
 
-static void
-gtk_tree_view_search_disable_popdown (GtkEntry *entry,
-                                     GtkMenu  *menu,
-                                     gpointer  data)
-{
-  GtkTreeView *tree_view = (GtkTreeView *)data;
-
-  tree_view->priv->disable_popdown = 1;
-  g_signal_connect (menu, "hide",
-                   G_CALLBACK (gtk_tree_view_search_enable_popdown), data);
-}
-
 /* Because we're visible but offscreen, we just set a flag in the preedit
  * callback.
  */


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