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



commit ef3d9f33e0dcaa5d90105c64e62ac39e05281630
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 e7a34db..b2c911e 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -5543,6 +5543,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)
 {
@@ -5737,7 +5743,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]