[gtk+] demos: Use gtk_size_request_get_size() instead gtk_widget_size_request()



commit 15d46dd866e825c0ab598663c859a021fbce2b79
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Sep 15 03:13:58 2010 +0200

    demos: Use gtk_size_request_get_size() instead gtk_widget_size_request()

 demos/testpixbuf-scale.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/demos/testpixbuf-scale.c b/demos/testpixbuf-scale.c
index 50244e4..3eb9b0a 100644
--- a/demos/testpixbuf-scale.c
+++ b/demos/testpixbuf-scale.c
@@ -141,7 +141,8 @@ main(int argc, char **argv)
 	gtk_widget_show_all (vbox);
 
 	/* Compute the size without the drawing area, so we know how big to make the default size */
-	gtk_widget_size_request (vbox, &scratch_requisition);
+        gtk_size_request_get_size (GTK_SIZE_REQUEST (vbox),
+                                   &scratch_requisition, NULL);
 
 	darea = gtk_drawing_area_new ();
 	gtk_box_pack_start (GTK_BOX (vbox), darea, TRUE, TRUE, 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]