diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-06-18 12:36:38 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-06-18 12:36:38 -0400 |
commit | e81426dbd6258252b0bd8f7ece728939e3ab131a (patch) | |
tree | 6157c0bd655d3cde4c8e74eb3d5ae38732b5367e /gtk/gtkwidgetpath.c | |
parent | 0725e417c564800fdd29976ba6288472ae8f1352 (diff) | |
download | gtk+-e81426dbd6258252b0bd8f7ece728939e3ab131a.tar.gz |
Add sibling information to widget path string representations
Diffstat (limited to 'gtk/gtkwidgetpath.c')
-rw-r--r-- | gtk/gtkwidgetpath.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c index bdbb7d0b2d..d0be6de63e 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++) |