[glade] GladeProject: Fixed condition to warn about properties that are optional & enabled.



commit 4835f1a1f40809a04e0edabf8d9e8a4ca1ada38b
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri Apr 12 19:09:44 2013 +0900

    GladeProject: Fixed condition to warn about properties that are optional & enabled.

 gladeui/glade-project.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index 5f6a952..e0b79e0 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -2380,7 +2380,12 @@ glade_project_verify_property_internal (GladeProject *project,
   gint target_major, target_minor;
   gchar *catalog, *tooltip;
 
-  if (glade_property_original_default (property) && !forwidget)
+  /* For verification lists, we're only interested in verifying the 'used' state of properties.
+   *
+   * For the UI on the other hand, we want to show warnings on unset properties until they
+   * are set.
+   */
+  if (!forwidget && (glade_property_get_state (property) & GLADE_STATE_CHANGED) == 0)
     return;
 
   pclass       = glade_property_get_class (property);


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