Only map the HildonWindow vbox if it's supposed to be visible.
authorXan Lopez <xan.lopez@nokia.com>
Mon, 8 Oct 2007 14:32:06 +0000 (14:32 +0000)
committerXan Lopez <xan.lopez@nokia.com>
Mon, 8 Oct 2007 14:32:06 +0000 (14:32 +0000)
Fixes warning when mapping HildonWindows without toolbars.

ChangeLog
src/hildon-window.c

index ed415fc..03a292e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-08  Xan Lopez  <xan.lopez@nokia.com>
+
+       * src/hildon-window.c (hildon_window_map): only map the vbox if it's supposed
+       to be visible, fixes warning on map for windows without toolbars.
+
 2007-10-02  Xan Lopez  <xan.lopez@nokia.com>
 
        * src/hildon-seekbar.c: gtk_range_get_fill_level is available in GTK+ since
index 5c4b091..3b5433d 100644 (file)
@@ -453,7 +453,8 @@ hildon_window_map                             (GtkWidget *widget)
   if (GTK_WIDGET_CLASS (hildon_window_parent_class)->map)
     GTK_WIDGET_CLASS (hildon_window_parent_class)->map (widget);
 
-  gtk_widget_map (priv->vbox);
+  if (GTK_WIDGET_VISIBLE (priv->vbox))
+    gtk_widget_map (priv->vbox);
 }
 
 static void