From ade171a2ed1f868b13dd1f1cb221e6622b92e052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 16 Aug 2018 06:53:03 +0200 Subject: 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. --- gtk/gtkstatusbar.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gtk/gtkstatusbar.c') diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c index ce4cada87f..ebf682c3d5 100644 --- a/gtk/gtkstatusbar.c +++ b/gtk/gtkstatusbar.c @@ -147,13 +147,18 @@ gtk_statusbar_measure (GtkWidget *widget, } static void -gtk_statusbar_size_allocate (GtkWidget *widget, - const GtkAllocation *allocation, - int baseline) +gtk_statusbar_size_allocate (GtkWidget *widget, + int width, + int height, + int baseline) { GtkStatusbarPrivate *priv = gtk_statusbar_get_instance_private (GTK_STATUSBAR (widget)); - gtk_widget_size_allocate (priv->frame, allocation, baseline); + gtk_widget_size_allocate (priv->frame, + &(GtkAllocation) { + 0, 0, + width, height + }, baseline); } static void -- cgit v1.2.1