summaryrefslogtreecommitdiff
path: root/gtk/gtkfontbutton.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/gtkfontbutton.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/gtkfontbutton.c')
-rw-r--r--gtk/gtkfontbutton.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index 11443932cc..4617ed12d3 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -487,14 +487,20 @@ gtk_font_button_measure (GtkWidget *widget,
}
static void
-gtk_font_button_size_allocate (GtkWidget *widget,
- const GtkAllocation *allocation,
+gtk_font_button_size_allocate (GtkWidget *widget,
+ int width,
+ int height,
int baseline)
{
GtkFontButton *button = GTK_FONT_BUTTON (widget);
GtkFontButtonPrivate *priv = gtk_font_button_get_instance_private (button);
- gtk_widget_size_allocate (priv->button, allocation, baseline);
+ gtk_widget_size_allocate (priv->button,
+ &(GtkAllocation) {
+ 0, 0,
+ width, height
+ },
+ baseline);
}
static void