diff options
Diffstat (limited to 'demos/gtk-demo')
-rw-r--r-- | demos/gtk-demo/offscreen_window.c | 6 | ||||
-rw-r--r-- | demos/gtk-demo/offscreen_window2.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c index 96fd8d4031..410f524d12 100644 --- a/demos/gtk-demo/offscreen_window.c +++ b/demos/gtk-demo/offscreen_window.c @@ -391,7 +391,7 @@ gtk_rotated_bin_size_request (GtkWidget *widget, child_requisition.height = 0; if (bin->child && gtk_widget_get_visible (bin->child)) - gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child), + gtk_widget_get_preferred_size ( (bin->child), &child_requisition, NULL); s = sin (bin->angle); @@ -434,8 +434,8 @@ gtk_rotated_bin_size_allocate (GtkWidget *widget, s = sin (bin->angle); c = cos (bin->angle); - gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child), - &child_requisition, NULL); + gtk_widget_get_preferred_size (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 b623e303ef..c03d8c0c38 100644 --- a/demos/gtk-demo/offscreen_window2.c +++ b/demos/gtk-demo/offscreen_window2.c @@ -315,7 +315,7 @@ gtk_mirror_bin_size_request (GtkWidget *widget, child_requisition.height = 0; if (bin->child && gtk_widget_get_visible (bin->child)) - gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child), + gtk_widget_get_preferred_size ( (bin->child), &child_requisition, NULL); border_width = gtk_container_get_border_width (GTK_CONTAINER (widget)); @@ -349,8 +349,8 @@ gtk_mirror_bin_size_allocate (GtkWidget *widget, GtkRequisition child_requisition; GtkAllocation child_allocation; - gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child), - &child_requisition, NULL); + gtk_widget_get_preferred_size (bin->child, + &child_requisition, NULL); child_allocation.x = 0; child_allocation.y = 0; child_allocation.height = child_requisition.height; |