summaryrefslogtreecommitdiff
path: root/gtk/gtkactionbar.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-08-16 06:53:03 +0200
committerTimm Bäder <mail@baedert.org>2018-11-13 16:28:54 +0100
commitade171a2ed1f868b13dd1f1cb221e6622b92e052 (patch)
tree19d911660e38043ee30b51e29548f7c9b72acdcc /gtk/gtkactionbar.c
parent1f1306a53b7c496ba0694544bde71265110fe4ed (diff)
downloadgtk+-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.c14
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