summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-file.h
diff options
context:
space:
mode:
authorJohn Sullivan <sullivan@src.gnome.org>2001-03-20 18:47:52 +0000
committerJohn Sullivan <sullivan@src.gnome.org>2001-03-20 18:47:52 +0000
commitbaf6d3741cbf8786f07ae350689ccfdade74bed5 (patch)
treec33af526bd290ee40071252f90f2f96db01e0863 /libnautilus-extensions/nautilus-file.h
parentda27a552718b87a05d6a0ca1161655df8df834e4 (diff)
downloadnautilus-baf6d3741cbf8786f07ae350689ccfdade74bed5.tar.gz
reviewed by: Pavel Cisler <pavel@eazel.com>
Finished bug 4875 (design for running arbitrary scripts on selected items) There are lots of ways this could be improved, but I've finished the first pass at this feature. We'll need to get feedback before deciding how to improve it later. Please play with it -- hopefully it is self-explanatory. Start by selecting Scripts > Open Scripts Folder. * libnautilus-extensions/nautilus-file.h: * libnautilus-extensions/nautilus-file.c: (compare_by_name_cover): Simple cover for compare_by_name that casts parameters. (nautilus_file_list_sort_by_name): New public function. * src/file-manager/nautilus-directory-view-ui.xml: Added name to separators before "Open Scripts Folder" so they can be referred to in code (shown/hidden) * src/file-manager/fm-directory-view.c: (get_scripts_directory): Create Scripts directory if it doesn't exist; mark name of scripts directory for localization. (add_numbered_menu_item): Add pixbuf parameter. (add_application_to_bonobo_menu), (add_component_to_bonobo_menu): pass NULL for pixbuf (get_file_names_as_parameter_string): Changed name from get_selected_file_names..., now takes file list as parameter. (get_file_paths_or_uris_as_newline_delimited_string): New function. (get_file_paths_as_newline_delimited_string), (get_file_uris_as_newline_delimited_string): New functions, simple covers for get_file_paths_or_uris... (set_script_environment_variables): New function, sets some environment variables up so scripts can use them. (unset_script_environment_variables): New function, unsets those same environment variables. (run_script_callback): set/unset environment variables around calling script. (add_script_to_menus): add pixbufs for files (reset_scripts_menu): sort scripts by name; hide separator after scripts if there are no scripts (notify_user_if_no_scripts_callback): Explain script behavior and special environment variables in Details part of dialog. (call_when_ready_on_scripts_directory): include attributes required to get icon for file. (open_scripts_folder_callback): Change error message for unexpected case where scripts folder is nonexistent.
Diffstat (limited to 'libnautilus-extensions/nautilus-file.h')
-rw-r--r--libnautilus-extensions/nautilus-file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-file.h b/libnautilus-extensions/nautilus-file.h
index a8593c534..58f71a754 100644
--- a/libnautilus-extensions/nautilus-file.h
+++ b/libnautilus-extensions/nautilus-file.h
@@ -285,6 +285,7 @@ GList * nautilus_file_list_ref (GList
void nautilus_file_list_unref (GList *file_list);
void nautilus_file_list_free (GList *file_list);
GList * nautilus_file_list_copy (GList *file_list);
+GList * nautilus_file_list_sort_by_name (GList *file_list);
/* Debugging */
void nautilus_file_dump (NautilusFile *file);