[gtk+/wip/ebassi/gsk-renderer] headerbar: Fix size allocation
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/ebassi/gsk-renderer] headerbar: Fix size allocation
- Date: Fri, 5 Aug 2016 10:01:48 +0000 (UTC)
commit 34c91e25dd84b126af29b4b3e0434d0b85ade868
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 15ed4a3..e4927e5 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -1012,8 +1012,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]