[gnome-text-editor] window: update discard status when is-modified changes



commit 0a2b427ece5f414b1adfa2efc0ca5090e2adda10
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jul 26 16:10:24 2021 -0700

    window: update discard status when is-modified changes
    
    Related #88

 src/editor-window.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/editor-window.c b/src/editor-window.c
index beb3796..8868018 100644
--- a/src/editor-window.c
+++ b/src/editor-window.c
@@ -478,6 +478,11 @@ editor_window_init (EditorWindow *self)
                                       G_CALLBACK (editor_window_update_actions),
                                       self,
                                       G_CONNECT_SWAPPED);
+  editor_signal_group_connect_object (self->page_signals,
+                                      "notify::is-modified",
+                                      G_CALLBACK (editor_window_update_actions),
+                                      self,
+                                      G_CONNECT_SWAPPED);
   editor_signal_group_connect_object (self->page_signals,
                                       "notify::can-discard",
                                       G_CALLBACK (update_subtitle_visibility_cb),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]