diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-09-09 15:35:58 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-09-13 21:26:01 +0200 |
commit | 9e81022bf6b7a5c25584b9eeea360cdf38cd6949 (patch) | |
tree | 3b2d02c989bb9042087b384b8637d19dc9e807e2 /tests | |
parent | 153bfacde0d9c7a533c0936f3078db58cf672aac (diff) | |
download | gtk+-9e81022bf6b7a5c25584b9eeea360cdf38cd6949.tar.gz |
Use gtk_size_request_get_size() instead deprecated gtk_widget_get_child_requisition()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629177
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gtkoffscreenbox.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/gtkoffscreenbox.c b/tests/gtkoffscreenbox.c index 6a4646966c..3bf5fd58a3 100644 --- a/tests/gtkoffscreenbox.c +++ b/tests/gtkoffscreenbox.c @@ -528,7 +528,8 @@ gtk_offscreen_box_size_allocate (GtkWidget *widget, GtkRequisition child_requisition; GtkAllocation child_allocation; - gtk_widget_get_child_requisition (offscreen_box->child1, &child_requisition); + gtk_size_request_get_size (GTK_SIZE_REQUEST (offscreen_box->child1), + &child_requisition, NULL); child_allocation.x = child_requisition.width * (CHILD1_SIZE_SCALE - 1.0) / 2; child_allocation.y = start_y + child_requisition.height * (CHILD1_SIZE_SCALE - 1.0) / 2; child_allocation.width = MAX (1, (gint) allocation->width - 2 * border_width); @@ -552,7 +553,8 @@ gtk_offscreen_box_size_allocate (GtkWidget *widget, GtkRequisition child_requisition; GtkAllocation child_allocation; - gtk_widget_get_child_requisition (offscreen_box->child2, &child_requisition); + gtk_size_request_get_size (GTK_SIZE_REQUEST (offscreen_box->child2), + &child_requisition, NULL); child_allocation.x = child_requisition.width * (CHILD2_SIZE_SCALE - 1.0) / 2; child_allocation.y = start_y + child_requisition.height * (CHILD2_SIZE_SCALE - 1.0) / 2; child_allocation.width = MAX (1, (gint) allocation->width - 2 * border_width); |