[gnome-builder] workbench: add action to set perspetive



commit f43016b669c215457741618e06d96225a185f675
Author: Christian Hergert <chergert redhat com>
Date:   Sun Nov 29 23:41:19 2015 -0800

    workbench: add action to set perspetive

 libide/ide-workbench-actions.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-workbench-actions.c b/libide/ide-workbench-actions.c
index 68e9c79..2ecb82b 100644
--- a/libide/ide-workbench-actions.c
+++ b/libide/ide-workbench-actions.c
@@ -98,9 +98,13 @@ ide_workbench_actions_open_with_dialog (GSimpleAction *action,
 void
 ide_workbench_actions_init (IdeWorkbench *self)
 {
+  GPropertyAction *action;
   const GActionEntry actions[] = {
     { "open-with-dialog", ide_workbench_actions_open_with_dialog },
   };
 
   g_action_map_add_action_entries (G_ACTION_MAP (self), actions, G_N_ELEMENTS (actions), self);
+
+  action = g_property_action_new ("perspective", self, "visible-perspective-name");
+  g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (action));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]