mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 06:14:03 +00:00
app, menus: add new menu item Debug -> Start GtkInspector
so it can by launchaed at any time even if not requested via GTK_DEBUG=interactive and without enabling the magic keyboard shortcut.
This commit is contained in:
parent
52204b74b1
commit
669127dbd6
|
@ -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),
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
<!-- The debug-menu is hidden by default for stable releases -->
|
||||
<menu action="debug-menu" name="Debug">
|
||||
<menuitem action="debug-gtk-inspector" />
|
||||
<separator />
|
||||
<menuitem action="debug-mem-profile" />
|
||||
<menuitem action="debug-benchmark-projection" />
|
||||
<menuitem action="debug-show-image-graph" />
|
||||
|
|
Loading…
Reference in a new issue