[frogr] Init main model's state description in the right place



commit 9ba99fa0d148350feb95640caec63ab165e748bf
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Thu Aug 25 09:25:21 2011 +0200

    Init main model's state description in the right place

 src/frogr-main-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 10252dc..df44bc7 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -1489,9 +1489,6 @@ frogr_main_view_init (FrogrMainView *self)
   priv->controller = g_object_ref (frogr_controller_get_instance ());
   priv->config = g_object_ref (frogr_config_get_instance ());
 
-  /* Init main model's state description */
-  _update_state_description (self);
-
   /* Provide a default icon list in several sizes */
   icons_path = frogr_util_get_icons_dir ();
   full_path = g_strdup_printf ("%s/" MAIN_VIEW_ICON("128x128"), icons_path);
@@ -1606,6 +1603,9 @@ frogr_main_view_init (FrogrMainView *self)
     GTK_ACTION (gtk_builder_get_object (builder, "quit_action"));
 #endif
 
+  /* Init main model's state description */
+  _update_state_description (self);
+
   /* Initialize sorting criteria and reverse */
   priv->sorting_criteria = frogr_config_get_mainview_sorting_criteria (priv->config);
   if (priv->sorting_criteria == SORT_BY_TITLE)



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