[gtk+] widget: Another place to relax the visibility requirement



commit af176efc0f6f3c821be9bf0f009dd5bf687722b6
Author: Benjamin Otte <otte redhat com>
Date:   Fri Jan 25 14:54:39 2013 +0100

    widget: Another place to relax the visibility requirement
    
    See commit 154204e89136f338a3b0cbd91ddaebc09e4bd8e3 for details

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 585b4f8..2f4da17 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -13526,7 +13526,7 @@ gtk_widget_set_allocation (GtkWidget           *widget,
   GtkWidgetPrivate *priv;
 
   g_return_if_fail (GTK_IS_WIDGET (widget));
-  g_return_if_fail (gtk_widget_get_visible (widget));
+  g_return_if_fail (gtk_widget_get_visible (widget) || gtk_widget_is_toplevel (widget));
   g_return_if_fail (allocation != NULL);
 
   priv = widget->priv;



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