aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-13 23:54:58 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:19 +0800
commit2485ba3936c9fdd4e185393d49c34dae7ba1f49d (patch)
tree0836c8d3ebd4636ffa836de97f7217598264e999 /addressbook
parent57d45a6536711e3fe974b97642f218ac859e36e7 (diff)
downloadgsoc2013-evolution-2485ba3936c9fdd4e185393d49c34dae7ba1f49d.tar.gz
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 'addressbook')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index d071e9bab6..4ca2dd624b 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -2706,8 +2706,8 @@ init_all (EContactEditor *editor)
/* with so many scrolled windows, we need to
do some manual sizing */
- gtk_widget_size_request (
- e_builder_get_widget (editor->builder, "vbox-size-leader"), &tab_req);
+ gtk_widget_get_preferred_size (
+ e_builder_get_widget (editor->builder, "vbox-size-leader"), &tab_req, NULL);
gtk_widget_set_size_request (
e_builder_get_widget (editor->builder, "scrolledwindow-size-leader"),
tab_req.width, tab_req.height + 8);