From 55a98da4d44117a34cc733c27120e114f7bd7260 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 26 Feb 2013 19:33:04 +0000 Subject: window: Allow _gtk_window_set_allocation to return a modified allocation Update the documentation and users of this function to handle the future case that that we have some internal decorations to the window and useable allocation is thus smaller. By having a separate out parameter there is no need to have an in/out function and allows for greater robustness. The current implementation simply returns the allocation provided. --- gtk/gtkwindowprivate.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk/gtkwindowprivate.h') diff --git a/gtk/gtkwindowprivate.h b/gtk/gtkwindowprivate.h index 22f8d57705..8891ca4c4f 100644 --- a/gtk/gtkwindowprivate.h +++ b/gtk/gtkwindowprivate.h @@ -66,8 +66,9 @@ void _gtk_window_get_wmclass (GtkWindow *window, gchar **wmclass_name, gchar **wmclass_class); -void _gtk_window_set_allocation (GtkWindow *window, - GtkAllocation *allocation); +void _gtk_window_set_allocation (GtkWindow *window, + const GtkAllocation *allocation, + GtkAllocation *allocation_out); typedef void (*GtkWindowKeysForeachFunc) (GtkWindow *window, guint keyval, -- cgit v1.2.1