[gtk+] demos: Do not use deprecated gtk_widget_get_child_requisition()
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] demos: Do not use deprecated gtk_widget_get_child_requisition()
- Date: Mon, 13 Sep 2010 20:37:30 +0000 (UTC)
commit 450beef2a2fe9c753995e677c49dac3de29c2488
Author: Javier Jardón <jjardon gnome org>
Date: Mon Sep 13 22:10:47 2010 +0200
demos: Do not use deprecated gtk_widget_get_child_requisition()
Use gtk_size_request_get_size() instead
demos/gtk-demo/offscreen_window.c | 3 ++-
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 e4b454d..622250e 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 642fc46..6e7ccee 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]