summaryrefslogtreecommitdiff
path: root/src/eom-scroll-view.c
diff options
context:
space:
mode:
authorLaszlo Boros <[email protected]>2013-08-18 01:26:29 +0200
committerStefano Karapetsas <[email protected]>2013-10-17 12:28:11 +0200
commit1e9954cbc51fc67b1e34cd6dd8f0a77a360eb4c8 (patch)
tree0051295b73ee5aa6caa0210e6a3ac7af11edf674 /src/eom-scroll-view.c
parent7a364394044201fbd23a9fc5e152f512d24fd876 (diff)
downloadeom-1e9954cbc51fc67b1e34cd6dd8f0a77a360eb4c8.tar.bz2
eom-1e9954cbc51fc67b1e34cd6dd8f0a77a360eb4c8.tar.xz
GTK3 support
Diffstat (limited to 'src/eom-scroll-view.c')
-rw-r--r--src/eom-scroll-view.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c
index 9a389ae..6c2bf78 100644
--- a/src/eom-scroll-view.c
+++ b/src/eom-scroll-view.c
@@ -17,6 +17,8 @@
#include "uta.h"
#include "zoom.h"
+#include <gdk/gdk.h>
+
/* Maximum size of delayed repaint rectangles */
#define PAINT_RECT_WIDTH 128
#define PAINT_RECT_HEIGHT 128
@@ -2118,9 +2120,11 @@ eom_scroll_view_set_image (EomScrollView *view, EomImage *image)
if (priv->image != NULL) {
free_image_resources (view);
+ #if !GTK_CHECK_VERSION(3, 0, 0)
if (gtk_widget_is_drawable (priv->display) && image == NULL) {
gdk_window_clear (gtk_widget_get_window (priv->display));
}
+ #endif
}
g_assert (priv->image == NULL);
g_assert (priv->pixbuf == NULL);
@@ -2630,4 +2634,4 @@ eom_scroll_view_set_zoom_multiplier (EomScrollView *view,
g_return_if_fail (EOM_IS_SCROLL_VIEW (view));
view->priv->zoom_multiplier = 1.0 + zoom_multiplier;
-}
+} \ No newline at end of file