forked from AuroraMiddleware/gtk
inspector: Add a function to rescan
Currently, we only ever scanned the toplevel list and widget tree once. That is not enough.
This commit is contained in:
parent
1138d4f489
commit
9a44f18940
@ -289,4 +289,12 @@ gtk_inspector_window_new (void)
|
|||||||
NULL));
|
NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gtk_inspector_window_rescan (GtkWidget *widget)
|
||||||
|
{
|
||||||
|
GtkInspectorWindow *iw = GTK_INSPECTOR_WINDOW (widget);
|
||||||
|
|
||||||
|
gtk_inspector_object_tree_scan (GTK_INSPECTOR_OBJECT_TREE (iw->object_tree), NULL);
|
||||||
|
}
|
||||||
|
|
||||||
// vim: set et sw=2 ts=2:
|
// vim: set et sw=2 ts=2:
|
||||||
|
@ -101,6 +101,7 @@ void gtk_inspector_on_inspect (GtkWidget *widget,
|
|||||||
|
|
||||||
void gtk_inspector_window_select_widget_under_pointer (GtkInspectorWindow *iw);
|
void gtk_inspector_window_select_widget_under_pointer (GtkInspectorWindow *iw);
|
||||||
|
|
||||||
|
void gtk_inspector_window_rescan (GtkWidget *iw);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user