summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-09-14 03:33:06 +0200
committerJavier Jardón <jjardon@gnome.org>2010-09-15 03:02:58 +0200
commitb140884fec56d0ac5f15fe3937879a7a1dd6f0c1 (patch)
treec891f7828f125fd533e0a36fe6a031c060fbc536 /tests
parenta18e2370bf7349aa61f9c236dd785a45c77d0a84 (diff)
downloadgtk+-b140884fec56d0ac5f15fe3937879a7a1dd6f0c1.tar.gz
Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598 Signed-off-by: Javier Jardón <jjardon@gnome.org> Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/gtkoffscreenbox.c6
-rw-r--r--tests/testgtk.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/gtkoffscreenbox.c b/tests/gtkoffscreenbox.c
index 3bf5fd58a3..eee514b748 100644
--- a/tests/gtkoffscreenbox.c
+++ b/tests/gtkoffscreenbox.c
@@ -479,7 +479,8 @@ gtk_offscreen_box_size_request (GtkWidget *widget,
{
GtkRequisition child_requisition;
- gtk_widget_size_request (offscreen_box->child1, &child_requisition);
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (offscreen_box->child1),
+ &child_requisition, NULL);
w = MAX (w, CHILD1_SIZE_SCALE * child_requisition.width);
h += CHILD1_SIZE_SCALE * child_requisition.height;
@@ -489,7 +490,8 @@ gtk_offscreen_box_size_request (GtkWidget *widget,
{
GtkRequisition child_requisition;
- gtk_widget_size_request (offscreen_box->child2, &child_requisition);
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (offscreen_box->child2),
+ &child_requisition, NULL);
w = MAX (w, CHILD2_SIZE_SCALE * child_requisition.width);
h += CHILD2_SIZE_SCALE * child_requisition.height;
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 6f0bf104fc..6e40600c8d 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -2475,7 +2475,8 @@ create_rotated_text (GtkWidget *widget)
gtk_widget_show_all (gtk_bin_get_child (GTK_BIN (window)));
gtk_widget_set_size_request (drawing_area, DEFAULT_TEXT_RADIUS * 2, DEFAULT_TEXT_RADIUS * 2);
- gtk_widget_size_request (window, &requisition);
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (window),
+ &requisition, NULL);
gtk_widget_set_size_request (drawing_area, -1, -1);
gtk_window_resize (GTK_WINDOW (window), requisition.width, requisition.height);
}