comparison src/main.c @ 614:b2898f04c82e

image_osd_get() and image_osd_set() now uses flags.
author zas_
date Fri, 09 May 2008 09:58:46 +0000
parents 905688aa2317
children b1a922a32d9c
comparison
equal deleted inserted replaced
613:d06f422a6673 614:b2898f04c82e
1206 if (!options->layout.main_window.maximized) 1206 if (!options->layout.main_window.maximized)
1207 { 1207 {
1208 layout_geometry_get(NULL, &options->layout.main_window.x, &options->layout.main_window.y, 1208 layout_geometry_get(NULL, &options->layout.main_window.x, &options->layout.main_window.y,
1209 &options->layout.main_window.w, &options->layout.main_window.h); 1209 &options->layout.main_window.w, &options->layout.main_window.h);
1210 } 1210 }
1211 options->image_overlay.common.enabled = image_osd_get(lw->image, NULL, NULL); 1211 options->image_overlay.common.enabled = image_osd_get(lw->image, NULL);
1212 } 1212 }
1213 1213
1214 layout_geometry_get_dividers(NULL, &options->layout.main_window.hdivider_pos, &options->layout.main_window.vdivider_pos); 1214 layout_geometry_get_dividers(NULL, &options->layout.main_window.hdivider_pos, &options->layout.main_window.vdivider_pos);
1215 1215
1216 layout_views_get(NULL, &options->layout.dir_view_type, &options->layout.file_view_type); 1216 layout_views_get(NULL, &options->layout.dir_view_type, &options->layout.file_view_type);
1477 { 1477 {
1478 layout_image_set_collection(lw, first_collection, 1478 layout_image_set_collection(lw, first_collection,
1479 collection_get_first(first_collection)); 1479 collection_get_first(first_collection));
1480 } 1480 }
1481 } 1481 }
1482 image_osd_set(lw->image, FALSE, (options->image_overlay.common.show_at_startup || options->image_overlay.common.enabled)); 1482
1483 image_osd_set(lw->image, (options->image_overlay.common.show_at_startup || options->image_overlay.common.enabled) ? OSD_SHOW_INFO : OSD_SHOW_NOTHING);
1483 1484
1484 g_free(geometry); 1485 g_free(geometry);
1485 g_free(cmd_path); 1486 g_free(cmd_path);
1486 g_free(cmd_file); 1487 g_free(cmd_file);
1487 filelist_free(cmd_list); 1488 filelist_free(cmd_list);