[gnome-builder/wip/chergert/perspective] libide: rely on embedded plugins to load editor



commit dc37c817522ce2c82df18990221961c923628d22
Author: Christian Hergert <chergert redhat com>
Date:   Mon Nov 16 23:00:58 2015 -0800

    libide: rely on embedded plugins to load editor

 libide/ide-workbench-private.h |    2 --
 libide/ide-workbench.c         |   14 +-------------
 2 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/libide/ide-workbench-private.h b/libide/ide-workbench-private.h
index 198da01..2f32ccc 100644
--- a/libide/ide-workbench-private.h
+++ b/libide/ide-workbench-private.h
@@ -21,7 +21,6 @@
 
 #include <libpeas/peas.h>
 
-#include "ide-editor-perspective.h"
 #include "ide-greeter-perspective.h"
 #include "ide-preferences-perspective.h"
 #include "ide-workbench.h"
@@ -39,7 +38,6 @@ struct _IdeWorkbench
 
   GtkStack                  *top_stack;
   GtkStack                  *titlebar_stack;
-  IdeEditorPerspective      *editor_perspective;
   IdeGreeterPerspective     *greeter_perspective;
   IdePreferencesPerspective *preferences_perspective;
   GtkStack                  *perspectives_stack;
diff --git a/libide/ide-workbench.c b/libide/ide-workbench.c
index 3d61dc4..0938e84 100644
--- a/libide/ide-workbench.c
+++ b/libide/ide-workbench.c
@@ -207,17 +207,6 @@ ide_workbench_init_greeter (IdeWorkbench *self)
 }
 
 static void
-ide_workbench_init_editor (IdeWorkbench *self)
-{
-  g_assert (IDE_IS_WORKBENCH (self));
-
-  self->editor_perspective = g_object_new (IDE_TYPE_EDITOR_PERSPECTIVE,
-                                           "visible", TRUE,
-                                           NULL);
-  ide_workbench_add_perspective (self, IDE_PERSPECTIVE (self->editor_perspective));
-}
-
-static void
 ide_workbench_init_preferences (IdeWorkbench *self)
 {
   g_assert (IDE_IS_WORKBENCH (self));
@@ -236,7 +225,6 @@ ide_workbench_init (IdeWorkbench *self)
   ide_workbench_actions_init (self);
 
   ide_workbench_init_greeter (self);
-  ide_workbench_init_editor (self);
   ide_workbench_init_preferences (self);
 
   ide_window_settings_register (GTK_WINDOW (self));
@@ -359,7 +347,7 @@ ide_workbench_set_context (IdeWorkbench *self,
 
   peas_extension_set_foreach (self->addins, ide_workbench_addin_added, self);
 
-  ide_workbench_set_visible_perspective (self, IDE_PERSPECTIVE (self->editor_perspective));
+  ide_workbench_set_visible_perspective_name (self, "editor");
 
   gtk_stack_set_visible_child_name (self->top_stack, "perspectives");
 }


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