diff options
author | Rebecca Schulman <rebecka@eazel.com> | 2001-02-23 05:08:15 +0000 |
---|---|---|
committer | Rebecca Schulman <rebecka@src.gnome.org> | 2001-02-23 05:08:15 +0000 |
commit | f1209514471862cbb9ad8253ae2669bc6dc7ca3f (patch) | |
tree | a4a816d0ae135168b6589ede2182b8e57e8730ad /libnautilus-private/nautilus-program-choosing.h | |
parent | b6fe6b3f4c68afcb88cd200fdf2fc29f0942b844 (diff) | |
download | nautilus-f1209514471862cbb9ad8253ae2669bc6dc7ca3f.tar.gz |
Fix bug 6058, that opening a file with a default application that cannot
2001-02-22 Rebecca Schulman <rebecka@eazel.com>
Fix bug 6058, that opening a file with a default
application that cannot access a location (in the specific
case of the bug, eazel-services) should explain the problem,
and offer another application, rather than simply failing.
reviewed by: John Sullivan <sullivan@eazel.com>
* libnautilus-extensions/nautilus-program-choosing.h:
* libnautilus-extensions/nautilus-program-choosing.c:
(nautilus_choose_application_for_file),
(application_can_handle_uri), (application_cannot_open_location),
(nautilus_launch_application),
(launch_application_callback),
(launch_parameters_new),
(launch_parameters_free), (launch_application_callback):
Change nautilus_launch_application to take a NautilusFile rather
than a uri, so that we can find out whether other applications
are available for the location, using the mime type as well
as uri scheme. Change the dialogs that come up when an application
is not available for a particular location to explain more of what
we know. If another application is available to open the uri,
open the program chooser dialog.
* src/file-manager/fm-directory-view.c:
(application_launch_parameters_new),
(application_launch_parameters_free),
(fm_directory_view_launch_application),
(fm_directory_view_chose_application_callback), (choose_program),
(bonobo_launch_application_callback),
(add_application_to_bonobo_menu), (reset_bonobo_open_with_menu),
(activate_callback):
Change the parameters sent to nautilus_launch_application, and
so change data sent to callbacks used to later call
nautilus_launch_application
* src/nautilus-sidebar.c: (command_button_callback),
(nautilus_sidebar_chose_application_callback):
Call nautilus_launch_application with the new arguments
Diffstat (limited to 'libnautilus-private/nautilus-program-choosing.h')
-rw-r--r-- | libnautilus-private/nautilus-program-choosing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-program-choosing.h b/libnautilus-private/nautilus-program-choosing.h index ab2f847fc..8d7c07904 100644 --- a/libnautilus-private/nautilus-program-choosing.h +++ b/libnautilus-private/nautilus-program-choosing.h @@ -51,7 +51,7 @@ void nautilus_cancel_choose_component_for_file (NautilusFile NautilusComponentChoiceCallback callback, gpointer callback_data); void nautilus_launch_application (GnomeVFSMimeApplication *application, - const char *uri, + NautilusFile *file, GtkWindow *parent_window); void nautilus_launch_application_from_command (const char *command_string, const char *parameter, |