eog r4619 - in trunk: . src



Author: csaavedra
Date: Wed Jun 18 04:21:19 2008
New Revision: 4619
URL: http://svn.gnome.org/viewvc/eog?rev=4619&view=rev

Log:
2008-06-18  Claudio Saavedra  <csaavedra gnome org>

	* src/eog-scroll-view.c: (+eog_scroll_view_set_bg_color):
	New method to set the background color of the scrollview.
	* src/eog-scroll-view.h:
	* src/eog-window.c: (eog_window_run_fullscreen),
	(eog_window_stop_fullscreen): Use eog_scroll_view_set_bg_color
	instead of setting the color of the widget by hand.



Modified:
   trunk/ChangeLog
   trunk/src/eog-scroll-view.c
   trunk/src/eog-scroll-view.h
   trunk/src/eog-window.c

Modified: trunk/src/eog-scroll-view.c
==============================================================================
--- trunk/src/eog-scroll-view.c	(original)
+++ trunk/src/eog-scroll-view.c	Wed Jun 18 04:21:19 2008
@@ -2107,6 +2107,15 @@
 }
 
 void
+eog_scroll_view_set_bg_color (EogScrollView *view,
+			      GdkColor *color)
+{
+	g_return_if_fail (EOG_IS_SCROLL_VIEW (view));
+
+	gtk_widget_modify_bg (view, GTK_STATE_NORMAL, color);
+}
+
+void
 eog_scroll_view_set_scroll_wheel_zoom (EogScrollView *view, 
 				       gboolean       scroll_wheel_zoom)
 {

Modified: trunk/src/eog-scroll-view.h
==============================================================================
--- trunk/src/eog-scroll-view.h	(original)
+++ trunk/src/eog-scroll-view.h	Wed Jun 18 04:21:19 2008
@@ -49,6 +49,7 @@
 void     eog_scroll_view_set_transparency (EogScrollView *view, EogTransparencyStyle style, GdkColor *color);
 gboolean eog_scroll_view_scrollbars_visible (EogScrollView *view);
 void	 eog_scroll_view_set_popup (EogScrollView *view, GtkMenu *menu);
+void	 eog_scroll_view_set_bg_color (EogScrollView *view, GdkColor *color);
 
 /* zoom api */
 void     eog_scroll_view_zoom_in          (EogScrollView *view, gboolean smooth);

Modified: trunk/src/eog-window.c
==============================================================================
--- trunk/src/eog-window.c	(original)
+++ trunk/src/eog-window.c	Wed Jun 18 04:21:19 2008
@@ -2116,8 +2116,7 @@
 
 	gtk_widget_grab_focus (priv->view);
 
-	gtk_widget_modify_bg (window->priv->view, GTK_STATE_NORMAL, 
-			      &(GTK_WIDGET (window)->style->black));
+	eog_scroll_view_set_bg_color (window->priv->view, &(GTK_WIDGET (window)->style->black));
 
 	{
 		GtkStyle *style;
@@ -2195,7 +2194,7 @@
 	
 	eog_scroll_view_set_zoom_upscale (EOG_SCROLL_VIEW (priv->view), FALSE);
 
-	gtk_widget_modify_bg (window->priv->view, GTK_STATE_NORMAL, NULL);
+	eog_scroll_view_set_bg_color (EOG_SCROLL_VIEW (window->priv->view), NULL);
 	gtk_widget_set_style (window->priv->view->parent, NULL);
 	gtk_window_unfullscreen (GTK_WINDOW (window));
 



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