[gnome-builder] workbench: add action to bring up the inspector
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workbench: add action to bring up the inspector
- Date: Mon, 28 Aug 2017 19:58:32 +0000 (UTC)
commit d89cc3b8538f3ac778560d7989e61df920b040c8
Author: Christian Hergert <chergert redhat com>
Date: Mon Aug 28 12:57:40 2017 -0700
workbench: add action to bring up the inspector
It can be annoying when you can't access the inspector via keybindings,
so ensure there is a fallback.
libide/workbench/ide-workbench-actions.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/libide/workbench/ide-workbench-actions.c b/libide/workbench/ide-workbench-actions.c
index b10e3cb..9de88a4 100644
--- a/libide/workbench/ide-workbench-actions.c
+++ b/libide/workbench/ide-workbench-actions.c
@@ -224,6 +224,14 @@ ide_workbench_actions_counters (GSimpleAction *action,
dzl_counter_arena_unref (arena);
}
+static void
+ide_workbench_actions_inspector (GSimpleAction *action,
+ GVariant *variant,
+ gpointer user_data)
+{
+ gtk_window_set_interactive_debugging (TRUE);
+}
+
void
ide_workbench_actions_init (IdeWorkbench *self)
{
@@ -235,6 +243,7 @@ ide_workbench_actions_init (IdeWorkbench *self)
{ "save-all", ide_workbench_actions_save_all },
{ "save-all-quit", ide_workbench_actions_save_all_quit },
{ "counters", ide_workbench_actions_counters },
+ { "inspector", ide_workbench_actions_inspector },
};
g_action_map_add_action_entries (G_ACTION_MAP (self), actions, G_N_ELEMENTS (actions), self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]