[gtk+/wip/csd: 420/429] window: Check for a title box before checking for it being mapped



commit 3db17c628482cd4ea36ed75063dcc68c71cb258b
Author: Rob Bradford <rob linux intel com>
Date:   Wed Apr 11 18:46:12 2012 +0100

    window: Check for a title box before checking for it being mapped

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index fa3cc07..73be291 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5033,7 +5033,7 @@ gtk_window_map (GtkWidget *widget)
       !gtk_widget_get_mapped (child))
     gtk_widget_map (child);
 
-  if (!gtk_widget_get_mapped (priv->title_box))
+  if (priv->title_box && !gtk_widget_get_mapped (priv->title_box))
     gtk_widget_map (priv->title_box);
 
   gdk_window = gtk_widget_get_window (widget);



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