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.
This commit is contained in:
Cosimo Cecchi 2011-11-23 11:22:30 -05:00
parent 0d71f62388
commit 92e6444163

View File

@ -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)