[gnome-builder/wip/chergert/layout] editor: use transient sidebar for right edge
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] editor: use transient sidebar for right edge
- Date: Thu, 13 Jul 2017 00:24:16 +0000 (UTC)
commit 2ac234a1b640a7c9d888702c03a206a94aacf494
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 12 17:23:35 2017 -0700
editor: use transient sidebar for right edge
The transient sidebar doesn't add much yet, but it will
forthcoming.
libide/editor/ide-editor-perspective.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libide/editor/ide-editor-perspective.c b/libide/editor/ide-editor-perspective.c
index 7537269..06afbed 100644
--- a/libide/editor/ide-editor-perspective.c
+++ b/libide/editor/ide-editor-perspective.c
@@ -28,6 +28,7 @@
#include "editor/ide-editor-properties.h"
#include "editor/ide-editor-sidebar.h"
#include "editor/ide-editor-view.h"
+#include "layout/ide-layout-transient-sidebar.h"
#include "workbench/ide-perspective.h"
#include "workbench/ide-workbench.h"
#include "util/ide-gtk.h"
@@ -108,6 +109,13 @@ ide_editor_perspective_create_edge (DzlDockBin *dock_bin,
"visible", TRUE,
NULL);
+ if (edge == GTK_POS_RIGHT)
+ return g_object_new (IDE_TYPE_LAYOUT_TRANSIENT_SIDEBAR,
+ "edge", edge,
+ "reveal-child", FALSE,
+ "visible", TRUE,
+ NULL);
+
return DZL_DOCK_BIN_CLASS (ide_editor_perspective_parent_class)->create_edge (dock_bin, edge);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]