summaryrefslogtreecommitdiff
path: root/gtk/gtkapplicationwindow.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/gtkapplicationwindow.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/gtkapplicationwindow.c')
-rw-r--r--gtk/gtkapplicationwindow.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 01e2efcb98..9651aedc05 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -592,7 +592,8 @@ gtk_application_window_measure (GtkWidget *widget,
static void
gtk_application_window_real_size_allocate (GtkWidget *widget,
- const GtkAllocation *allocation,
+ int width,
+ int height,
int baseline)
{
GtkApplicationWindow *window = GTK_APPLICATION_WINDOW (widget);
@@ -604,7 +605,7 @@ gtk_application_window_real_size_allocate (GtkWidget *widget,
gint menubar_height;
GtkWidget *child;
- _gtk_window_set_allocation (GTK_WINDOW (widget), allocation, &child_allocation);
+ _gtk_window_set_allocation (GTK_WINDOW (widget), width, height, &child_allocation);
menubar_allocation = child_allocation;
gtk_widget_measure (window->priv->menubar, GTK_ORIENTATION_VERTICAL,
@@ -622,7 +623,8 @@ gtk_application_window_real_size_allocate (GtkWidget *widget,
}
else
GTK_WIDGET_CLASS (gtk_application_window_parent_class)->size_allocate (widget,
- allocation,
+ width,
+ height,
baseline);
}