From 679883e0981ef10d1d09534f4583309bcd14440f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 18 Jan 2014 17:56:44 -0500 Subject: [PATCH] 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 file changed, 3 insertions(+) diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 1a83126c3f..9626184765 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)) {