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



commit 5fbf23c1509897cd1ddf4aa37d604f133a1dac72
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 8ab7ca6..12e961c 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4990,7 +4990,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]