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/gtkappchooserbutton.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/gtkappchooserbutton.c')
-rw-r--r-- | gtk/gtkappchooserbutton.c | 9 |
1 files changed, 5 insertions, 4 deletions
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 |