summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-28 16:23:31 +0200
committerinfirit <[email protected]>2014-07-28 17:05:03 +0200
commit1e6548b0c03d5ddc1362979d0c24ce1636ee54df (patch)
tree0d12e17e7baecd266edf0291674678a9e65e3695 /src
parent078023865cfc436800cf8f9943158f47fd777d6b (diff)
downloadeom-1e6548b0c03d5ddc1362979d0c24ce1636ee54df.tar.bz2
eom-1e6548b0c03d5ddc1362979d0c24ce1636ee54df.tar.xz
Make setting the image view background color work again
The color was assigned to the parent container and not to the drawing area. That made it draw the default theme background color all the time instead. Based on eog commit 64ffb683343d9af629671ea82c85f91130c3ea7d From Felix Riemann <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/eom-scroll-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c
index 86541eb..2d9f21a 100644
--- a/src/eom-scroll-view.c
+++ b/src/eom-scroll-view.c
@@ -2989,7 +2989,11 @@ _eom_scroll_view_update_bg_color (EomScrollView *view)
priv->background_surface = NULL;
}
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_modify_bg (GTK_WIDGET (priv->display),
+#else
gtk_widget_modify_bg (GTK_WIDGET (view),
+#endif
GTK_STATE_NORMAL,
selected);
}