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/gtkactionbar.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/gtkactionbar.c')
-rw-r--r-- | gtk/gtkactionbar.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c index f9f0a73b69..edf1b49ada 100644 --- a/gtk/gtkactionbar.c +++ b/gtk/gtkactionbar.c @@ -259,13 +259,19 @@ gtk_action_bar_set_child_property (GtkContainer *container, } static void -gtk_action_bar_size_allocate (GtkWidget *widget, - const GtkAllocation *allocation, - int baseline) +gtk_action_bar_size_allocate (GtkWidget *widget, + int width, + int height, + int baseline) { GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (GTK_ACTION_BAR (widget)); - gtk_widget_size_allocate (priv->revealer, allocation, baseline); + gtk_widget_size_allocate (priv->revealer, + &(GtkAllocation) { + 0, 0, + width, height + }, + baseline); } static void |