summaryrefslogtreecommitdiff
path: root/demos
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 /demos
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 '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 622250efd6..0e0d067206 100644
--- a/demos/gtk-demo/offscreen_window.c
+++ b/demos/gtk-demo/offscreen_window.c
@@ -392,7 +392,8 @@ gtk_rotated_bin_size_request (GtkWidget *widget,
child_requisition.height = 0;
if (bin->child && gtk_widget_get_visible (bin->child))
- gtk_widget_size_request (bin->child, &child_requisition);
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child),
+ &child_requisition, NULL);
s = sin (bin->angle);
c = cos (bin->angle);
diff --git a/demos/gtk-demo/offscreen_window2.c b/demos/gtk-demo/offscreen_window2.c
index 6e7cceeb4c..d162a360e7 100644
--- a/demos/gtk-demo/offscreen_window2.c
+++ b/demos/gtk-demo/offscreen_window2.c
@@ -316,7 +316,8 @@ gtk_mirror_bin_size_request (GtkWidget *widget,
child_requisition.height = 0;
if (bin->child && gtk_widget_get_visible (bin->child))
- gtk_widget_size_request (bin->child, &child_requisition);
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child),
+ &child_requisition, NULL);
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
requisition->width = border_width * 2 + child_requisition.width + 10;