comparison src/main.c @ 1146:11b93d0791db

Rename check_for_home_path() to mkdir_if_not_exists().
author zas_
date Sat, 15 Nov 2008 17:48:31 +0000
parents 3a7af6a8cd5f
children 95860439070b
comparison
equal deleted inserted replaced
1145:3a7af6a8cd5f 1146:11b93d0791db
442 path = g_build_filename(get_rc_dir(), RC_HISTORY_NAME, NULL); 442 path = g_build_filename(get_rc_dir(), RC_HISTORY_NAME, NULL);
443 history_list_save(path); 443 history_list_save(path);
444 g_free(path); 444 g_free(path);
445 } 445 }
446 446
447 static void check_for_home_path(const gchar *path) 447 static void mkdir_if_not_exists(const gchar *path)
448 { 448 {
449 if (isdir(path)) return; 449 if (isdir(path)) return;
450 450
451 log_printf(_("Creating %s dir:%s\n"), GQ_APPNAME, path); 451 log_printf(_("Creating %s dir:%s\n"), GQ_APPNAME, path);
452 452
715 log_printf("!!! compiled with GTK+-%d.%d\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION); 715 log_printf("!!! compiled with GTK+-%d.%d\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION);
716 log_printf("!!! running with GTK+-%d.%d\n", gtk_major_version, gtk_minor_version); 716 log_printf("!!! running with GTK+-%d.%d\n", gtk_major_version, gtk_minor_version);
717 log_printf("!!! %s may quit unexpectedly with a relocation error.\n", GQ_APPNAME); 717 log_printf("!!! %s may quit unexpectedly with a relocation error.\n", GQ_APPNAME);
718 } 718 }
719 719
720 check_for_home_path(get_rc_dir()); 720 mkdir_if_not_exists(get_rc_dir());
721 check_for_home_path(get_collections_dir()); 721 mkdir_if_not_exists(get_collections_dir());
722 check_for_home_path(get_thumbnails_cache_dir()); 722 mkdir_if_not_exists(get_thumbnails_cache_dir());
723 check_for_home_path(get_metadata_cache_dir()); 723 mkdir_if_not_exists(get_metadata_cache_dir());
724 724
725 keys_load(); 725 keys_load();
726 filter_add_defaults(); 726 filter_add_defaults();
727 filter_rebuild(); 727 filter_rebuild();
728 728