[gthumb] Replace file_data_local_path with fd->local_path
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Replace file_data_local_path with fd->local_path
- Date: Wed, 6 May 2009 08:16:32 -0400 (EDT)
commit 28f45f32e61ef61bf933f760af8e93bb3f96afd9
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Wed May 6 08:16:08 2009 -0400
Replace file_data_local_path with fd->local_path
---
libgthumb/file-data.c | 6 ------
libgthumb/file-data.h | 1 -
src/dlg-photo-importer.c | 5 ++---
3 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/libgthumb/file-data.c b/libgthumb/file-data.c
index 9d3159c..8e60a2b 100644
--- a/libgthumb/file-data.c
+++ b/libgthumb/file-data.c
@@ -357,9 +357,3 @@ file_data_list_find_path (GList *list,
return NULL;
}
-
-char *
-file_data_local_path (FileData *fd)
-{
- return get_local_path_from_uri (fd->path);
-}
diff --git a/libgthumb/file-data.h b/libgthumb/file-data.h
index 41ecb38..f0458fe 100644
--- a/libgthumb/file-data.h
+++ b/libgthumb/file-data.h
@@ -83,6 +83,5 @@ GList* file_data_list_dup (GList *list);
void file_data_list_free (GList *list);
GList* file_data_list_find_path (GList *list,
const char *path);
-char * file_data_local_path (FileData *fd);
#endif /* FILE_DATA_H */
diff --git a/src/dlg-photo-importer.c b/src/dlg-photo-importer.c
index fa6a115..6b5d9cc 100644
--- a/src/dlg-photo-importer.c
+++ b/src/dlg-photo-importer.c
@@ -1751,7 +1751,7 @@ ok_clicked_cb (GtkButton *button,
if (sel_list != NULL) {
for (scan = sel_list; scan; scan = scan->next) {
FileData *fdata = scan->data;
- file_list = g_list_prepend (file_list, file_data_local_path (fdata));
+ file_list = g_list_prepend (file_list, g_strdup (fdata->local_path));
}
if (file_list != NULL)
file_list = g_list_reverse (file_list);
@@ -1982,8 +1982,7 @@ import_delete_cb (GtkButton *button,
if (sel_list != NULL) {
for (scan = sel_list; scan; scan = scan->next) {
FileData *fdata = scan->data;
- const char *filename = file_data_local_path (fdata);
- delete_list = g_list_prepend (delete_list, g_strdup (filename));
+ delete_list = g_list_prepend (delete_list, g_strdup (fdata->local_path));
}
if (delete_list != NULL)
delete_list = g_list_reverse (delete_list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]