[gtk+/wip/baedert/drawing: 93/355] widget: Don't set the allocation in size-allocate
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 93/355] widget: Don't set the allocation in size-allocate
- Date: Tue, 11 Jul 2017 16:36:08 +0000 (UTC)
commit 8874665a1cf1c27fcf092f878fdcfecea87a1166
Author: Timm Bäder <mail baedert org>
Date: Fri May 5 12:46:19 2017 +0200
widget: Don't set the allocation in size-allocate
If widgets chain up in their size-allocate implementation, they pass the
content allocation and not the widget allocation which will cause the
wrong allocation to be set.
gtk/gtkwidget.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index cb1048e..64cbcf1 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5860,8 +5860,6 @@ gtk_widget_real_size_allocate (GtkWidget *widget,
{
GtkWidgetPrivate *priv = widget->priv;
- gtk_widget_set_allocation (widget, allocation);
-
if (_gtk_widget_get_realized (widget) &&
_gtk_widget_get_has_window (widget))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]