Mercurial > geeqie
diff src/collect-dlg.c @ 1145:3a7af6a8cd5f
Use functions to return directories instead of constants.
Following functions were added:
get_collections_dir()
get_metadata_cache_dir()
get_rc_dir()
get_thumbnails_cache_dir()
get_trash_dir()
They return the full directory path.
author | zas_ |
---|---|
date | Sat, 15 Nov 2008 17:30:45 +0000 |
parents | 1646720364cf |
children | 0bea79d87065 |
line wrap: on
line diff
--- a/src/collect-dlg.c Sat Nov 15 10:35:43 2008 +0000 +++ b/src/collect-dlg.c Sat Nov 15 17:30:45 2008 +0000 @@ -162,7 +162,6 @@ const gchar *title; const gchar *btntext; gpointer btnfunc; - gchar *base; const gchar *stock_id; if (type == DIALOG_SAVE || type == DIALOG_SAVE_CLOSE) @@ -200,10 +199,8 @@ generic_dialog_add_message(GENERIC_DIALOG(fd), NULL, title, NULL); file_dialog_add_button(fd, stock_id, btntext, btnfunc, TRUE); - base = g_build_filename(homedir(), GQ_RC_DIR_COLLECTIONS, NULL); - file_dialog_add_path_widgets(fd, base, path, + file_dialog_add_path_widgets(fd, get_collections_dir(), path, "collection_load_save", GQ_COLLECTION_EXT, _("Collection Files")); - g_free(base); fd->type = type;