[ghex] appwin: Fix hamburger menu checkmark for Find & Replace dialog
- From: Logan Rathbone <larathbone src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] appwin: Fix hamburger menu checkmark for Find & Replace dialog
- Date: Tue, 12 Apr 2022 02:10:50 +0000 (UTC)
commit 794223abe3aa054030e500e2e4a0a3e376759b77
Author: Logan Rathbone <poprocks gmail com>
Date: Mon Apr 11 22:08:49 2022 -0400
appwin: Fix hamburger menu checkmark for Find & Replace dialog
src/ghex-application-window.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/ghex-application-window.c b/src/ghex-application-window.c
index da42cc4..563871e 100644
--- a/src/ghex-application-window.c
+++ b/src/ghex-application-window.c
@@ -813,12 +813,13 @@ pane_close_cb (PaneDialog *pane, gpointer user_data)
if (ACTIVE_GH)
gtk_widget_grab_focus (GTK_WIDGET(ACTIVE_GH));
- if (FIND_IS_DIALOG (pane)) {
- g_object_notify_by_pspec (G_OBJECT(self), properties[PROP_FIND_OPEN]);
- }
- else if (REPLACE_IS_DIALOG (pane)) {
+ /* nb: keep this first due to hierarchy (ReplaceDialog @ISA FindDialog) */
+ if (REPLACE_IS_DIALOG (pane)) {
g_object_notify_by_pspec (G_OBJECT(self), properties[PROP_REPLACE_OPEN]);
}
+ else if (FIND_IS_DIALOG (pane)) {
+ g_object_notify_by_pspec (G_OBJECT(self), properties[PROP_FIND_OPEN]);
+ }
else if (JUMP_IS_DIALOG (pane)) {
g_object_notify_by_pspec (G_OBJECT(self), properties[PROP_JUMP_OPEN]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]