diff options
author | Timm Bäder <mail@baedert.org> | 2017-05-05 14:06:01 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-07-19 21:27:12 -0400 |
commit | ede6f2ab59021d56329c4f9f85ced8fe26134f8a (patch) | |
tree | 4ebfb5e7d9b3f4eec68d149ed231886e398aa1e2 /gtk/gtkicon.c | |
parent | 28b18129b5f520b5b98f93c3ee5cf9b793095b8d (diff) | |
download | gtk+-ede6f2ab59021d56329c4f9f85ced8fe26134f8a.tar.gz |
Slightly rework clip handling
always initialize clips to the (content) allocation, don't walk up the
widget hierarchy in gtk_widget_set_clip, implement
gtk_widget_size_allocate in GtkSeparator. This way we don't end up using
uninitialized clip values.
The entire clip handling is up for major rework since we can't and don't
want to force every single widget to call _set_clip in size-allocate
implementations.
Diffstat (limited to 'gtk/gtkicon.c')
-rw-r--r-- | gtk/gtkicon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkicon.c b/gtk/gtkicon.c index c22c071c31..1ea9fd3ec5 100644 --- a/gtk/gtkicon.c +++ b/gtk/gtkicon.c @@ -118,7 +118,7 @@ gtk_icon_size_allocate (GtkWidget *widget, { GtkIcon *self = GTK_ICON (widget); GtkIconPrivate *priv = gtk_icon_get_instance_private (self); - GtkAllocation clip; + GtkAllocation clip = *allocation; gtk_css_gadget_allocate (priv->gadget, allocation, gtk_widget_get_allocated_baseline (widget), |