summaryrefslogtreecommitdiff
path: root/src/eom-scroll-view.c
diff options
context:
space:
mode:
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