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/gtkscrollbar.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/gtkscrollbar.c')
-rw-r--r-- | gtk/gtkscrollbar.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk/gtkscrollbar.c b/gtk/gtkscrollbar.c index bb5076cc88..3c4be33b7a 100644 --- a/gtk/gtkscrollbar.c +++ b/gtk/gtkscrollbar.c @@ -120,14 +120,19 @@ gtk_scrollbar_measure (GtkWidget *widget, } static void -gtk_scrollbar_size_allocate (GtkWidget *widget, - const GtkAllocation *allocation, - int baseline) +gtk_scrollbar_size_allocate (GtkWidget *widget, + int width, + int height, + int baseline) { GtkScrollbar *self = GTK_SCROLLBAR (widget); GtkScrollbarPrivate *priv = gtk_scrollbar_get_instance_private (self); - gtk_widget_size_allocate (priv->box, allocation, -1); + gtk_widget_size_allocate (priv->box, + &(GtkAllocation) { + 0, 0, + width, height + }, -1); } static void |