diff --git a/app/actions/debug-actions.c b/app/actions/debug-actions.c index c2fbff694b..6401e82249 100644 --- a/app/actions/debug-actions.c +++ b/app/actions/debug-actions.c @@ -36,6 +36,11 @@ static const GimpActionEntry debug_actions[] = { { "debug-menu", NULL, "_Debug" }, + { "debug-gtk-inspector", NULL, + "Start _GtkInspector", NULL, NULL, + G_CALLBACK (debug_gtk_inspector_cmd_callback), + NULL }, + { "debug-mem-profile", NULL, "_Memory Profile", NULL, NULL, G_CALLBACK (debug_mem_profile_cmd_callback), diff --git a/app/actions/debug-commands.c b/app/actions/debug-commands.c index 8eb9f8d54a..dd8df164b8 100644 --- a/app/actions/debug-commands.c +++ b/app/actions/debug-commands.c @@ -70,6 +70,13 @@ static gboolean debug_accel_find_func (GtkAccelKey *key, /* public functions */ +void +debug_gtk_inspector_cmd_callback (GtkAction *action, + gpointer data) +{ + gtk_window_set_interactive_debugging (TRUE); +} + void debug_mem_profile_cmd_callback (GtkAction *action, gpointer data) diff --git a/app/actions/debug-commands.h b/app/actions/debug-commands.h index 0504e20d08..94551b5432 100644 --- a/app/actions/debug-commands.h +++ b/app/actions/debug-commands.h @@ -19,6 +19,8 @@ #define __DEBUG_COMMANDS_H__ +void debug_gtk_inspector_cmd_callback (GtkAction *action, + gpointer data); void debug_mem_profile_cmd_callback (GtkAction *action, gpointer data); void debug_benchmark_projection_cmd_callback (GtkAction *action, diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in index 52067f0d04..eb302a4be1 100644 --- a/menus/image-menu.xml.in +++ b/menus/image-menu.xml.in @@ -25,6 +25,8 @@ + +