summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.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/gtktextview.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/gtktextview.c')
-rw-r--r--gtk/gtktextview.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index a2b088d3d5..441df59e9a 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -370,8 +370,7 @@ static void gtk_text_view_measure (GtkWidget *widget,
int *natural_baseline);
static void gtk_text_view_size_allocate (GtkWidget *widget,
const GtkAllocation *allocation,
- int baseline,
- GtkAllocation *out_clip);
+ int baseline);
static void gtk_text_view_realize (GtkWidget *widget);
static void gtk_text_view_unrealize (GtkWidget *widget);
static void gtk_text_view_map (GtkWidget *widget);
@@ -3959,11 +3958,10 @@ gtk_text_view_update_child_allocation (GtkTextView *text_view,
GtkTextViewChild *vc)
{
GtkAllocation allocation;
- GtkAllocation clip;
gtk_text_view_compute_child_allocation (text_view, vc, &allocation);
- gtk_widget_size_allocate (vc->widget, &allocation, -1, &clip);
+ gtk_widget_size_allocate (vc->widget, &allocation, -1);
#if 0
g_print ("allocation for %p allocated to %d,%d yoffset = %d\n",
@@ -4045,7 +4043,6 @@ gtk_text_view_allocate_children (GtkTextView *text_view)
else
{
GtkAllocation allocation;
- GtkAllocation clip;
GtkRequisition child_req;
allocation.x = child->x;
@@ -4065,7 +4062,7 @@ gtk_text_view_allocate_children (GtkTextView *text_view)
allocation.width = child_req.width;
allocation.height = child_req.height;
- gtk_widget_size_allocate (child->widget, &allocation, -1, &clip);
+ gtk_widget_size_allocate (child->widget, &allocation, -1);
}
tmp_list = tmp_list->next;
@@ -4075,8 +4072,7 @@ gtk_text_view_allocate_children (GtkTextView *text_view)
static void
gtk_text_view_size_allocate (GtkWidget *widget,
const GtkAllocation *allocation,
- int baseline,
- GtkAllocation *out_clip)
+ int baseline)
{
GtkTextView *text_view;
GtkTextViewPrivate *priv;