summaryrefslogtreecommitdiff
path: root/gtk/gtkpaned.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/gtkpaned.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/gtkpaned.c')
-rw-r--r--gtk/gtkpaned.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 03f65846d8..9b2f31254a 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -26,13 +26,16 @@
#include "config.h"
+#include "gtkpaned.h"
+
#include "gdk/gdkkeysyms.h"
#include "gtkbindings.h"
#include "gtkmain.h"
#include "gtkmarshalers.h"
#include "gtkorientable.h"
-#include "gtkpaned.h"
+#include "gtksizerequest.h"
#include "gtkwindow.h"
+
#include "gtkprivate.h"
#include "gtkintl.h"
@@ -884,8 +887,10 @@ gtk_paned_size_allocate (GtkWidget *widget,
gtk_widget_style_get (widget, "handle-size", &handle_size, NULL);
- gtk_widget_get_child_requisition (priv->child1, &child1_requisition);
- gtk_widget_get_child_requisition (priv->child2, &child2_requisition);
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (priv->child1),
+ &child1_requisition, NULL);
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (priv->child2),
+ &child2_requisition, NULL);
old_handle_pos = priv->handle_pos;