[glade3] * gladeui/glade-project.c: Fixed the project to maintain the loading flag until parse-finished is



commit 60bc9cff1aa148af1efebc0058a2ac7fa31349e7
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun Jan 9 10:39:32 2011 +0900

    	* gladeui/glade-project.c: Fixed the project to maintain the loading flag until
    	parse-finished is fired (so that it can be checked when setting the final object
    	properties).

 ChangeLog               |    4 ++++
 gladeui/glade-project.c |   10 +++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7f8893f..366dbcf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
 	them from the layout (no longer needed trickery for the toplevel, makes parentless
 	widget property references work properly).
 
+	* gladeui/glade-project.c: Fixed the project to maintain the loading flag until
+	parse-finished is fired (so that it can be checked when setting the final object
+	properties).
+
 2011-01-08  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-utils.[ch], gladeui/glade-widget.c, gladeui/glade-builtins.c,
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index 7e9273d..5b0be5f 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -1623,17 +1623,17 @@ glade_project_load_internal (GladeProject * project)
   if (glade_util_file_is_writeable (project->priv->path) == FALSE)
     glade_project_set_readonly (project, TRUE);
 
+  /* Now we have to loop over all the object properties
+   * and fix'em all ('cause they probably weren't found)
+   */
+  glade_project_fix_object_props (project);
+
   /* Reset project status here too so that you get a clean
    * slate after calling glade_project_open().
    */
   project->priv->modified = FALSE;
   project->priv->loading = FALSE;
 
-  /* Now we have to loop over all the object properties
-   * and fix'em all ('cause they probably weren't found)
-   */
-  glade_project_fix_object_props (project);
-
   /* Emit "parse-finished" signal */
   g_signal_emit (project, glade_project_signals[PARSE_FINISHED], 0);
 



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