diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-14 06:16:57 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-01-15 03:58:30 +0800 |
commit | d47adb5922a262effdd14c1c50bb0a3660088798 (patch) | |
tree | e5e35815f8feea8d7fbf46a46d7e82f1b8ed3d6a /e-util | |
parent | 0af3ff804c0d71c76fd63f0a2a152cac7de64863 (diff) | |
download | gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar.gz gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar.bz2 gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar.lz gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar.xz gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.tar.zst gsoc2013-evolution-d47adb5922a262effdd14c1c50bb0a3660088798.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.h | 14 |
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) |