[gtk+/wip/matthiasc/kill-event-signals: 15/62] treeview: Stop using gtk_true
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/kill-event-signals: 15/62] treeview: Stop using gtk_true
- Date: Tue, 2 Jan 2018 04:53:03 +0000 (UTC)
commit 14243762140680b7c2e784fbd6c691b9717e18a2
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]