[gtk+] Make sure title_bar_with is initialized



commit 679883e0981ef10d1d09534f4583309bcd14440f
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 18 17:56:44 2014 -0500

    Make sure title_bar_with is initialized
    
    With a hidden custom title, we failed to initialize
    the title_bar_width variables.

 gtk/gtkheaderbar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 1a83126..9626184 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -991,6 +991,9 @@ gtk_header_bar_size_allocate (GtkWidget     *widget,
       i++;
     }
 
+  title_minimum_size = 0;
+  title_natural_size = 0;
+
   if (priv->custom_title &&
       gtk_widget_get_visible (priv->custom_title))
     {


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