diff src/image.c @ 1626:1d7941c147be

Add an option to Image preferences to restrict custom border to fullscreen mode only. Bug 2798062.
author zas_
date Thu, 04 Jun 2009 19:51:20 +0000
parents c776b1310ca6
children 511c979c2e7c
line wrap: on
line diff
--- a/src/image.c	Thu Jun 04 16:07:41 2009 +0000
+++ b/src/image.c	Thu Jun 04 19:51:20 2009 +0000
@@ -1463,6 +1463,19 @@
 	pixbuf_renderer_set_color((PixbufRenderer *)imd->pr, color);
 }
 
+void image_background_set_color_from_options(ImageWindow *imd, gboolean fullscreen)
+{
+	GdkColor *color = NULL;
+
+	if (options->image.use_custom_border_color
+	    && (!options->image.custom_border_fullscreen_only || fullscreen))
+		{
+		color = &options->image.border_color;
+		}
+
+	image_background_set_color(imd, color);
+}
+
 void image_color_profile_set(ImageWindow *imd,
 			     gint input_type,
 			     gboolean use_image)