summaryrefslogtreecommitdiff
path: root/src/gui/panels/regedit.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/gui/panels/regedit.c
parentf225f8af4eff40b5096f512b699571554e54f097 (diff)
Disabled simple accelerators when a text entry gets focus.
Diffstat (limited to 'src/gui/panels/regedit.c')
-rw-r--r--src/gui/panels/regedit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/panels/regedit.c b/src/gui/panels/regedit.c
index bc19009..a0761aa 100644
--- a/src/gui/panels/regedit.c
+++ b/src/gui/panels/regedit.c
@@ -36,6 +36,7 @@
#include "panel-int.h"
+#include "../agroup.h"
#include "../../core/params.h"
#include "../../common/cpp.h"
#include "../../common/extstr.h"
@@ -246,6 +247,8 @@ static void g_regedit_panel_init(GRegeditPanel *panel)
search = gtk_search_entry_new();
g_signal_connect(search, "search-changed", G_CALLBACK(on_param_search_changed), panel);
+ 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_show(search);
gtk_widget_set_hexpand(search, TRUE);
gtk_grid_attach_next_to(GTK_GRID(base->widget), search, label, GTK_POS_RIGHT, 1, 1);