Mercurial > geeqie.yaz
diff src/ui_bookmark.c @ 138:71e1ebee420e
replaced gchar* path with FileData *fd
author | nadvornik |
---|---|
date | Tue, 11 Sep 2007 20:06:29 +0000 |
parents | 04ff0df3ad2f |
children | 9faf34f047b1 |
line wrap: on
line diff
--- a/src/ui_bookmark.c Thu Aug 23 20:45:59 2007 +0000 +++ b/src/ui_bookmark.c Tue Sep 11 20:06:29 2007 +0000 @@ -22,6 +22,9 @@ #include <gdk/gdkkeysyms.h> /* for key values */ +#include "gqview.h" +#include "filelist.h" + #include "ui_bookmark.h" #include "ui_fileops.h" @@ -1020,7 +1023,7 @@ work = work->next; } - path_list_free(list); + string_list_free(list); bookmark_populate_all(bm->key); } @@ -1444,6 +1447,14 @@ return list; } +GList *uri_filelist_from_text(gchar *data, gint files_only) +{ + GList *path_list = uri_list_from_text(data, files_only); + GList *filelist = filelist_from_path_list(path_list); + string_list_free(path_list); + return filelist; +} + gchar *uri_text_from_list(GList *list, gint *len, gint plain_text) { gchar *uri_text = NULL; @@ -1492,3 +1503,11 @@ return uri_text; } +gchar *uri_text_from_filelist(GList *list, gint *len, gint plain_text) +{ + GList *path_list = filelist_to_path_list(list); + gchar *ret = uri_text_from_list(path_list, len, plain_text); + string_list_free(path_list); + return ret; +} +