[gtk+/gtk-3-20] headerbar: Fix size allocation



commit 9834ddfb2e715df97e91ed458a0067778e247cdb
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 5 01:08:44 2016 -0400

    headerbar: Fix size allocation
    
    The GtkHeaderBar gadget implementation was subtly broken: it called
    gtk_widget_set_allocation both in gtk_header_bar_size_allocate (with
    the actual allocation) and in gtk_header_bar_allocate_contents (with
    the content allocation of the main gadget). Dropping the second call
    fixes the render node conversion for GtkHeaderBar.

 gtk/gtkheaderbar.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 59709cd..4f6ad43 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -1000,8 +1000,6 @@ gtk_header_bar_allocate_contents (GtkCssGadget        *gadget,
   gint child_size;
   GtkTextDirection direction;
 
-  gtk_widget_set_allocation (widget, allocation);
-
   direction = gtk_widget_get_direction (widget);
   nvis_children = count_visible_children (bar);
   sizes = g_newa (GtkRequestedSize, nvis_children);


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