summaryrefslogtreecommitdiff
path: root/gtk/gtkhandlebox.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-09-09 15:35:58 +0200
committerJavier Jardón <jjardon@gnome.org>2010-09-13 21:26:01 +0200
commit9e81022bf6b7a5c25584b9eeea360cdf38cd6949 (patch)
tree3b2d02c989bb9042087b384b8637d19dc9e807e2 /gtk/gtkhandlebox.c
parent153bfacde0d9c7a533c0936f3078db58cf672aac (diff)
downloadgtk+-9e81022bf6b7a5c25584b9eeea360cdf38cd6949.tar.gz
Use gtk_size_request_get_size() instead deprecated gtk_widget_get_child_requisition()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629177
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;