diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-11-23 11:22:30 -0500 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-11-23 11:22:30 -0500 |
commit | 92e64441634a16a30382e63f8cc442a6ff40c04b (patch) | |
tree | 8909656697635b52343ef63caa4bf73284a2895b /gtk/gtkwidgetpath.c | |
parent | 0d71f62388acce5e264d4d3bb8450756b684e180 (diff) | |
download | gtk+-92e64441634a16a30382e63f8cc442a6ff40c04b.tar.gz |
widgetpath: correctly print the siblings index
In gtk_widget_path_to_string() we were counting siblings from zero
instead of one, resulting in confusing output.
Diffstat (limited to 'gtk/gtkwidgetpath.c')
-rw-r--r-- | gtk/gtkwidgetpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c index a694f7b07d..5720b38444 100644 --- a/gtk/gtkwidgetpath.c +++ b/gtk/gtkwidgetpath.c @@ -331,7 +331,7 @@ gtk_widget_path_to_string (const GtkWidgetPath *path) if (elem->siblings) g_string_append_printf (string, "[%d/%d]", - elem->sibling_index, + elem->sibling_index + 1, gtk_widget_path_length (elem->siblings)); if (elem->classes) |