forked from AuroraMiddleware/gtk
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:
parent
0d71f62388
commit
92e6444163
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user