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/gtkbin.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/gtkbin.c')
-rw-r--r-- | gtk/gtkbin.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk/gtkbin.c b/gtk/gtkbin.c index 65433dce88..10b010f2d7 100644 --- a/gtk/gtkbin.c +++ b/gtk/gtkbin.c @@ -64,15 +64,20 @@ static void gtk_bin_measure (GtkWidget G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GtkBin, gtk_bin, GTK_TYPE_CONTAINER) static void -gtk_bin_size_allocate (GtkWidget *widget, - const GtkAllocation *allocation, - int baseline) +gtk_bin_size_allocate (GtkWidget *widget, + int width, + int height, + int baseline) { GtkBin *bin = GTK_BIN (widget); GtkBinPrivate *priv = gtk_bin_get_instance_private (bin); if (priv->child && gtk_widget_get_visible (priv->child)) - gtk_widget_size_allocate (priv->child, allocation, baseline); + gtk_widget_size_allocate (priv->child, + &(GtkAllocation) { + 0, 0, + width, height + }, baseline); } static void |