[gtk+/wip/matthiasc/kill-event-signals: 47/81] treeview: Don't handle ::delete-event
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/kill-event-signals: 47/81] treeview: Don't handle ::delete-event
- Date: Wed, 3 Jan 2018 02:52:16 +0000 (UTC)
commit 644fb7dd69fd4d41c56e59d24d303a5573806ac0
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 1 09:04:56 2018 -0500
treeview: Don't handle ::delete-event
I don't think there is a way to get a delete event
on this popup - there's no window decorations, no close
button, etc. So no need to handle ::delete-event.
gtk/gtktreeview.c | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 0b21ee0..cc1047d 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -815,9 +815,6 @@ static void gtk_tree_view_search_activate (GtkEntry *entry
static gboolean gtk_tree_view_real_search_enable_popdown(gpointer data);
static void gtk_tree_view_search_enable_popdown (GtkWidget *widget,
gpointer data);
-static gboolean gtk_tree_view_search_delete_event (GtkWidget *widget,
- GdkEventAny *event,
- GtkTreeView *tree_view);
static gboolean gtk_tree_view_search_button_press_event (GtkWidget *widget,
GdkEventButton *event,
GtkTreeView *tree_view);
@@ -10705,9 +10702,6 @@ gtk_tree_view_ensure_interactive_directory (GtkTreeView *tree_view)
gtk_window_set_transient_for (GTK_WINDOW (tree_view->priv->search_window),
GTK_WINDOW (toplevel));
- g_signal_connect (tree_view->priv->search_window, "delete-event",
- G_CALLBACK (gtk_tree_view_search_delete_event),
- tree_view);
g_signal_connect (tree_view->priv->search_window, "key-press-event",
G_CALLBACK (gtk_tree_view_search_key_press_event),
tree_view);
@@ -14460,18 +14454,6 @@ gtk_tree_view_search_enable_popdown (GtkWidget *widget,
}
static gboolean
-gtk_tree_view_search_delete_event (GtkWidget *widget,
- GdkEventAny *event,
- GtkTreeView *tree_view)
-{
- g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
-
- gtk_tree_view_search_window_hide (widget, tree_view, NULL);
-
- return TRUE;
-}
-
-static gboolean
gtk_tree_view_search_button_press_event (GtkWidget *widget,
GdkEventButton *event,
GtkTreeView *tree_view)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]