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:
Matthias Clasen 2015-07-23 21:27:37 -04:00
parent 1138d4f489
commit 9a44f18940
2 changed files with 9 additions and 0 deletions

View File

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

View File

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