[gnome-text-editor] window: update title when last page is closed



commit e9e34e9df2d45a1171518ed05fac81fff095eaa5
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 8 10:49:59 2022 -0700

    window: update title when last page is closed
    
    Fixes #435

 src/editor-window.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/editor-window.c b/src/editor-window.c
index f7f6202..68813ec 100644
--- a/src/editor-window.c
+++ b/src/editor-window.c
@@ -1203,6 +1203,9 @@ _editor_window_remove_page (EditorWindow *self,
         editor_page_grab_focus (self->visible_page);
     }
 
+  if (self->visible_page == NULL)
+    gtk_window_set_title (GTK_WINDOW (self), _("Text Editor"));
+
   editor_window_update_inhibit (self);
 }
 


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