diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c index 7a32c37610..c6969ea95e 100644 --- a/demos/widget-factory/widget-factory.c +++ b/demos/widget-factory/widget-factory.c @@ -262,6 +262,14 @@ activate_quit (GSimpleAction *action, } } +static void +activate_inspector (GSimpleAction *action, + GVariant *parameter, + gpointer user_data) +{ + gtk_window_set_interactive_debugging (TRUE); +} + static void spin_value_changed (GtkAdjustment *adjustment, GtkWidget *label) { @@ -1935,6 +1943,7 @@ main (int argc, char *argv[]) static GActionEntry app_entries[] = { { "about", activate_about, NULL, NULL, NULL }, { "quit", activate_quit, NULL, NULL, NULL }, + { "inspector", activate_inspector, NULL, NULL, NULL }, { "main", NULL, "s", "'steak'", NULL }, { "wine", NULL, NULL, "false", NULL }, { "beer", NULL, NULL, "false", NULL }, diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui index aa61c3b0f7..095cbdbc56 100644 --- a/demos/widget-factory/widget-factory.ui +++ b/demos/widget-factory/widget-factory.ui @@ -16,6 +16,10 @@
+ + _Inspector + app.inspector + _Keyboard Shortcuts win.show-help-overlay