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/gtkfontchooserwidget.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/gtkfontchooserwidget.c')
-rw-r--r-- | gtk/gtkfontchooserwidget.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c index 1b1be3d9a2..ae9bc75756 100644 --- a/gtk/gtkfontchooserwidget.c +++ b/gtk/gtkfontchooserwidget.c @@ -647,16 +647,20 @@ gtk_font_chooser_widget_measure (GtkWidget *widget, } static void -gtk_font_chooser_widget_size_allocate (GtkWidget *widget, - const GtkAllocation *allocation, - int baseline) +gtk_font_chooser_widget_size_allocate (GtkWidget *widget, + int width, + int height, + int baseline) + { GtkFontChooserWidget *self = GTK_FONT_CHOOSER_WIDGET (widget); GtkFontChooserWidgetPrivate *priv = gtk_font_chooser_widget_get_instance_private (self); - GTK_WIDGET_CLASS (gtk_font_chooser_widget_parent_class)->size_allocate (widget, allocation, -1); - - gtk_widget_size_allocate (priv->stack, allocation, -1); + gtk_widget_size_allocate (priv->stack, + &(GtkAllocation) { + 0, 0, + width, height + }, -1); } static void |