[glade/gbinding: 3/4] Don't show properties marked as "virtual" or "ignore" in "Bind to source..." dialog



commit c39a4873c67fc46c38ac4a6bfc22977620da5d47
Author: Denis Washington <denisw src gnome org>
Date:   Sat Aug 13 16:53:29 2011 +0200

    Don't show properties marked as "virtual" or "ignore" in "Bind to source..." dialog

 gladeui/glade-editor-property.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index 7e92fe5..2086d3b 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -258,9 +258,11 @@ glade_bind_dialog_update_property_view (GladeBindDialog  *dialog,
       GType type = G_PARAM_SPEC_TYPE (glade_property_class_get_pspec (pclass));
       GtkTreeIter iter;
 
-      if (!glade_property_get_sensitive (prop)
-          || !glade_property_get_enabled (prop)
-          || prop == target)
+      if (prop == target ||
+          !glade_property_get_sensitive (prop) ||
+          !glade_property_get_enabled (prop) ||
+          glade_property_class_get_virtual (pclass) ||
+          glade_property_class_get_ignore (pclass))
         continue;
       
       gtk_list_store_append (model, &iter);



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