summaryrefslogtreecommitdiff
path: root/gtk/gtkframe.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/gtkframe.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/gtkframe.c')
-rw-r--r--gtk/gtkframe.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index 2bc083b83e..3afb54ecb6 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -120,8 +120,7 @@ static void gtk_frame_get_property (GObject *object,
GParamSpec *pspec);
static void gtk_frame_size_allocate (GtkWidget *widget,
const GtkAllocation *allocation,
- int baseline,
- GtkAllocation *out_clip);
+ int baseline);
static void gtk_frame_remove (GtkContainer *container,
GtkWidget *child);
static void gtk_frame_forall (GtkContainer *container,
@@ -573,14 +572,12 @@ gtk_frame_get_shadow_type (GtkFrame *frame)
static void
gtk_frame_size_allocate (GtkWidget *widget,
const GtkAllocation *allocation,
- int baseline,
- GtkAllocation *out_clip)
+ int baseline)
{
GtkFrame *frame = GTK_FRAME (widget);
GtkFramePrivate *priv = frame->priv;
GtkWidget *child;
GtkAllocation new_allocation;
- GtkAllocation child_clip;
gtk_frame_compute_child_allocation (frame, &new_allocation);
priv->child_allocation = new_allocation;
@@ -607,15 +604,13 @@ gtk_frame_size_allocate (GtkWidget *widget,
priv->label_allocation.height = height;
priv->label_allocation.width = width;
- gtk_widget_size_allocate (priv->label_widget, &priv->label_allocation, -1, &child_clip);
- gdk_rectangle_union (out_clip, &child_clip, out_clip);
+ gtk_widget_size_allocate (priv->label_widget, &priv->label_allocation, -1);
}
child = gtk_bin_get_child (GTK_BIN (widget));
if (child && gtk_widget_get_visible (child))
{
- gtk_widget_size_allocate (child, &priv->child_allocation, -1, &child_clip);
- gdk_rectangle_union (out_clip, &child_clip, out_clip);
+ gtk_widget_size_allocate (child, &priv->child_allocation, -1);
}
}