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/gtkappchooserbutton.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gtk/gtkappchooserbutton.c') diff --git a/gtk/gtkappchooserbutton.c b/gtk/gtkappchooserbutton.c index 0e60e2bea0..f8721a0720 100644 --- a/gtk/gtkappchooserbutton.c +++ b/gtk/gtkappchooserbutton.c @@ -624,14 +624,15 @@ gtk_app_chooser_button_measure (GtkWidget *widget, } static void -gtk_app_chooser_button_size_allocate (GtkWidget *widget, - const GtkAllocation *allocation, - int baseline) +gtk_app_chooser_button_size_allocate (GtkWidget *widget, + int width, + int height, + int baseline) { GtkAppChooserButton *button = GTK_APP_CHOOSER_BUTTON (widget); GtkAppChooserButtonPrivate *priv = gtk_app_chooser_button_get_instance_private (button); - gtk_widget_size_allocate (priv->combobox, allocation, baseline); + gtk_widget_size_allocate (priv->combobox, &(GtkAllocation){0, 0, width, height}, baseline); } static void -- cgit v1.2.1