Mercurial > geeqie.yaz
diff src/options.c @ 612:21864cc96369
Preserve last histogram modes.
When a new histogram is displayed, it uses previously chosen
modes.
These modes are saved on exit to rc file as options:
histogram.last_channel_mode
histogram.last_log_mode
author | zas_ |
---|---|
date | Fri, 09 May 2008 08:39:18 +0000 |
parents | 4cfce4ed35e0 |
children | 2ccc7d856d55 |
line wrap: on
line diff
--- a/src/options.c Fri May 09 08:03:25 2008 +0000 +++ b/src/options.c Fri May 09 08:39:18 2008 +0000 @@ -12,6 +12,8 @@ #include "main.h" #include "options.h" +#include "histogram.h" /* HCHAN_RGB */ + ConfOptions *init_options(ConfOptions *options) { if (!options) options = g_new0(ConfOptions, 1); @@ -48,6 +50,9 @@ options->fullscreen.disable_saver = TRUE; options->fullscreen.screen = -1; + options->histogram.last_channel_mode = HCHAN_RGB; + options->histogram.last_log_mode = 1; + memset(&options->image.border_color, 0, sizeof(options->image.border_color)); options->image.dither_quality = (gint)GDK_RGB_DITHER_NORMAL; options->image.enable_read_ahead = TRUE;