summaryrefslogtreecommitdiff
path: root/gtk/gtkgizmo.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-08-16 06:53:03 +0200
committerTimm Bäder <mail@baedert.org>2018-11-13 16:28:54 +0100
commitade171a2ed1f868b13dd1f1cb221e6622b92e052 (patch)
tree19d911660e38043ee30b51e29548f7c9b72acdcc /gtk/gtkgizmo.c
parent1f1306a53b7c496ba0694544bde71265110fe4ed (diff)
downloadgtk+-ade171a2ed1f868b13dd1f1cb221e6622b92e052.tar.gz
widget: Don't pass a position to ->size_allocate
The values have been 0/0 for a long time now, so just drop the GtkAllocation argument and replace it with width and height.
Diffstat (limited to 'gtk/gtkgizmo.c')
-rw-r--r--gtk/gtkgizmo.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gtk/gtkgizmo.c b/gtk/gtkgizmo.c
index 7d03d556ba..305e0b524e 100644
--- a/gtk/gtkgizmo.c
+++ b/gtk/gtkgizmo.c
@@ -23,16 +23,15 @@ gtk_gizmo_measure (GtkWidget *widget,
}
static void
-gtk_gizmo_size_allocate (GtkWidget *widget,
- const GtkAllocation *allocation,
- int baseline)
+gtk_gizmo_size_allocate (GtkWidget *widget,
+ int width,
+ int height,
+ int baseline)
{
GtkGizmo *self = GTK_GIZMO (widget);
if (self->allocate_func)
- self->allocate_func (self,
- allocation,
- baseline);
+ self->allocate_func (self, width, height, baseline);
}
static void