From 92e64441634a16a30382e63f8cc442a6ff40c04b Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 23 Nov 2011 11:22:30 -0500 Subject: 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. --- gtk/gtkwidgetpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkwidgetpath.c') 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) -- cgit v1.2.1