[gnome-builder] workbench: remove genesis perspective



commit 9d72d8ad3c658a4d551ba9634a3c9b62a82f4d23
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 30 02:28:57 2016 -0700

    workbench: remove genesis perspective
    
    Now that the greeter manages this, we can drop the genesis perspective.

 libide/Makefile.am                        |    2 -
 libide/genesis/ide-genesis-perspective.c  |  400 -----------------------------
 libide/genesis/ide-genesis-perspective.h  |   32 ---
 libide/genesis/ide-genesis-perspective.ui |  106 --------
 libide/resources/libide.gresource.xml     |    1 -
 libide/workbench/ide-workbench.c          |   32 +--
 6 files changed, 3 insertions(+), 570 deletions(-)
---
diff --git a/libide/Makefile.am b/libide/Makefile.am
index 6c9901b..639477b 100644
--- a/libide/Makefile.am
+++ b/libide/Makefile.am
@@ -60,7 +60,6 @@ libide_1_0_la_public_headers =                            \
        files/ide-file.h                                  \
        files/ide-indent-style.h                          \
        genesis/ide-genesis-addin.h                       \
-       genesis/ide-genesis-perspective.h                 \
        highlighting/ide-highlight-engine.h               \
        highlighting/ide-highlight-index.h                \
        highlighting/ide-highlighter.h                    \
@@ -200,7 +199,6 @@ libide_1_0_la_public_sources =                            \
        files/ide-file-settings.defs                      \
        files/ide-file.c                                  \
        genesis/ide-genesis-addin.c                       \
-       genesis/ide-genesis-perspective.c                 \
        highlighting/ide-highlight-engine.c               \
        highlighting/ide-highlight-index.c                \
        highlighting/ide-highlighter.c                    \
diff --git a/libide/resources/libide.gresource.xml b/libide/resources/libide.gresource.xml
index dfb2536..b0ea3ae 100644
--- a/libide/resources/libide.gresource.xml
+++ b/libide/resources/libide.gresource.xml
@@ -54,7 +54,6 @@
     <file compressed="true" alias="ide-editor-frame.ui">../editor/ide-editor-frame.ui</file>
     <file compressed="true" alias="ide-editor-tweak-widget.ui">../editor/ide-editor-tweak-widget.ui</file>
     <file compressed="true" alias="ide-editor-view.ui">../editor/ide-editor-view.ui</file>
-    <file compressed="true" alias="ide-genesis-perspective.ui">../genesis/ide-genesis-perspective.ui</file>
     <file compressed="true" alias="ide-greeter-perspective.ui">../greeter/ide-greeter-perspective.ui</file>
     <file compressed="true" alias="ide-greeter-project-row.ui">../greeter/ide-greeter-project-row.ui</file>
     <file compressed="true" alias="ide-layout-tab.ui">../workbench/ide-layout-tab.ui</file>
diff --git a/libide/workbench/ide-workbench.c b/libide/workbench/ide-workbench.c
index 431b1e7..4a5a8a1 100644
--- a/libide/workbench/ide-workbench.c
+++ b/libide/workbench/ide-workbench.c
@@ -25,7 +25,6 @@
 
 #include "application/ide-application.h"
 #include "editor/ide-editor-perspective.h"
-#include "genesis/ide-genesis-perspective.h"
 #include "greeter/ide-greeter-perspective.h"
 #include "preferences/ide-preferences-perspective.h"
 #include "util/ide-gtk.h"
@@ -386,10 +385,6 @@ ide_workbench_init (IdeWorkbench *self)
                                                "visible", TRUE,
                                                NULL));
   ide_workbench_add_perspective (self,
-                                 g_object_new (IDE_TYPE_GENESIS_PERSPECTIVE,
-                                               "visible", TRUE,
-                                               NULL));
-  ide_workbench_add_perspective (self,
                                  g_object_new (IDE_TYPE_PREFERENCES_PERSPECTIVE,
                                                "visible", TRUE,
                                                NULL));
@@ -629,8 +624,7 @@ ide_workbench_add_perspective (IdeWorkbench   *self,
                                        "name", id,
                                        NULL);
 
-  if (!IDE_IS_GREETER_PERSPECTIVE (perspective) &&
-      !IDE_IS_GENESIS_PERSPECTIVE (perspective))
+  if (!IDE_IS_GREETER_PERSPECTIVE (perspective))
     {
       guint position = 0;
 
@@ -732,25 +726,6 @@ ide_workbench_get_visible_perspective (IdeWorkbench *self)
   return IDE_PERSPECTIVE (ret);
 }
 
-#if 0
-static gboolean
-remove_early_perspectives (gpointer data)
-{
-  g_autoptr(IdeWorkbench) self = data;
-  GtkWidget *widget;
-
-  g_assert (IDE_IS_WORKBENCH (self));
-
-  widget = gtk_stack_get_child_by_name (self->top_stack, "greeter");
-  gtk_widget_destroy (widget);
-
-  widget = gtk_stack_get_child_by_name (self->top_stack, "genesis");
-  gtk_widget_destroy (widget);
-
-  return G_SOURCE_REMOVE;
-}
-#endif
-
 static void
 ide_workbench_notify_perspective_set (PeasExtensionSet *set,
                                       PeasPluginInfo   *plugin_info,
@@ -772,8 +747,7 @@ static void
 do_remove_early_perspectives (GtkWidget *widget,
                               gpointer   user_data)
 {
-  if (IDE_IS_GREETER_PERSPECTIVE (widget) ||
-      IDE_IS_GENESIS_PERSPECTIVE (widget))
+  if (IDE_IS_GREETER_PERSPECTIVE (widget))
     gtk_widget_destroy (widget);
 }
 
@@ -822,7 +796,7 @@ ide_workbench_set_visible_perspective (IdeWorkbench   *self,
 
   /*
    * If we are transitioning to the editor the first time, we can
-   * remove the early perspectives (greeter, genesis, etc).
+   * remove the early perspectives (greeter, etc).
    */
   if (IDE_IS_EDITOR_PERSPECTIVE (perspective))
     remove_early_perspectives (self);


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