[glade/gbinding] Actually show the binding source in the inspector tooltip, not the target



commit 6cedfaa5b12c79da3557bab926e833a67f63bc1f
Author: Denis Washington <denisw src gnome org>
Date:   Fri Jun 10 12:35:40 2011 +0200

    Actually show the binding source in the inspector tooltip, not the target
    
    The rate at which I need to fix the results of me coding too late really
    becomes embarassing. ;)

 gladeui/glade-editor-property.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index 9d0d921..241ddd7 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -190,12 +190,16 @@ glade_editor_property_tooltip_cb (GladeProperty * property,
 
   if (glade_property_get_sensitive (property))
     {
-      if (glade_property_get_binding (property))
+      GladeBinding *binding;
+      
+      if ((binding = glade_property_get_binding (property)) != NULL)
         {
+          GladeProperty *source;
           const gchar *src_obj, *src_prop;
 
-          src_prop = glade_property_class_id (eprop->priv->klass);
-          src_obj = glade_widget_get_name (glade_property_get_widget (property));
+          source = glade_binding_get_source (binding);
+          src_prop = glade_property_class_id (glade_property_get_class (source));
+          src_obj = glade_widget_get_name (glade_property_get_widget (source));
           
           choice_tooltip = g_strdup_printf ("%s\n"
                                             "<span size=\"smaller\">"



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