[gnome-builder/editor-layout] workspace: remove devhelp workspace
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/editor-layout] workspace: remove devhelp workspace
- Date: Mon, 1 Dec 2014 13:20:39 +0000 (UTC)
commit 5db48fe084b6d875d98b22438e2b0e6add6aa573
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 1 04:36:26 2014 -0800
workspace: remove devhelp workspace
src/devhelp/gb-devhelp-navigation-item.c | 158 ---------------
src/devhelp/gb-devhelp-navigation-item.h | 55 ------
src/devhelp/gb-devhelp-workspace.c | 306 ------------------------------
src/devhelp/gb-devhelp-workspace.h | 57 ------
src/gnome-builder.mk | 4 -
src/resources/ui/gb-workbench.ui | 11 -
src/workbench/gb-workbench.c | 20 --
7 files changed, 0 insertions(+), 611 deletions(-)
---
diff --git a/src/gnome-builder.mk b/src/gnome-builder.mk
index 0eb6b67..d4b9d55 100644
--- a/src/gnome-builder.mk
+++ b/src/gnome-builder.mk
@@ -41,12 +41,8 @@ libgnome_builder_la_SOURCES = \
src/commands/gb-command-vim.h \
src/credits/gb-credits-widget.c \
src/credits/gb-credits-widget.h \
- src/devhelp/gb-devhelp-navigation-item.c \
- src/devhelp/gb-devhelp-navigation-item.h \
src/devhelp/gb-devhelp-tab.c \
src/devhelp/gb-devhelp-tab.h \
- src/devhelp/gb-devhelp-workspace.c \
- src/devhelp/gb-devhelp-workspace.h \
src/editor/c-parse-helper.c \
src/editor/c-parse-helper.h \
src/editor/gb-editor-document.c \
diff --git a/src/resources/ui/gb-workbench.ui b/src/resources/ui/gb-workbench.ui
index e1f8b2b..792fdc3 100644
--- a/src/resources/ui/gb-workbench.ui
+++ b/src/resources/ui/gb-workbench.ui
@@ -230,17 +230,6 @@
<property name="title" translatable="yes">Editor</property>
</packing>
</child>
- <child>
- <object class="GbDevhelpWorkspace" id="devhelp">
- <property name="name">devhelp</property>
- <property name="visible">True</property>
- </object>
- <packing>
- <property name="name">devhelp</property>
- <property name="icon_name">help-browser-symbolic</property>
- <property name="title" translatable="yes">Documentation</property>
- </packing>
- </child>
</object>
</child>
</object>
diff --git a/src/workbench/gb-workbench.c b/src/workbench/gb-workbench.c
index 76ce089..acc6d3d 100644
--- a/src/workbench/gb-workbench.c
+++ b/src/workbench/gb-workbench.c
@@ -25,7 +25,6 @@
#include "gb-command-manager.h"
#include "gb-command-vim-provider.h"
#include "gb-credits-widget.h"
-#include "gb-devhelp-workspace.h"
#include "gb-editor-workspace.h"
#include "gb-log.h"
#include "gb-widget.h"
@@ -44,7 +43,6 @@ struct _GbWorkbenchPrivate
GbWorkspace *active_workspace;
GbCommandBar *command_bar;
GbCreditsWidget *credits;
- GbWorkspace *devhelp;
GbWorkspace *editor;
GtkMenuButton *add_button;
GtkButton *back_button;
@@ -129,8 +127,6 @@ gb_workbench_get_workspace (GbWorkbench *workbench,
if (type == GB_TYPE_EDITOR_WORKSPACE)
return GB_WORKSPACE (workbench->priv->editor);
- else if (type == GB_TYPE_DEVHELP_WORKSPACE)
- return GB_WORKSPACE (workbench->priv->devhelp);
return NULL;
}
@@ -233,17 +229,6 @@ on_workspace1_activate (GSimpleAction *action,
}
static void
-on_workspace2_activate (GSimpleAction *action,
- GVariant *variant,
- gpointer user_data)
-{
- GbWorkbenchPrivate *priv = GB_WORKBENCH (user_data)->priv;
- GtkWidget *child = gtk_stack_get_child_by_name (priv->stack, "devhelp");
- gtk_stack_set_visible_child (priv->stack, child);
- gtk_widget_grab_focus (child);
-}
-
-static void
on_go_forward_activate (GSimpleAction *action,
GVariant *variant,
gpointer user_data)
@@ -388,7 +373,6 @@ gb_workbench_constructed (GObject *object)
{
static const GActionEntry actions[] = {
{ "workspace1", on_workspace1_activate },
- { "workspace2", on_workspace2_activate },
{ "global-search", on_global_search_activate },
{ "go-backward", on_go_backward_activate },
{ "go-forward", on_go_forward_activate },
@@ -409,7 +393,6 @@ gb_workbench_constructed (GObject *object)
priv = workbench->priv;
gb_workbench_load_workspace_actions (workbench, GB_WORKSPACE (priv->editor));
- gb_workbench_load_workspace_actions (workbench, GB_WORKSPACE (priv->devhelp));
app = GTK_APPLICATION (g_application_get_default ());
menu = gtk_application_get_menu_by_id (app, "gear-menu");
@@ -553,8 +536,6 @@ gb_workbench_class_init (GbWorkbenchClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, UI_RESOURCE_PATH);
gtk_widget_class_bind_template_child_private (widget_class, GbWorkbench,
- devhelp);
- gtk_widget_class_bind_template_child_private (widget_class, GbWorkbench,
command_bar);
gtk_widget_class_bind_template_child_private (widget_class, GbWorkbench,
credits);
@@ -583,7 +564,6 @@ gb_workbench_class_init (GbWorkbenchClass *klass)
g_type_ensure (GB_TYPE_COMMAND_BAR);
g_type_ensure (GB_TYPE_CREDITS_WIDGET);
- g_type_ensure (GB_TYPE_DEVHELP_WORKSPACE);
g_type_ensure (GB_TYPE_EDITOR_WORKSPACE);
g_type_ensure (GEDIT_TYPE_MENU_STACK_SWITCHER);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]