moo_file_view_get_filenames()

master
Yevgen Muntyan 2006-04-04 21:48:03 -05:00
parent 5a9d057e6f
commit 632ec59da6
2 changed files with 27 additions and 0 deletions

View File

@ -2794,6 +2794,30 @@ static void fileview_set_use_filter (MooFileView *fileview,
/* File manager functionality
*/
GList *
moo_file_view_get_filenames (MooFileView *fileview)
{
GList *files, *names = NULL;
MooFolder *folder;
g_return_val_if_fail (MOO_IS_FILE_VIEW (fileview), NULL);
folder = fileview->priv->current_dir;
g_return_val_if_fail (folder != NULL, NULL);
files = file_view_get_selected_files (fileview);
while (files)
{
names = g_list_prepend (names, moo_folder_get_file_path (folder, files->data));
moo_file_unref (files->data);
files = g_list_delete_link (files, files);
}
return g_list_reverse (names);
}
/* path in the filter model; result must be unrefed */
static MooFile *
file_view_get_file_at_path (MooFileView *fileview,

View File

@ -120,6 +120,9 @@ void moo_file_view_drag_finish (MooFileView *filevie
guint time);
GList *moo_file_view_get_filenames (MooFileView *fileview);
G_END_DECLS
#endif /* __MOO_FILE_VIEW_H__ */