diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-09-14 03:33:06 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-09-15 03:02:58 +0200 |
commit | b140884fec56d0ac5f15fe3937879a7a1dd6f0c1 (patch) | |
tree | c891f7828f125fd533e0a36fe6a031c060fbc536 /gtk/gtkoffscreenwindow.c | |
parent | a18e2370bf7349aa61f9c236dd785a45c77d0a84 (diff) | |
download | gtk+-b140884fec56d0ac5f15fe3937879a7a1dd6f0c1.tar.gz |
Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
Diffstat (limited to 'gtk/gtkoffscreenwindow.c')
-rw-r--r-- | gtk/gtkoffscreenwindow.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/gtkoffscreenwindow.c b/gtk/gtkoffscreenwindow.c index bdd29c626c..26bbadb1ec 100644 --- a/gtk/gtkoffscreenwindow.c +++ b/gtk/gtkoffscreenwindow.c @@ -18,8 +18,12 @@ * Alexander Larsson <alexl@redhat.com> */ +#include "config.h" + #include "gtkoffscreenwindow.h" +#include "gtksizerequest.h" + /** * SECTION:gtkoffscreenwindow * @short_description: A toplevel container widget used to manage offscreen @@ -69,7 +73,8 @@ gtk_offscreen_window_size_request (GtkWidget *widget, { GtkRequisition child_req; - gtk_widget_size_request (child, &child_req); + gtk_size_request_get_size (GTK_SIZE_REQUEST (child), + &child_req, NULL); requisition->width += child_req.width; requisition->height += child_req.height; @@ -171,7 +176,8 @@ gtk_offscreen_window_resize (GtkWidget *widget) GtkAllocation allocation = { 0, 0 }; GtkRequisition requisition; - gtk_widget_size_request (widget, &requisition); + gtk_size_request_get_size (GTK_SIZE_REQUEST (widget), + &requisition, NULL); allocation.width = requisition.width; allocation.height = requisition.height; |