[gnome-initial-setup] Set window titles per page



commit 801eedce618a772e76671559c494a7c0c27d353b
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 22 15:30:20 2012 -0400

    Set window titles per page
    
    This brings us closer to the design in
    https://live.gnome.org/GnomeOS/Design/Whiteboards/InitialSetup

 gnome-initial-setup/gnome-initial-setup.c |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/gnome-initial-setup.c b/gnome-initial-setup/gnome-initial-setup.c
index 1f429cb..13deeeb 100644
--- a/gnome-initial-setup/gnome-initial-setup.c
+++ b/gnome-initial-setup/gnome-initial-setup.c
@@ -72,14 +72,31 @@ prepare_cb (GisAssistant *assi, GtkWidget *page, SetupData *setup)
 
         save_account_data (setup);
 
-        if (page == WID("summary-page"))
+        if (page == WID("welcome-page")) {
+                gtk_window_set_title (setup->main_window, _("Welcome"));
+        }
+        else if (page == WID("network-page")) {
+                gtk_window_set_title (setup->main_window, _("Network"));
+        }
+        else if (page == WID("account-page")) {
+                gtk_window_set_title (setup->main_window, _("Login"));
+        }
+        else if (page == WID("location-page")) {
+                gtk_window_set_title (setup->main_window, _("Location"));
+        }
+        else if (page == WID("online-page")) {
+                gtk_window_set_title (setup->main_window, _("Online Accounts"));
+        }
+        else if (page == WID("summary-page")) {
                 copy_account_data (setup);
+                gtk_window_set_title (setup->main_window, _("Thank You"));
+        }
 }
 
 static void
 recenter_window (GdkScreen *screen, SetupData *setup)
 {
-  gtk_window_set_position (setup->main_window, GTK_WIN_POS_CENTER_ALWAYS);
+        gtk_window_set_position (setup->main_window, GTK_WIN_POS_CENTER_ALWAYS);
 }
 
 static void



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