Properly initialize image_overlay options.
authorLaurent Monin <geeqie@norz.org>
Mon, 21 Apr 2008 20:45:35 +0000 (20:45 +0000)
committerLaurent Monin <geeqie@norz.org>
Mon, 21 Apr 2008 20:45:35 +0000 (20:45 +0000)
src/globals.c

index 6dab944..e6c9789 100644 (file)
@@ -51,9 +51,7 @@ ConfOptions *init_options(ConfOptions *options)
        options->fullscreen.above = FALSE;
        options->fullscreen.clean_flip = FALSE;
        options->fullscreen.disable_saver = TRUE;
-       options->image_overlay.common.template_string = NULL;
        options->fullscreen.screen = -1;
-       options->image_overlay.common.show_at_startup = TRUE;
 
        memset(&options->image.border_color, 0, sizeof(options->image.border_color));
        options->image.dither_quality = (gint)GDK_RGB_DITHER_NORMAL;
@@ -75,6 +73,10 @@ ConfOptions *init_options(ConfOptions *options)
        options->image.zoom_quality = (gint)GDK_INTERP_BILINEAR;
        options->image.zoom_to_fit_allow_expand = TRUE;
 
+       options->image_overlay.common.enabled = FALSE;
+       options->image_overlay.common.show_at_startup = FALSE;
+       options->image_overlay.common.template_string = NULL;
+
        options->layout.dir_view_type = DIRVIEW_LIST;
        options->layout.float_window.h = 450;
        options->layout.float_window.vdivider_pos = -1;