summaryrefslogtreecommitdiff
path: root/gtk/gtkhandlebox.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkhandlebox.c')
-rw-r--r--gtk/gtkhandlebox.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index 423a4f25ef..4fde9822bd 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -645,7 +645,10 @@ gtk_handle_box_size_allocate (GtkWidget *widget,
child = gtk_bin_get_child (bin);
if (child)
- gtk_widget_get_child_requisition (child, &child_requisition);
+ {
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (child),
+ &child_requisition, NULL);
+ }
else
{
child_requisition.width = 0;
@@ -1379,7 +1382,10 @@ gtk_handle_box_motion (GtkWidget *widget,
priv->child_detached = TRUE;
if (child)
- gtk_widget_get_child_requisition (child, &child_requisition);
+ {
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (child),
+ &child_requisition, NULL);
+ }
else
{
child_requisition.width = 0;