Mercurial > geeqie
diff src/preferences.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 | d00761ba18bd |
children | b8235f919d6b |
line wrap: on
line diff
--- a/src/preferences.c Thu Jun 04 16:07:41 2009 +0000 +++ b/src/preferences.c Thu Jun 04 19:51:20 2009 +0000 @@ -314,9 +314,12 @@ options->image.enable_read_ahead = c_options->image.enable_read_ahead; + if (options->image.use_custom_border_color != c_options->image.use_custom_border_color + || options->image.custom_border_fullscreen_only != c_options->image.custom_border_fullscreen_only || !gdk_color_equal(&options->image.border_color, &c_options->image.border_color)) { + options->image.custom_border_fullscreen_only = c_options->image.custom_border_fullscreen_only; options->image.use_custom_border_color = c_options->image.use_custom_border_color; options->image.border_color = c_options->image.border_color; layout_colors_update(); @@ -1333,6 +1336,9 @@ pref_checkbox_new_int(group, _("Custom border color"), options->image.use_custom_border_color, &c_options->image.use_custom_border_color); + + pref_checkbox_new_int(group, _("Apply custom border to fullscreen mode only"), + options->image.custom_border_fullscreen_only, &c_options->image.custom_border_fullscreen_only); pref_color_button_new(group, _("Border color"), &options->image.border_color, G_CALLBACK(pref_color_button_set_cb), &c_options->image.border_color);