[gtk+] Add sibling information to widget path string representations



commit e81426dbd6258252b0bd8f7ece728939e3ab131a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 18 12:36:38 2011 -0400

    Add sibling information to widget path string representations

 gtk/gtkwidgetpath.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c
index bdbb7d0..d0be6de 100644
--- a/gtk/gtkwidgetpath.c
+++ b/gtk/gtkwidgetpath.c
@@ -328,6 +328,12 @@ gtk_widget_path_to_string (const GtkWidgetPath *path)
           g_string_append_c (string, ')');
         }
 
+
+      if (elem->siblings)
+        g_string_append_printf (string, "[%d/%d]",
+                                elem->sibling_index,
+                                gtk_widget_path_length (elem->siblings));
+
       if (elem->classes)
         {
           for (j = 0; j < elem->classes->len; j++)



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