aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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 /plugins
parent57d45a6536711e3fe974b97642f218ac859e36e7 (diff)
downloadgsoc2013-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 'plugins')
-rw-r--r--plugins/mark-all-read/mark-all-read.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mark-all-read/mark-all-read.c b/plugins/mark-all-read/mark-all-read.c
index 62b8102d9d..6e527d653c 100644
--- a/plugins/mark-all-read/mark-all-read.c
+++ b/plugins/mark-all-read/mark-all-read.c
@@ -38,6 +38,9 @@
#include <shell/e-shell-view.h>
#include <shell/e-shell-window.h>
+/* backward-compatibility cruft */
+#include "e-util/gtk-compat.h"
+
#define PRIMARY_TEXT \
N_("Also mark messages in subfolders?")
#define SECONDARY_TEXT \
@@ -79,7 +82,7 @@ box_mapped_cb (GtkWidget *box,
/* In order to get decent line wrapping we need to wait until the
* box containing the buttons is mapped, and then resize the label
* to the same width as the box. */
- gtk_widget_size_request (box, &requisition);
+ gtk_widget_get_preferred_size (box, &requisition, NULL);
gtk_widget_set_size_request (label, requisition.width, -1);
}