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/gtklinkbutton.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/gtklinkbutton.c')
-rw-r--r-- | gtk/gtklinkbutton.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c index 16fbdc5d3a..0211f15c44 100644 --- a/gtk/gtklinkbutton.c +++ b/gtk/gtklinkbutton.c @@ -24,6 +24,8 @@ #include "config.h" +#include "gtklinkbutton.h" + #include <string.h> #include "gtkclipboard.h" @@ -33,12 +35,11 @@ #include "gtkmain.h" #include "gtkmenu.h" #include "gtkmenuitem.h" +#include "gtksizerequest.h" #include "gtkstock.h" #include "gtkshow.h" #include "gtktooltip.h" -#include "gtklinkbutton.h" - #include "gtkintl.h" @@ -368,7 +369,8 @@ popup_position_func (GtkMenu *menu, gdk_window_get_origin (gtk_widget_get_window (widget), x, y); - gtk_widget_size_request (priv->popup_menu, &req); + gtk_size_request_get_size (GTK_SIZE_REQUEST (priv->popup_menu), + &req, NULL); gtk_widget_get_allocation (widget, &allocation); *x += allocation.width / 2; |