Mercurial > geeqie.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
611:f31ae0d9e163 | 612:21864cc96369 |
---|---|
9 * This software comes with no warranty of any kind, use at your own risk! | 9 * This software comes with no warranty of any kind, use at your own risk! |
10 */ | 10 */ |
11 | 11 |
12 #include "main.h" | 12 #include "main.h" |
13 #include "options.h" | 13 #include "options.h" |
14 | |
15 #include "histogram.h" /* HCHAN_RGB */ | |
14 | 16 |
15 ConfOptions *init_options(ConfOptions *options) | 17 ConfOptions *init_options(ConfOptions *options) |
16 { | 18 { |
17 if (!options) options = g_new0(ConfOptions, 1); | 19 if (!options) options = g_new0(ConfOptions, 1); |
18 | 20 |
46 options->fullscreen.above = FALSE; | 48 options->fullscreen.above = FALSE; |
47 options->fullscreen.clean_flip = FALSE; | 49 options->fullscreen.clean_flip = FALSE; |
48 options->fullscreen.disable_saver = TRUE; | 50 options->fullscreen.disable_saver = TRUE; |
49 options->fullscreen.screen = -1; | 51 options->fullscreen.screen = -1; |
50 | 52 |
53 options->histogram.last_channel_mode = HCHAN_RGB; | |
54 options->histogram.last_log_mode = 1; | |
55 | |
51 memset(&options->image.border_color, 0, sizeof(options->image.border_color)); | 56 memset(&options->image.border_color, 0, sizeof(options->image.border_color)); |
52 options->image.dither_quality = (gint)GDK_RGB_DITHER_NORMAL; | 57 options->image.dither_quality = (gint)GDK_RGB_DITHER_NORMAL; |
53 options->image.enable_read_ahead = TRUE; | 58 options->image.enable_read_ahead = TRUE; |
54 options->image.exif_rotate_enable = TRUE; | 59 options->image.exif_rotate_enable = TRUE; |
55 options->image.fit_window_to_image = FALSE; | 60 options->image.fit_window_to_image = FALSE; |