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



commit 6caa5ad5c344015fe37136485dede9a02c886ece
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]