[gnome-builder/wip/chergert/layout: 19/118] fix orientation of layout grid



commit 9e343ac8e1c08a8424c990576ebcc6994933269e
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 27 18:28:28 2017 -0700

    fix orientation of layout grid

 libide/editor/ide-editor-perspective.ui  |    1 +
 libide/layout/ide-layout-stack-actions.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libide/editor/ide-editor-perspective.ui b/libide/editor/ide-editor-perspective.ui
index 9601352..836833a 100644
--- a/libide/editor/ide-editor-perspective.ui
+++ b/libide/editor/ide-editor-perspective.ui
@@ -3,6 +3,7 @@
   <template class="IdeEditorPerspective" parent="IdeLayout">
     <child>
       <object class="IdeLayoutGrid" id="grid">
+        <property name="orientation">horizontal</property>
         <property name="visible">true</property>
       </object>
     </child>
diff --git a/libide/layout/ide-layout-stack-actions.c b/libide/layout/ide-layout-stack-actions.c
index 011ecf9..6aa66fa 100644
--- a/libide/layout/ide-layout-stack-actions.c
+++ b/libide/layout/ide-layout-stack-actions.c
@@ -91,6 +91,7 @@ ide_layout_stack_actions_move (IdeLayoutStack *self,
   dest = _ide_layout_grid_get_nth_stack (IDE_LAYOUT_GRID (grid), index + direction);
 
   g_return_if_fail (dest != NULL);
+  g_return_if_fail (dest != self);
   g_return_if_fail (IDE_IS_LAYOUT_STACK (dest));
 
   _ide_layout_stack_transfer (self, dest, view);


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