summaryrefslogtreecommitdiff
path: root/src/gui/panels
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/panels')
-rw-r--r--src/gui/panels/bintree.c1
-rw-r--r--src/gui/panels/bintree.ui2
-rw-r--r--src/gui/panels/regedit.c3
-rw-r--r--src/gui/panels/symbols.c2
-rw-r--r--src/gui/panels/symbols.ui2
5 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/panels/bintree.c b/src/gui/panels/bintree.c
index 5c8a19e..5da7e99 100644
--- a/src/gui/panels/bintree.c
+++ b/src/gui/panels/bintree.c
@@ -35,6 +35,7 @@
#include "panel-int.h"
#include "updating-int.h"
+#include "../agroup.h"
#include "../core/global.h"
#include "../../core/queue.h"
#include "../../gtkext/gtkdisplaypanel.h"
diff --git a/src/gui/panels/bintree.ui b/src/gui/panels/bintree.ui
index 90aac50..ff7f60e 100644
--- a/src/gui/panels/bintree.ui
+++ b/src/gui/panels/bintree.ui
@@ -125,6 +125,8 @@
<property name="progress_pulse_step">1</property>
<property name="adjustment">adjustment1</property>
<property name="numeric">True</property>
+ <signal name="focus-in-event" handler="track_focus_change_in_text_area" swapped="no"/>
+ <signal name="focus-out-event" handler="track_focus_change_in_text_area" swapped="no"/>
<signal name="value-changed" handler="on_depth_spin_value_changed" swapped="no"/>
</object>
</child>
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);
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c
index ab138e8..74d1cf9 100644
--- a/src/gui/panels/symbols.c
+++ b/src/gui/panels/symbols.c
@@ -38,6 +38,7 @@
#include "panel-int.h"
#include "updating-int.h"
+#include "../agroup.h"
#include "../core/global.h"
#include "../../common/extstr.h"
#include "../../core/paths.h"
@@ -380,6 +381,7 @@ static void g_symbols_panel_init(GSymbolsPanel *panel)
"reorganize_symbols_tree_view", G_CALLBACK(reorganize_symbols_tree_view),
"on_symbols_filter_changed", G_CALLBACK(on_symbols_filter_changed),
"on_symbols_selection_change", G_CALLBACK(on_symbols_selection_change),
+ "track_focus_change_in_text_area", G_CALLBACK(track_focus_change_in_text_area),
NULL);
gtk_builder_connect_signals(builder, panel);
diff --git a/src/gui/panels/symbols.ui b/src/gui/panels/symbols.ui
index 284e00a..3c34a29 100644
--- a/src/gui/panels/symbols.ui
+++ b/src/gui/panels/symbols.ui
@@ -170,6 +170,8 @@
<property name="primary_icon_name">edit-find-symbolic</property>
<property name="primary_icon_activatable">False</property>
<property name="primary_icon_sensitive">False</property>
+ <signal name="focus-in-event" handler="track_focus_change_in_text_area" swapped="no"/>
+ <signal name="focus-out-event" handler="track_focus_change_in_text_area" swapped="no"/>
<signal name="search-changed" handler="on_symbols_filter_changed" swapped="no"/>
</object>
</child>