summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/offscreen_window2.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-09-13 22:10:47 +0200
committerJavier Jardón <jjardon@gnome.org>2010-09-13 22:37:11 +0200
commit450beef2a2fe9c753995e677c49dac3de29c2488 (patch)
treebd94240654def54189ff5b97decfd08a07ca8f56 /demos/gtk-demo/offscreen_window2.c
parente02252cdd6f800a41ef3a2e3195fd1d053b82f4c (diff)
downloadgtk+-450beef2a2fe9c753995e677c49dac3de29c2488.tar.gz
demos: Do not use deprecated gtk_widget_get_child_requisition()
Use gtk_size_request_get_size() instead
Diffstat (limited to 'demos/gtk-demo/offscreen_window2.c')
-rw-r--r--demos/gtk-demo/offscreen_window2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/gtk-demo/offscreen_window2.c b/demos/gtk-demo/offscreen_window2.c
index 642fc46157..6e7cceeb4c 100644
--- a/demos/gtk-demo/offscreen_window2.c
+++ b/demos/gtk-demo/offscreen_window2.c
@@ -349,7 +349,8 @@ gtk_mirror_bin_size_allocate (GtkWidget *widget,
GtkRequisition child_requisition;
GtkAllocation child_allocation;
- gtk_widget_get_child_requisition (bin->child, &child_requisition);
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child),
+ &child_requisition, NULL);
child_allocation.x = 0;
child_allocation.y = 0;
child_allocation.height = child_requisition.height;