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-combo-cell-editable.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-combo-cell-editable.c')
-rw-r--r-- | widgets/misc/e-combo-cell-editable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/misc/e-combo-cell-editable.c b/widgets/misc/e-combo-cell-editable.c index aa514630ee..613fc7b2f6 100644 --- a/widgets/misc/e-combo-cell-editable.c +++ b/widgets/misc/e-combo-cell-editable.c @@ -215,7 +215,7 @@ position_popup (EComboCellEditable *ecce, gint x, gint y, gint offset) GtkRequisition req; gtk_widget_realize (ecce->priv->popup); - gtk_widget_size_request (ecce->priv->popup, &req); + gtk_widget_get_preferred_size (ecce->priv->popup, &req, NULL); if (req.height > gdk_screen_height () - y) { y -= (offset + req.height); |