diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-09-13 22:10:47 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-09-13 22:37:11 +0200 |
commit | 450beef2a2fe9c753995e677c49dac3de29c2488 (patch) | |
tree | bd94240654def54189ff5b97decfd08a07ca8f56 /demos | |
parent | e02252cdd6f800a41ef3a2e3195fd1d053b82f4c (diff) | |
download | gtk+-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.c | 3 | ||||
-rw-r--r-- | demos/gtk-demo/offscreen_window2.c | 3 |
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; |