[gnome-builder/wip/chergert/layout] editor: track view when showing properties
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] editor: track view when showing properties
- Date: Thu, 13 Jul 2017 07:13:23 +0000 (UTC)
commit fc348a79c45d65b80de92bd3a79222aa271c01d7
Author: Christian Hergert <chergert redhat com>
Date: Thu Jul 13 00:13:01 2017 -0700
editor: track view when showing properties
libide/editor/ide-editor-perspective.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libide/editor/ide-editor-perspective.c b/libide/editor/ide-editor-perspective.c
index f86c798..5f51b76 100644
--- a/libide/editor/ide-editor-perspective.c
+++ b/libide/editor/ide-editor-perspective.c
@@ -664,9 +664,14 @@ void
_ide_editor_perspective_show_properties (IdeEditorPerspective *self,
IdeEditorView *view)
{
+ IdeLayoutTransientSidebar *sidebar;
+
g_return_if_fail (IDE_IS_EDITOR_PERSPECTIVE (self));
g_return_if_fail (!view || IDE_IS_EDITOR_VIEW (view));
+ sidebar = ide_editor_perspective_get_transient_sidebar (self);
+
ide_editor_properties_set_view (self->properties, view);
+ ide_layout_transient_sidebar_set_view (sidebar, (IdeLayoutView *)view);
g_object_set (self, "right-visible", view != NULL, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]