From 1e6548b0c03d5ddc1362979d0c24ce1636ee54df Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 28 Jul 2014 16:23:31 +0200 Subject: 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 --- src/eom-scroll-view.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit v1.2.1