comparison src/main.c @ 320:c74af1cbd61a

Move more options to ConfOptions.
author zas_
date Fri, 11 Apr 2008 22:52:22 +0000
parents b16b9b8979e5
children d344bcf37618
comparison
equal deleted inserted replaced
319:f9611a6cf0e2 320:c74af1cbd61a
1172 g_free(options->safe_delete_path); 1172 g_free(options->safe_delete_path);
1173 options->safe_delete_path = concat_dir_and_file(homedir(), GQ_RC_DIR_TRASH); 1173 options->safe_delete_path = concat_dir_and_file(homedir(), GQ_RC_DIR_TRASH);
1174 1174
1175 for (i = 0; i < COLOR_PROFILE_INPUTS; i++) 1175 for (i = 0; i < COLOR_PROFILE_INPUTS; i++)
1176 { 1176 {
1177 color_profile_input_file[i] = NULL; 1177 options->color_profile_input_file[i] = NULL;
1178 color_profile_input_name[i] = NULL; 1178 options->color_profile_input_name[i] = NULL;
1179 } 1179 }
1180 1180
1181 options->fullscreen_info = g_strdup("%collection%(%number%/%total%) <b>%name%</b>\n" 1181 options->fullscreen_info = g_strdup("%collection%(%number%/%total%) <b>%name%</b>\n"
1182 "%res%|%date%|%size%\n" 1182 "%res%|%date%|%size%\n"
1183 "%fAperture%|%fShutterSpeed%|%fISOSpeedRating%|%fFocalLength%|%fExposureBias%\n" 1183 "%fAperture%|%fShutterSpeed%|%fISOSpeedRating%|%fFocalLength%|%fExposureBias%\n"
1207 options->show_fullscreen_info = image_osd_get(lw->image, NULL, NULL); 1207 options->show_fullscreen_info = image_osd_get(lw->image, NULL, NULL);
1208 } 1208 }
1209 1209
1210 layout_geometry_get_dividers(NULL, &options->window_hdivider_pos, &options->window_vdivider_pos); 1210 layout_geometry_get_dividers(NULL, &options->window_hdivider_pos, &options->window_vdivider_pos);
1211 1211
1212 layout_views_get(NULL, &layout_view_tree, &layout_view_icons); 1212 layout_views_get(NULL, &options->layout_view_tree, &options->layout_view_icons);
1213 1213
1214 options->thumbnails_enabled = layout_thumb_get(NULL); 1214 options->thumbnails_enabled = layout_thumb_get(NULL);
1215 layout_sort_get(NULL, &options->file_sort_method, &options->file_sort_ascending); 1215 layout_sort_get(NULL, &options->file_sort_method, &options->file_sort_ascending);
1216 1216
1217 layout_geometry_get_tools(NULL, &options->float_window_x, &options->float_window_y, 1217 layout_geometry_get_tools(NULL, &options->float_window_x, &options->float_window_y,
1218 &options->float_window_w, &options->float_window_h, &options->float_window_divider); 1218 &options->float_window_w, &options->float_window_h, &options->float_window_divider);
1219 layout_tools_float_get(NULL, &options->tools_float, &options->tools_hidden); 1219 layout_tools_float_get(NULL, &options->tools_float, &options->tools_hidden);
1220 options->toolbar_hidden = layout_toolbar_hidden(NULL); 1220 options->toolbar_hidden = layout_toolbar_hidden(NULL);
1221 1221
1222 color_profile_enabled = layout_image_color_profile_get_use(NULL); 1222 options->color_profile_enabled = layout_image_color_profile_get_use(NULL);
1223 layout_image_color_profile_get(NULL, 1223 layout_image_color_profile_get(NULL,
1224 &color_profile_input_type, &color_profile_screen_type, 1224 &options->color_profile_input_type,
1225 &color_profile_use_image); 1225 &options->color_profile_screen_type,
1226 &options->color_profile_use_image);
1226 1227
1227 save_options(); 1228 save_options();
1228 keys_save(); 1229 keys_save();
1229 1230
1230 path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/accels", NULL); 1231 path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/accels", NULL);
1321 1322
1322 #if 1 1323 #if 1
1323 printf("%s %s, This is an alpha release.\n", GQ_APPNAME, VERSION); 1324 printf("%s %s, This is an alpha release.\n", GQ_APPNAME, VERSION);
1324 #endif 1325 #endif
1325 options = init_options(NULL); 1326 options = init_options(NULL);
1326 layout_order = g_strdup("123"); 1327 options->layout_order = g_strdup("123"); /* TODO: move to init_options() */
1327 setup_default_options(); 1328 setup_default_options();
1328 load_options(); 1329 load_options();
1329 1330
1330 parse_command_line(argc, argv, &cmd_path, &cmd_file, &cmd_list, &collection_list, &geometry); 1331 parse_command_line(argc, argv, &cmd_path, &cmd_file, &cmd_list, &collection_list, &geometry);
1331 1332