diff options
author | Timm Bäder <mail@baedert.org> | 2018-08-16 06:53:03 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-11-13 16:28:54 +0100 |
commit | ade171a2ed1f868b13dd1f1cb221e6622b92e052 (patch) | |
tree | 19d911660e38043ee30b51e29548f7c9b72acdcc /gtk/gtkstatusbar.c | |
parent | 1f1306a53b7c496ba0694544bde71265110fe4ed (diff) | |
download | gtk+-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/gtkstatusbar.c')
-rw-r--r-- | gtk/gtkstatusbar.c | 13 |
1 files changed, 9 insertions, 4 deletions
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 |