aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-14 06:16:57 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:19 +0800
commit80bc7035be2d07d14e60b09a624147f6e92d1dc6 (patch)
tree6a6dbd40ed7efffa7f42c0f2ff940474b80f7191 /e-util
parent2485ba3936c9fdd4e185393d49c34dae7ba1f49d (diff)
downloadgsoc2013-evolution-80bc7035be2d07d14e60b09a624147f6e92d1dc6.tar
gsoc2013-evolution-80bc7035be2d07d14e60b09a624147f6e92d1dc6.tar.gz
gsoc2013-evolution-80bc7035be2d07d14e60b09a624147f6e92d1dc6.tar.bz2
gsoc2013-evolution-80bc7035be2d07d14e60b09a624147f6e92d1dc6.tar.lz
gsoc2013-evolution-80bc7035be2d07d14e60b09a624147f6e92d1dc6.tar.xz
gsoc2013-evolution-80bc7035be2d07d14e60b09a624147f6e92d1dc6.tar.zst
gsoc2013-evolution-80bc7035be2d07d14e60b09a624147f6e92d1dc6.zip
Fudge GtkScrollable for gtk2.
Yes, the GtkScrollable interface is implemented by more than just GtkLayout, but it turns out GtkLayout is the only thing Evolution uses the GtkScrollable API for on the gtk3 branch.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/gtk-compat.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/e-util/gtk-compat.h b/e-util/gtk-compat.h
index f67a9e2c8b..7e4ab693c9 100644
--- a/e-util/gtk-compat.h
+++ b/e-util/gtk-compat.h
@@ -5,9 +5,21 @@
/* Provide a GTK+ compatibility layer. */
-#if !GTK_CHECK_VERSION (2,91,0) /* approximately */
+#if !GTK_CHECK_VERSION (2,91,0) /* approximately; who cares at this point */
+
#define gtk_widget_get_preferred_size(widget, minimum_size, natural_size) \
(gtk_widget_size_request ((widget), ((minimum_size))))
+
+/* XXX Yes, the GtkScrollable interface is implemented by more than just
+ * GtkLayout, but it turns out GtkLayout is the only thing Evolution
+ * uses the GtkScrollable API for on the gtk3 branch. */
+#define GtkScrollable GtkLayout
+#define GTK_SCROLLABLE GTK_LAYOUT
+#define gtk_scrollable_get_hadjustment gtk_layout_get_hadjustment
+#define gtk_scrollable_set_hadjustment gtk_layout_set_hadjustment
+#define gtk_scrollable_get_vadjustment gtk_layout_get_vadjustment
+#define gtk_scrollable_set_vadjustment gtk_layout_set_vadjustment
+
#endif
#if !GTK_CHECK_VERSION (2,23,0)