summaryrefslogtreecommitdiff
path: root/gtk/gtkcenterbox.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-03-31 21:02:28 +0200
committerBenjamin Otte <otte@redhat.com>2018-04-05 14:56:38 +0200
commit169203951b1a338e0a7ef737238731619e5b8c4a (patch)
tree61eebf0a1f0a4b777e3ce58e779b2aa5fda31f63 /gtk/gtkcenterbox.c
parentfc6de135fe30ad285c50267bc9d24e10135bcc2c (diff)
downloadgtk+-169203951b1a338e0a7ef737238731619e5b8c4a.tar.gz
widget: Remove clip from size-allocate vfunc
As the clip is no longer needed, get rid of it.
Diffstat (limited to 'gtk/gtkcenterbox.c')
-rw-r--r--gtk/gtkcenterbox.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkcenterbox.c b/gtk/gtkcenterbox.c
index dd88735cfb..83d378f9a0 100644
--- a/gtk/gtkcenterbox.c
+++ b/gtk/gtkcenterbox.c
@@ -384,12 +384,10 @@ gtk_center_box_measure (GtkWidget *widget,
static void
gtk_center_box_size_allocate (GtkWidget *widget,
const GtkAllocation *allocation,
- int baseline,
- GtkAllocation *out_clip)
+ int baseline)
{
GtkCenterBox *self = GTK_CENTER_BOX (widget);
GtkAllocation child_allocation;
- GtkAllocation child_clip;
GtkWidget *child[3];
int child_size[3];
int child_pos[3];
@@ -529,8 +527,7 @@ gtk_center_box_size_allocate (GtkWidget *widget,
child_allocation.height = child_size[i];
}
- gtk_widget_size_allocate (child[i], &child_allocation, allocation->y + baseline, &child_clip);
- gdk_rectangle_union (out_clip, &child_clip, out_clip);
+ gtk_widget_size_allocate (child[i], &child_allocation, allocation->y + baseline);
}
}