Mercurial > geeqie.yaz
comparison src/image.c @ 1622:fee96b7345e8
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 | 69f7270b3b27 |
children | b4199094b0db |
comparison
equal
deleted
inserted
replaced
1621:397c25f6c9d6 | 1622:fee96b7345e8 |
---|---|
1439 void image_background_set_color(ImageWindow *imd, GdkColor *color) | 1439 void image_background_set_color(ImageWindow *imd, GdkColor *color) |
1440 { | 1440 { |
1441 pixbuf_renderer_set_color((PixbufRenderer *)imd->pr, color); | 1441 pixbuf_renderer_set_color((PixbufRenderer *)imd->pr, color); |
1442 } | 1442 } |
1443 | 1443 |
1444 void image_background_set_color_from_options(ImageWindow *imd, gboolean fullscreen) | |
1445 { | |
1446 GdkColor *color = NULL; | |
1447 | |
1448 if (options->image.use_custom_border_color | |
1449 && (!options->image.custom_border_fullscreen_only || fullscreen)) | |
1450 { | |
1451 color = &options->image.border_color; | |
1452 } | |
1453 | |
1454 image_background_set_color(imd, color); | |
1455 } | |
1456 | |
1444 void image_color_profile_set(ImageWindow *imd, | 1457 void image_color_profile_set(ImageWindow *imd, |
1445 gint input_type, gint screen_type, | 1458 gint input_type, gint screen_type, |
1446 gboolean use_image) | 1459 gboolean use_image) |
1447 { | 1460 { |
1448 if (!imd) return; | 1461 if (!imd) return; |