[gtk+/wip/matthiasc/kill-event-signals: 55/123] treeview: Stop using gtk_true



commit a4b7a4f5e1bdb39d37a722e3fbb4501b00bf660a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 31 12:17:53 2017 -0500

    treeview: Stop using gtk_true

 gtk/gtktreeview.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 7620d22..9fbd678 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -5519,6 +5519,12 @@ gtk_tree_view_search_key_cancels_search (guint keyval)
 }
 
 static gboolean
+no_popup (void)
+{
+  return TRUE;
+}
+
+static gboolean
 gtk_tree_view_key_press (GtkWidget   *widget,
                         GdkEventKey *event)
 {
@@ -5713,7 +5719,7 @@ gtk_tree_view_key_press (GtkWidget   *widget,
           gtk_widget_realize (search_window);
 
           popup_menu_id = g_signal_connect (tree_view->priv->search_entry,
-                                            "popup-menu", G_CALLBACK (gtk_true),
+                                            "popup-menu", G_CALLBACK (no_popup),
                                             NULL);
 
           /* Because we keep the focus on the treeview, we need to forward the


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