[gnome-initial-setup] assistant: Also update titlebar when the title changes



commit 1213a37e622836a3f82f8605b3b57a76ec64fccd
Author: Sam Spilsbury <sam endlessm com>
Date:   Thu Aug 31 15:27:45 2017 +0800

    assistant: Also update titlebar when the title changes
    
    Previously it would only update if the locale also changed, which
    resulted in gis_page_set_title not appearing to do anything
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787511

 gnome-initial-setup/gis-assistant.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/gnome-initial-setup/gis-assistant.c b/gnome-initial-setup/gis-assistant.c
index 38e730e..37ed563 100644
--- a/gnome-initial-setup/gis-assistant.c
+++ b/gnome-initial-setup/gis-assistant.c
@@ -270,11 +270,18 @@ page_notify (GisPage      *page,
     return;
 
   if (strcmp (pspec->name, "title") == 0)
-    g_object_notify_by_pspec (G_OBJECT (assistant), obj_props[PROP_TITLE]);
+    {
+      g_object_notify_by_pspec (G_OBJECT (assistant), obj_props[PROP_TITLE]);
+      update_titlebar (assistant);
+    }
   else if (strcmp (pspec->name, "applying") == 0)
-    update_applying_state (assistant);
+    {
+      update_applying_state (assistant);
+    }
   else
-    update_navigation_buttons (assistant);
+    {
+      update_navigation_buttons (assistant);
+    }
 }
 
 void


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