[gnome-builder] workbench: bring up the inspector with "inspector" command
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workbench: bring up the inspector with "inspector" command
- Date: Fri, 4 Sep 2015 08:59:15 +0000 (UTC)
commit 25c6e400bed919c5a6217ba88efb34f92484f019
Author: Christian Hergert <christian hergert me>
Date: Fri Sep 4 01:58:54 2015 -0700
workbench: bring up the inspector with "inspector" command
This can be useful by those of us working on Builder to activate the
inspector using the command bar with :inspector.
src/workbench/gb-workbench-actions.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/workbench/gb-workbench-actions.c b/src/workbench/gb-workbench-actions.c
index 76c0508..4f10d67 100644
--- a/src/workbench/gb-workbench-actions.c
+++ b/src/workbench/gb-workbench-actions.c
@@ -516,6 +516,14 @@ gb_workbench_actions_focus_right (GSimpleAction *action,
g_object_unref);
}
+static void
+gb_workbench_actions_inspector (GSimpleAction *action,
+ GVariant *param,
+ gpointer user_data)
+{
+ gtk_window_set_interactive_debugging (TRUE);
+}
+
static const GActionEntry GbWorkbenchActions[] = {
{ "build", gb_workbench_actions_build },
{ "dayhack", gb_workbench_actions_dayhack },
@@ -523,6 +531,7 @@ static const GActionEntry GbWorkbenchActions[] = {
{ "focus-left", gb_workbench_actions_focus_left },
{ "focus-right", gb_workbench_actions_focus_right },
{ "global-search", gb_workbench_actions_global_search },
+ { "inspector", gb_workbench_actions_inspector },
{ "new-document", gb_workbench_actions_new_document },
{ "nighthack", gb_workbench_actions_nighthack },
{ "open", gb_workbench_actions_open },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]