diff options
author | Ian McKellar <yakk@src.gnome.org> | 2000-07-09 10:29:46 +0000 |
---|---|---|
committer | Ian McKellar <yakk@src.gnome.org> | 2000-07-09 10:29:46 +0000 |
commit | 7987ce2be23ded57cd8d2884eedc7fc3eaf39562 (patch) | |
tree | 75c5b93259c31d2d6e9e46394ad975a30d4df09f /libnautilus-extensions/nautilus-mime-actions.c | |
parent | 2013b1661b60b32b7694902a5949e1f08e5015f4 (diff) | |
download | nautilus-7987ce2be23ded57cd8d2884eedc7fc3eaf39562.tar.gz |
Initial command line vault interface
Gnome-VFS based archive/commpressed file decoding interface
Diffstat (limited to 'libnautilus-extensions/nautilus-mime-actions.c')
-rw-r--r-- | libnautilus-extensions/nautilus-mime-actions.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-mime-actions.c b/libnautilus-extensions/nautilus-mime-actions.c index 54d6635e7..8c3a518b3 100644 --- a/libnautilus-extensions/nautilus-mime-actions.c +++ b/libnautilus-extensions/nautilus-mime-actions.c @@ -545,6 +545,26 @@ nautilus_mime_get_short_list_components_for_uri (const char *uri) } GList * +nautilus_mime_get_short_list_methods_for_uri (const char *uri) +{ + gchar *mime_type = get_mime_type_from_uri (uri); + + /* FIXME - load these mappings from gnome-vfs and/or a config file */ + + if (!strcmp(mime_type, "application/x-gzip")) + return g_list_append(NULL, "gzip"); + + if (!strcmp(mime_type, "application/x-bzip")) + return g_list_append(NULL, "bzip2"); + + if (!strcmp(mime_type, "application/zip")) + return g_list_append(NULL, "zip"); + + return NULL; +} + + +GList * nautilus_mime_get_all_applications_for_uri (const char *uri) { char *mime_type; |