summaryrefslogtreecommitdiff
path: root/gtk/gtksearchbar.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-01-27 06:29:45 +0100
committerTimm Bäder <mail@baedert.org>2019-01-29 07:19:54 +0100
commit245cebec1d245ae0c463a2efdfe6497a19560d78 (patch)
tree0a30b1c11dfab498fbd35a3896dc2a25103b2939 /gtk/gtksearchbar.c
parentbde2332a1aeaf2944ab7bb1523296b816421bdd3 (diff)
downloadgtk+-245cebec1d245ae0c463a2efdfe6497a19560d78.tar.gz
widget: Ignore events on unmapped widgets
There was a special case for GtkSearchBar, so remove that one.
Diffstat (limited to 'gtk/gtksearchbar.c')
-rw-r--r--gtk/gtksearchbar.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index 7197320914..3e2b555669 100644
--- a/gtk/gtksearchbar.c
+++ b/gtk/gtksearchbar.c
@@ -641,9 +641,6 @@ capture_widget_key_handled (GtkEventControllerKey *controller,
GtkSearchBarPrivate *priv = gtk_search_bar_get_instance_private (bar);
gboolean handled;
- if (!gtk_widget_get_mapped (GTK_WIDGET (bar)))
- return GDK_EVENT_PROPAGATE;
-
if (priv->reveal_child)
return GDK_EVENT_PROPAGATE;