summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkdockable.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-18 09:30:27 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-18 09:30:27 (GMT)
commitc7b064cf1470974aa304d181e1174f9a329d4d49 (patch)
tree2ef5c69b026c979a6496f03bc6ea6e9a923faf46 /src/gtkext/gtkdockable.c
parentf225f8af4eff40b5096f512b699571554e54f097 (diff)
Disabled simple accelerators when a text entry gets focus.
Diffstat (limited to 'src/gtkext/gtkdockable.c')
-rw-r--r--src/gtkext/gtkdockable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gtkext/gtkdockable.c b/src/gtkext/gtkdockable.c
index 3056402..71c6826 100644
--- a/src/gtkext/gtkdockable.c
+++ b/src/gtkext/gtkdockable.c
@@ -34,6 +34,7 @@
#include "easygtk.h"
#include "gtkdockable-int.h"
#include "tmgt.h"
+#include "../gui/agroup.h"
@@ -390,6 +391,8 @@ static GtkWidget *build_search_area(GtkDockable *dockable, GtkWidget **search)
*search = gtk_search_entry_new();
g_signal_connect(*search, "search-changed", G_CALLBACK(on_dockable_search_changed), dockable);
+ g_signal_connect(*search, "focus-in-event", G_CALLBACK(track_focus_change_in_text_area), NULL);
+ g_signal_connect(*search, "focus-out-event", G_CALLBACK(track_focus_change_in_text_area), NULL);
gtk_widget_set_hexpand(*search, TRUE);
gtk_widget_show(*search);
gtk_grid_attach_next_to(GTK_GRID(result), *search, label, GTK_POS_RIGHT, 1, 1);