diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-13 23:54:58 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:19 +0800 |
commit | 2485ba3936c9fdd4e185393d49c34dae7ba1f49d (patch) | |
tree | 0836c8d3ebd4636ffa836de97f7217598264e999 /widgets/misc/e-dateedit.c | |
parent | 57d45a6536711e3fe974b97642f218ac859e36e7 (diff) | |
download | gsoc2013-evolution-2485ba3936c9fdd4e185393d49c34dae7ba1f49d.tar gsoc2013-evolution-2485ba3936c9fdd4e185393d49c34dae7ba1f49d.tar.gz gsoc2013-evolution-2485ba3936c9fdd4e185393d49c34dae7ba1f49d.tar.bz2 gsoc2013-evolution-2485ba3936c9fdd4e185393d49c34dae7ba1f49d.tar.lz gsoc2013-evolution-2485ba3936c9fdd4e185393d49c34dae7ba1f49d.tar.xz gsoc2013-evolution-2485ba3936c9fdd4e185393d49c34dae7ba1f49d.tar.zst gsoc2013-evolution-2485ba3936c9fdd4e185393d49c34dae7ba1f49d.zip |
Fudge gtk_widget_get_preferred_size() for gtk2.
Easy enough to fake gtk_widget_get_preferred_size() in gtk2 using
gtk_widget_size_request(). Reduces diff noise with gtk3 branch.
Diffstat (limited to 'widgets/misc/e-dateedit.c')
-rw-r--r-- | widgets/misc/e-dateedit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c index d0b9b7ea8f..098825a321 100644 --- a/widgets/misc/e-dateedit.c +++ b/widgets/misc/e-dateedit.c @@ -1411,12 +1411,12 @@ position_date_popup (EDateEdit *dedit) GtkRequisition cal_req, button_req; gint screen_width, screen_height; - gtk_widget_size_request (dedit->priv->cal_popup, &cal_req); + gtk_widget_get_preferred_size (dedit->priv->cal_popup, &cal_req, NULL); - gtk_widget_size_request (dedit->priv->date_button, &button_req); + gtk_widget_get_preferred_size (dedit->priv->date_button, &button_req, NULL); bwidth = button_req.width; - gtk_widget_size_request ( - gtk_widget_get_parent (dedit->priv->date_button), &button_req); + gtk_widget_get_preferred_size ( + gtk_widget_get_parent (dedit->priv->date_button), &button_req, NULL); bheight = button_req.height; gtk_widget_translate_coordinates ( |