[gnome-builder] pnl: check child_visible before allocating



commit e602a3c3025d674bfb9ea1ce81ad608a9b446f3d
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 27 23:46:31 2016 -0700

    pnl: check child_visible before allocating

 contrib/pnl/pnl-dock-bin.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/contrib/pnl/pnl-dock-bin.c b/contrib/pnl/pnl-dock-bin.c
index ef38392..4386cc4 100644
--- a/contrib/pnl/pnl-dock-bin.c
+++ b/contrib/pnl/pnl-dock-bin.c
@@ -626,7 +626,9 @@ pnl_dock_bin_child_size_allocate (PnlDockBin      *self,
                         "handle-size", &handle_size,
                         NULL);
 
-  if (child->widget != NULL && gtk_widget_get_visible (child->widget))
+  if (child->widget != NULL &&
+      gtk_widget_get_visible (child->widget) &&
+      gtk_widget_get_child_visible (child->widget))
     {
       GtkAllocation child_alloc = { 0 };
       GtkAllocation handle_alloc = { 0 };


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