[glade] Fixed regresion introduced when implemented GladeWindow as a composite widget. I forgot to move cata



commit c6fc796042c490692aae1749d853c2569b95e8c1
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Wed Sep 4 17:02:09 2013 -0300

    Fixed regresion introduced when implemented GladeWindow as a composite widget.
    I forgot to move catalog paths initialization to glade_window_init()

 src/glade-window.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/glade-window.c b/src/glade-window.c
index ede92d6..67f23e4 100644
--- a/src/glade-window.c
+++ b/src/glade-window.c
@@ -3112,6 +3112,16 @@ glade_window_init (GladeWindow *window)
 
   priv->default_path = NULL;
 
+  /* Init preferences first, this has to be done before anything initializes
+   * the real GladeApp, so that catalog paths are loaded correctly before we
+   * continue.
+   *
+   * This should be fixed so that dynamic addition of catalogs at runtime
+   * is supported.
+   */
+  priv->preferences = (GladePreferences *)glade_preferences_new ();
+  glade_preferences_load (window->priv->preferences, glade_app_get_config ());
+  
   /* We need this for the icons to be available */
   glade_init ();
 
@@ -3140,16 +3150,6 @@ glade_window_constructed (GObject *object)
   /* Chain up... */
   G_OBJECT_CLASS (glade_window_parent_class)->constructed (object);
 
-  /* Init preferences first, this has to be done before anything initializes
-   * the real GladeApp, so that catalog paths are loaded correctly before we
-   * continue.
-   *
-   * This should be fixed so that dynamic addition of catalogs at runtime
-   * is supported.
-   */
-  priv->preferences = (GladePreferences *)glade_preferences_new ();
-  glade_preferences_load (window->priv->preferences, glade_app_get_config ());
-
   /* recent files */
   priv->recent_manager = gtk_recent_manager_get_default ();
   


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