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/gtkiconview.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/gtkiconview.c')
-rw-r--r-- | gtk/gtkiconview.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 45f37b347e..b92747bb88 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -153,9 +153,10 @@ static void gtk_icon_view_measure (GtkWidget *widget, int *natural, int *minimum_baseline, int *natural_baseline); -static void gtk_icon_view_size_allocate (GtkWidget *widget, - const GtkAllocation *allocation, - int baseline); +static void gtk_icon_view_size_allocate (GtkWidget *widget, + int width, + int height, + int baseline); static void gtk_icon_view_snapshot (GtkWidget *widget, GtkSnapshot *snapshot); static void gtk_icon_view_motion (GtkEventController *controller, @@ -1616,9 +1617,10 @@ gtk_icon_view_allocate_children (GtkIconView *icon_view) } static void -gtk_icon_view_size_allocate (GtkWidget *widget, - const GtkAllocation *allocation, - int baseline) +gtk_icon_view_size_allocate (GtkWidget *widget, + int width, + int height, + int baseline) { GtkIconView *icon_view = GTK_ICON_VIEW (widget); |