diff options
author | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2013-09-04 17:02:09 -0300 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2013-09-04 17:08:12 -0300 |
commit | c6fc796042c490692aae1749d853c2569b95e8c1 (patch) | |
tree | 5e357ed0deb2b742e48bb33da71dca774bb8e47f /src/glade-window.c | |
parent | fda19a5ed37da864462312f885f404b18c5a2fe3 (diff) | |
download | glade-c6fc796042c490692aae1749d853c2569b95e8c1.tar.gz |
Fixed regresion introduced when implemented GladeWindow as a composite widget.
I forgot to move catalog paths initialization to glade_window_init()
Diffstat (limited to 'src/glade-window.c')
-rw-r--r-- | 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 ede92d62..67f23e4b 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 (); |