Mercurial > geeqie
comparison src/main.c @ 630:83d3ded39e49
An option to save and restore the last path used was added.
This option appears as startup.use_last_path in rc file.
Preferences > General > Startup was modified accordingly.
author | zas_ |
---|---|
date | Sun, 11 May 2008 13:14:58 +0000 |
parents | 1fa2cb6d9d65 |
children | 8cc9f349c670 |
comparison
equal
deleted
inserted
replaced
629:1fa2cb6d9d65 | 630:83d3ded39e49 |
---|---|
1227 layout_image_color_profile_get(NULL, | 1227 layout_image_color_profile_get(NULL, |
1228 &options->color_profile.input_type, | 1228 &options->color_profile.input_type, |
1229 &options->color_profile.screen_type, | 1229 &options->color_profile.screen_type, |
1230 &options->color_profile.use_image); | 1230 &options->color_profile.use_image); |
1231 | 1231 |
1232 if (options->startup.restore_path && options->startup.use_last_path) | |
1233 { | |
1234 g_free(options->startup.path); | |
1235 options->startup.path = g_strdup(layout_get_path(NULL)); | |
1236 } | |
1237 | |
1232 save_options(); | 1238 save_options(); |
1233 keys_save(); | 1239 keys_save(); |
1234 | 1240 |
1235 path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/accels", NULL); | 1241 path = g_strconcat(homedir(), "/", GQ_RC_DIR, "/accels", NULL); |
1236 pathl = path_from_utf8(path); | 1242 pathl = path_from_utf8(path); |
1300 if (exit_confirm_dlg()) return; | 1306 if (exit_confirm_dlg()) return; |
1301 | 1307 |
1302 exit_program_final(); | 1308 exit_program_final(); |
1303 } | 1309 } |
1304 | 1310 |
1305 int main (int argc, char *argv[]) | 1311 int main(int argc, char *argv[]) |
1306 { | 1312 { |
1307 LayoutWindow *lw; | 1313 LayoutWindow *lw; |
1308 gchar *path = NULL; | 1314 gchar *path = NULL; |
1309 gchar *cmd_path = NULL; | 1315 gchar *cmd_path = NULL; |
1310 gchar *cmd_file = NULL; | 1316 gchar *cmd_file = NULL; |