[eog] Make setting the image view background color work again



commit 64ffb683343d9af629671ea82c85f91130c3ea7d
Author: Felix Riemann <friemann gnome org>
Date:   Mon Feb 14 23:48:31 2011 +0100

    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.

 src/eog-scroll-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index feae49b..522c3b9 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -2951,7 +2951,7 @@ _eog_scroll_view_update_bg_color (EogScrollView *view)
 		priv->background_surface = NULL;
 	}
 
-	gtk_widget_modify_bg (GTK_WIDGET (view),
+	gtk_widget_modify_bg (GTK_WIDGET (priv->display),
 			      GTK_STATE_NORMAL,
 			      selected);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]