summaryrefslogtreecommitdiff
path: root/gtk/gtkwindowprivate.h
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2013-02-26 19:33:04 +0000
committerMatthias Clasen <mclasen@redhat.com>2013-03-17 11:28:26 -0400
commit55a98da4d44117a34cc733c27120e114f7bd7260 (patch)
tree51126b0ae78b042191ac160ee6e2839d0578d014 /gtk/gtkwindowprivate.h
parent026d47d909edb98a41039a5af3b1572c99cc7353 (diff)
downloadgtk+-55a98da4d44117a34cc733c27120e114f7bd7260.tar.gz
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.
Diffstat (limited to 'gtk/gtkwindowprivate.h')
-rw-r--r--gtk/gtkwindowprivate.h5
1 files changed, 3 insertions, 2 deletions
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,