summaryrefslogtreecommitdiff
path: root/demos
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
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')
-rw-r--r--demos/gtk-demo/offscreen_window.c3
-rw-r--r--demos/gtk-demo/offscreen_window2.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c
index e4b454d3c5..622250efd6 100644
--- a/demos/gtk-demo/offscreen_window.c
+++ b/demos/gtk-demo/offscreen_window.c
@@ -434,7 +434,8 @@ gtk_rotated_bin_size_allocate (GtkWidget *widget,
s = sin (bin->angle);
c = cos (bin->angle);
- 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;
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;