[gtk+/wip/matthiasc/kill-event-signals: 36/81] 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: 36/81] treeview: Stop using gtk_true
- Date: Wed, 3 Jan 2018 02:51:21 +0000 (UTC)
commit a0bc7604d8ec5cb4039bee9f5aaa4922d61243a9
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]