diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 5c5b13a3e2..b133587b47 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -1042,8 +1042,7 @@ gtk_header_bar_allocate_contents (GtkCssGadget *gadget, &title_minimum_size, &title_natural_size); } - - if (priv->label_box != NULL) + else if (priv->label_box != NULL) { gtk_widget_get_preferred_width_for_height (priv->label_box, height, @@ -1157,8 +1156,7 @@ gtk_header_bar_allocate_contents (GtkCssGadget *gadget, if (priv->custom_title != NULL && gtk_widget_get_visible (priv->custom_title)) gtk_widget_size_allocate (priv->custom_title, &child_allocation); - - if (priv->label_box != NULL) + else if (priv->label_box != NULL) gtk_widget_size_allocate (priv->label_box, &child_allocation); child_allocation.y = allocation->y;