Mercurial > geeqie.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
137:be3328a58875 | 138:71e1ebee420e |
---|---|
19 #include <string.h> | 19 #include <string.h> |
20 | 20 |
21 #include <gtk/gtk.h> | 21 #include <gtk/gtk.h> |
22 | 22 |
23 #include <gdk/gdkkeysyms.h> /* for key values */ | 23 #include <gdk/gdkkeysyms.h> /* for key values */ |
24 | |
25 #include "gqview.h" | |
26 #include "filelist.h" | |
24 | 27 |
25 #include "ui_bookmark.h" | 28 #include "ui_bookmark.h" |
26 | 29 |
27 #include "ui_fileops.h" | 30 #include "ui_fileops.h" |
28 #include "ui_menu.h" | 31 #include "ui_menu.h" |
1018 g_free(buf); | 1021 g_free(buf); |
1019 | 1022 |
1020 work = work->next; | 1023 work = work->next; |
1021 } | 1024 } |
1022 | 1025 |
1023 path_list_free(list); | 1026 string_list_free(list); |
1024 | 1027 |
1025 bookmark_populate_all(bm->key); | 1028 bookmark_populate_all(bm->key); |
1026 } | 1029 } |
1027 | 1030 |
1028 static void bookmark_list_destroy(GtkWidget *widget, gpointer data) | 1031 static void bookmark_list_destroy(GtkWidget *widget, gpointer data) |
1442 uri_list_parse_encoded_chars(list); | 1445 uri_list_parse_encoded_chars(list); |
1443 | 1446 |
1444 return list; | 1447 return list; |
1445 } | 1448 } |
1446 | 1449 |
1450 GList *uri_filelist_from_text(gchar *data, gint files_only) | |
1451 { | |
1452 GList *path_list = uri_list_from_text(data, files_only); | |
1453 GList *filelist = filelist_from_path_list(path_list); | |
1454 string_list_free(path_list); | |
1455 return filelist; | |
1456 } | |
1457 | |
1447 gchar *uri_text_from_list(GList *list, gint *len, gint plain_text) | 1458 gchar *uri_text_from_list(GList *list, gint *len, gint plain_text) |
1448 { | 1459 { |
1449 gchar *uri_text = NULL; | 1460 gchar *uri_text = NULL; |
1450 GString *string; | 1461 GString *string; |
1451 GList *work; | 1462 GList *work; |
1490 g_string_free(string, FALSE); | 1501 g_string_free(string, FALSE); |
1491 | 1502 |
1492 return uri_text; | 1503 return uri_text; |
1493 } | 1504 } |
1494 | 1505 |
1506 gchar *uri_text_from_filelist(GList *list, gint *len, gint plain_text) | |
1507 { | |
1508 GList *path_list = filelist_to_path_list(list); | |
1509 gchar *ret = uri_text_from_list(path_list, len, plain_text); | |
1510 string_list_free(path_list); | |
1511 return ret; | |
1512 } | |
1513 |