[gnome-builder/wip/chergert/layout] layout: fix check to for empty column



commit 2ef26276f559d89be5e3fab1c9b50e0f5412fe49
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jul 5 06:02:20 2017 -0700

    layout: fix check to for empty column

 libide/layout/ide-layout-grid-column.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libide/layout/ide-layout-grid-column.c b/libide/layout/ide-layout-grid-column.c
index 7633e3d..a26c21b 100644
--- a/libide/layout/ide-layout-grid-column.c
+++ b/libide/layout/ide-layout-grid-column.c
@@ -301,13 +301,13 @@ _ide_layout_grid_column_is_empty (IdeLayoutGridColumn *self)
    * That means we are in our "initial/empty" state.
    */
 
-  if (dzl_multi_paned_get_n_children (DZL_MULTI_PANED (self)) == 0)
+  if (dzl_multi_paned_get_n_children (DZL_MULTI_PANED (self)) == 1)
     {
       GtkWidget *child = dzl_multi_paned_get_nth_child (DZL_MULTI_PANED (self), 0);
 
       g_assert (IDE_IS_LAYOUT_STACK (child));
 
-      return ide_layout_stack_get_has_view (IDE_LAYOUT_STACK (child));
+      return !ide_layout_stack_get_has_view (IDE_LAYOUT_STACK (child));
     }
 
   return FALSE;


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