summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-mime-actions.c
Commit message (Collapse)AuthorAgeFilesLines
* Use "Cancel" as default response when activating a broken link (#341595)Cosimo Cecchi2010-05-021-1/+1
|
* Use display names for applications (#611378).Cosimo Cecchi2010-04-261-2/+2
| | | | Instead of using the simple GAppInfo name property.
* Always set the parent window in dialogs (#573788).Cosimo Cecchi2010-04-261-2/+2
|
* Remove tabs menuAlexander Larsson2010-01-221-2/+1
| | | | | | | | | I don't think this menu is much use, and it clutters up the menus even for users who don't use tabs, which is against our policy of having the more advanced features affect users not using them as little as possible. Also, remove the setting to disable tabs althoughter, as with the menu removed the tabs feature is very minimal when not in use.
* Adds an option to select the application to open an unkown file type upon ↵Marcus Carlson2009-09-301-6/+99
| | | | | | error opening the file. https://bugzilla.gnome.org/show_bug.cgi?id=92497
* Don't display the timeout dialog with broken launchersWang Yan2009-07-081-0/+2
| | | | | | | Don't display the timed wait dialog if we're already reporting a broken link to the user. Fix bug #579165. Signed-off-by: Wang Yan <Michael.wang@turbolinux.com.cn>
* Remove all traces of former nautilus metadata codeAlexander Larsson2009-06-231-2/+1
|
* Bug 585591 – Starting/stopping drivesDavid Zeuthen2009-06-181-2/+93
| | | | | | | | | This is the Nautilus user for the new GIO API for starting/stopping drives. See http://bugzilla.gnome.org/show_bug.cgi?id=585591 for details.
* Make sure PackageKit is active before showing install dialog. Patch fromAlexander Larsson2009-04-081-58/+144
| | | | | | | | | | | | | 2009-04-08 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: Make sure PackageKit is active before showing install dialog. Patch from James Westby svn path=/trunk/; revision=15171
* Bug 518481 – URL shortcuts do not open query partAlexander Larsson2009-04-011-121/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-01 Alexander Larsson <alexl@redhat.com> Bug 518481 – URL shortcuts do not open query part * libnautilus-private/nautilus-file-private.h: * libnautilus-private/nautilus-file.[ch]: * libnautilus-private/nautilus-desktop-icon-file.c: (update_info_from_link): * libnautilus-private/nautilus-directory-async.c: (lacks_mount): (link_info_done): * libnautilus-private/nautilus-search-directory-file.c: (nautilus_search_directory_file_init): Store NautilusFile activation uri as char *uri, not GFile, as we sometimes handle links that are not true GFile locations such as mailto: links in desktop files. * libnautilus-private/nautilus-desktop-link.[ch]: Add nautilus_desktop_link_get_activation_uri * libnautilus-private/nautilus-directory.c: (nautilus_directory_notify_files_added_by_uri): (nautilus_directory_notify_files_changed_by_uri): (nautilus_directory_notify_files_removed_by_uri): (nautilus_directory_schedule_metadata_remove_by_uri): Use public nautilus_file_list_from_uris instead of local copy of it. * libnautilus-private/nautilus-mime-actions.c: Store both NautilusFile and char *uri in ApplicationLaunchParameters. This allows us to correctly handle uris that don't work well as GFiles and pass them unmodified to the launched applications. * libnautilus-private/nautilus-program-choosing.[ch]: Add nautilus_launch_application_by_uri() that launches an application by specifying the file as a uri, so that we can handle uris that don't work well as GFile/NautilusFiles. svn path=/trunk/; revision=15157
* Add "interactive" argument to nautilus_file_mark_desktop_file_trusted.Alexander Larsson2009-02-241-0/+1
| | | | | | | | | | | | | | | | | | 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-file-operations.h: * libnautilus-private/nautilus-mime-actions.c: Add "interactive" argument to nautilus_file_mark_desktop_file_trusted. * src/nautilus-application.c: Mark all desktopfiles on the desktop trusted on first run. svn path=/trunk/; revision=15009
* Add nautilus_file_mark_desktop_file_trusted(), this now adds a #! line ifAlexander Larsson2009-02-241-28/+7
| | | | | | | | | | | | | | | | | | 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-file-operations.h: Add nautilus_file_mark_desktop_file_trusted(), this now adds a #! line if there is none as well as makes the file executable. * libnautilus-private/nautilus-mime-actions.c: Use nautilus_file_mark_desktop_file_trusted() instead of just setting the permissions. svn path=/trunk/; revision=15006
* Capitalize words in button.Alexander Larsson2009-02-241-1/+1
| | | | | | | | | | | 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c (activate_desktop_file): Capitalize words in button. svn path=/trunk/; revision=15004
* Check for trusted desktop file launchers.Alexander Larsson2009-02-241-8/+141
| | | | | | | | | | | | | | | | | | | | 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory-async.c: Check for trusted desktop file launchers. * libnautilus-private/nautilus-file-private.h: * libnautilus-private/nautilus-file.c: * libnautilus-private/nautilus-file.h: Add nautilus_file_is_trusted_link. Allow unsetting of custom display name. * libnautilus-private/nautilus-mime-actions.c: Display dialog when trying to launch a non-trusted desktop file. svn path=/trunk/; revision=15003
* We've been working with the KDE devs, and we've come up with a slightlyRichard Hughes2009-01-151-7/+14
| | | | | | | | | | | | | | | | | | 2009-01-15 Richard Hughes <richard@hughsie.com> * libnautilus-private/nautilus-mime-actions.c: (search_for_application_dbus_call_notify_cb), (search_for_application_mime_type): We've been working with the KDE devs, and we've come up with a slightly changed specification that can be adopted by KPackageKit and also have room for expansion in the future. There's only a couple of things already using the old interface, nautilus being one of them. I've patched nautilus to convert from the old interface to the new interface. The new interface does not have the double confirm problem, and now respects the users session policy on interaction. svn path=/trunk/; revision=14862
* Fix new windows not appearing after successful mount (needed for #524485)Tomas Bzatek2008-12-151-0/+9
| | | | | | | | | | | | 2008-12-15 Tomas Bzatek <tbzatek@redhat.com> * libnautilus-private/nautilus-mime-actions.c: (activation_mount_not_mounted): Fix new windows not appearing after successful mount (needed for #524485) svn path=/trunk/; revision=14813
* Fix the build for OSes with format security turned on. (Ubuntu).A. Walton2008-12-121-1/+1
| | | | | | | | | | | | 2008-12-12 A. Walton <awalton@gnome.org> * libnautilus-private/nautilus-mime-actions.c (application_unhandled_file): Fix the build for OSes with format security turned on. (Ubuntu). svn path=/trunk/; revision=14811
* Don't warn if we found no applications to install.Alexander Larsson2008-12-111-3/+10
| | | | | | | | | | | | 2008-12-11 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: (search_for_application_dbus_call_notify_cb): Don't warn if we found no applications to install. svn path=/trunk/; revision=14810
* Ref the dbus proxy over the call, this means we actually get the callback,Alexander Larsson2008-12-111-19/+2
| | | | | | | | | | | | 2008-12-11 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: Ref the dbus proxy over the call, this means we actually get the callback, so remove the got_reply stuff. svn path=/trunk/; revision=14809
* Fix warningAlexander Larsson2008-12-101-1/+2
| | | | | | | | | | | | 2008-12-10 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: (search_for_application_mime_type): Fix warning svn path=/trunk/; revision=14808
* Support PackageConfig application install for unsupported mime types.Alexander Larsson2008-12-101-26/+248
| | | | | | | | | | | | | | | | 2008-12-10 Alexander Larsson <alexl@redhat.com> * configure.in: * libnautilus-private/apps_nautilus_preferences.schemas.in: * libnautilus-private/nautilus-global-preferences.c: * libnautilus-private/nautilus-global-preferences.h: * libnautilus-private/nautilus-mime-actions.c: Support PackageConfig application install for unsupported mime types. Based on patch from Richard Hughes svn path=/trunk/; revision=14807
* Fix callback connection to GtkMountOperationTomas Bzatek2008-12-081-2/+2
| | | | | | | | | | | 2008-12-08 Tomas Bzatek <tbzatek@redhat.com> * libnautilus-private/nautilus-mime-actions.c: (activation_mount_mountables): Fix callback connection to GtkMountOperation svn path=/trunk/; revision=14802
* Fix callback connection to GtkMountOperationTomas Bzatek2008-12-081-2/+3
| | | | | | | | | | | 2008-12-08 Tomas Bzatek <tbzatek@redhat.com> * libnautilus-private/nautilus-mime-actions.c: (activation_mount_not_mounted): Fix callback connection to GtkMountOperation svn path=/trunk/; revision=14801
* Don't show timeout-based cancel when showing the "run or display" dialog.Alexander Larsson2008-10-201-7/+22
| | | | | | | | | | | | | | | 2008-10-20 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: (pause_activation_timed_cancel): (unpause_activation_timed_cancel): (activate_mount_op_active): (activate_files): Don't show timeout-based cancel when showing the "run or display" dialog. (#539954) svn path=/trunk/; revision=14743
* use GtkMountOperation instead of EelMountOperationCosimo Cecchi2008-10-061-7/+12
| | | | | | | | | | | | | | | 2008-10-06 Cosimo Cecchi <cosimoc@gnome.org> * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-mime-actions.c: * src/file-manager/fm-directory-view.c: * src/nautilus-connect-server-dialog-main.c: * src/nautilus-window-manage-views.c: use GtkMountOperation instead of EelMountOperation svn path=/trunk/; revision=14690
* Use vararg list for nautilus_launch_application_from_command(). AddChristian Neumair2008-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-20 Christian Neumair <cneumair@gnome.org> * libnautilus-private/nautilus-program-choosing.c (nautilus_launch_application_from_command), (nautilus_launch_application_from_command_array): * libnautilus-private/nautilus-program-choosing.h: Use vararg list for nautilus_launch_application_from_command(). Add nautilus_launch_application_from_command_array() which takes a parameter string array. Quote each parameter separately. * libnautilus-private/nautilus-mime-actions.c (activate_files): * src/file-manager/fm-desktop-icon-view.c (action_new_launcher_callback), (action_change_background_callback): * src/file-manager/fm-directory-view.c (action_new_launcher_callback), (get_file_names_as_parameter_array), (run_script_callback): * src/file-manager/fm-tree-view.c (got_activation_uri_callback): Pass each parameter separately to nautilus_launch_application_from_command(_array)(). The _array() variant is used for running scripts, where the file names of the selection are passed separately. Fixes #341657. Thanks to Cosimo Cecchi. svn path=/trunk/; revision=14502
* Merge "multiview" tab branch. Fixes #48034.Christian Neumair2008-07-081-24/+65
| | | | | | | | | | 2008-07-08 Christian Neumair <cneumair@gnome.org> * libnautilus-private/*.c: * src/*.c: Merge "multiview" tab branch. Fixes #48034. svn path=/trunk/; revision=14328
* Use g_mkdir() and g_chdir() instead of mkdir() and chdir() to fix someCosimo Cecchi2008-07-041-3/+3
| | | | | | | | | | | | | | | | | | 2008-07-04 Cosimo Cecchi <cosimoc@gnome.org> * libnautilus-private/nautilus-file-utilities.c: (nautilus_get_user_directory), (nautilus_get_desktop_directory), (nautilus_create_templates_directory), (nautilus_get_searches_directory): * libnautilus-private/nautilus-metafile.c: (construct_private_metafile_uri): * libnautilus-private/nautilus-mime-actions.c: (activate_files): * src/file-manager/fm-directory-view.c: (change_to_view_directory), (run_script_callback): Use g_mkdir() and g_chdir() instead of mkdir() and chdir() to fix some warnings under GCC 4.3.1. svn path=/trunk/; revision=14320
* Fix how autorunning works. Instead of inhibiting autorunning every time weDavid Zeuthen2008-04-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-04-29 David Zeuthen <davidz@redhat.com> * libnautilus-private/nautilus-autorun.c: * libnautilus-private/nautilus-autorun.h: * libnautilus-private/nautilus-file-operations.c: (volume_mount_cb), (nautilus_file_operations_mount_volume): * libnautilus-private/nautilus-file-operations.h: * libnautilus-private/nautilus-mime-actions.c: (activation_mount_not_mounted_callback): * libnautilus-private/nautilus-vfs-file.c: (vfs_file_mount_callback): * src/nautilus-application.c: (startup_volume_mount_cb), (volume_added_callback): * src/nautilus-places-sidebar.c: (open_selected_bookmark), (mount_shortcut_cb): * src/nautilus-window-manage-views.c: (mount_not_mounted_callback): Fix how autorunning works. Instead of inhibiting autorunning every time we run something, we turn things around and instead allow automounting only in the instance where Nautilus automounted something itself. So in essence this patch is s/inhibit/allow/. This fixes an annoying problem where Nautilus would do autorun everytime something was mounted even from the command line. A consequence of this are windows popping up and other annoyances. This patch fixes that problem. * src/nautilus-x-content-bar.c: (nautilus_x_content_bar_init): Make sure the label is ellipsized. svn path=/trunk/; revision=14112
* Inhibit autorun in mount callbacks after finishing mounts rather thanChristian Neumair2008-04-041-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-04-04 Christian Neumair <cneumair@gnome.org> * libnautilus-private/nautilus-file-operations.c (volume_mount_cb), (nautilus_file_operations_mount_volume): * libnautilus-private/nautilus-file-operations.h: * libnautilus-private/nautilus-mime-actions.c (activation_mount_not_mounted_callback), (activation_mount_not_mounted): * src/nautilus-application.c (startup_volume_mount_cb), (automount_all_volumes), (volume_added_callback): * src/nautilus-places-sidebar.c (open_selected_bookmark), (mount_shortcut_cb): * src/nautilus-window-manage-views.c (mount_not_mounted_callback), (got_file_info_for_view_selection_callback): Inhibit autorun in mount callbacks after finishing mounts rather than before mounting. It is neccessary because the mount may take a very long time (floppy, password prompt), which may take longer than the inhibition timeout. This approach works because with the current HAL volume monitor implementation, GVolumeMonitor signal emission is scheduled, while the mount callbacks are invoked synchronously. This should also fix the not working inhibition on startup, which could happen because parallel mounts in the background and the rest of the startup process eat resources, so the mounts may also take longer than the inhibition timeout. svn path=/trunk/; revision=14034
* Do not use contractions in strings. (#145356).Cosimo Cecchi2008-04-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-04-01 Cosimo Cecchi <cosimoc@gnome.org> * libnautilus-private/nautilus-file-operations.c: (delete_dir), (prompt_empty_trash), (verify_destination), (copy_move_directory), (remove_target_recursively), (copy_move_file): * libnautilus-private/nautilus-mime-actions.c: (report_broken_symbolic_link), (activate_files): * libnautilus-private/nautilus-program-choosing.c: (application_cannot_open_location), (nautilus_launch_application), (nautilus_launch_desktop_file): * src/file-manager/fm-error-reporting.c: (fm_report_error_loading_directory), (fm_report_error_renaming_file), (fm_report_error_setting_group), (fm_report_error_setting_owner), (fm_report_error_setting_permissions): * src/file-manager/fm-properties-window.c: (fm_properties_window_drag_data_received), (create_permissions_page): * src/nautilus-application.c: (nautilus_application_startup): * src/nautilus-connect-server-dialog-main.c: (display_error_dialog): * src/nautilus-connect-server-dialog.c: (connect_to_server): * src/nautilus-emblem-sidebar.c: (nautilus_emblem_sidebar_delete_cb), (rename_dialog_response_cb): * src/nautilus-information-panel.c: (receive_dropped_uri_list): * src/nautilus-property-browser.c: (remove_pattern), (remove_emblem), (add_pattern_to_browser): * src/nautilus-window-manage-views.c: (display_view_selection_failure): Do not use contractions in strings. (#145356). svn path=/trunk/; revision=14017
* Don't display error on G_IO_ERROR_FAILED_HANDLED.Alexander Larsson2008-02-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | 2008-02-25 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c (activation_mountable_mounted): Don't display error on G_IO_ERROR_FAILED_HANDLED. 2008-02-22 David Zeuthen <davidz@redhat.com> * libnautilus-private/nautilus-autorun.c: (autorun_dialog_response), (do_autorun_for_content_type): Actually handle when the user presses the Eject or Unmount button. * src/nautilus-window-manage-views.c: (found_mount_cb), (update_for_new_location): * src/nautilus-window-private.h: * src/nautilus-window.c: (nautilus_window_finalize): Find the mount for the window, used for determining if a x-content clue bar should be shown, async. svn path=/trunk/; revision=13811
* Don't crash if all files were removed due to error when activating.Alexander Larsson2008-02-221-0/+6
| | | | | | | | | | | | 2008-02-22 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: (activation_mount_not_mounted): Don't crash if all files were removed due to error when activating. svn path=/trunk/; revision=13805
* Fix checking when to display errors (#514135)Alexander Larsson2008-02-151-8/+8
| | | | | | | | | | | | 2008-02-15 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: * libnautilus-private/nautilus-vfs-file.c: Fix checking when to display errors (#514135) svn path=/trunk/; revision=13756
* Add nautilus_file_is_launcher()Alexander Larsson2008-02-131-32/+6
| | | | | | | | | | | | | | | | | | | | | | | | 2008-02-13 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file.[ch]: * libnautilus-private/nautilus-file-private.h: Add nautilus_file_is_launcher() * libnautilus-private/nautilus-directory-async.c: * libnautilus-private/nautilus-dnd.c: * libnautilus-private/nautilus-link.[ch] * libnautilus-private/nautilus-mime-actions.c: * libnautilus-private/nautilus-program-choosing.[ch]: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-tree-view.c: Remove weird desktop-file: and command: hacks, and replace with usage and implementation of nautilus_file_is_launcher(). This fixes some problems where the old desktop-file uri was interpreted as an actual file. svn path=/trunk/; revision=13734
* Fix 64bit build (#515896)Alexander Larsson2008-02-121-2/+2
| | | | | | | | | | | 2008-02-12 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: (mime_application_hash): Fix 64bit build (#515896) svn path=/trunk/; revision=13730
* Update for new gio mount flags argumentAlexander Larsson2008-02-111-1/+1
| | | | | | | | | | | | | | 2008-02-11 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-mime-actions.c: * libnautilus-private/nautilus-vfs-file.c: * src/nautilus-application.c: * src/nautilus-window-manage-views.c: Update for new gio mount flags argument svn path=/trunk/; revision=13724
* Handle GAppInfos having NULL idAlexander Larsson2008-02-011-6/+39
| | | | | | | | | | | 2008-02-01 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: Handle GAppInfos having NULL id svn path=/trunk/; revision=13679
* Add functions to inhibit autorun for a volume or for the volume of a file.Alexander Larsson2008-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | 2008-01-30 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-autorun.[ch]: Add functions to inhibit autorun for a volume or for the volume of a file. * src/nautilus-application.c: Convert automount code to new way to inhibit autorun. * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-mime-actions.c: * libnautilus-private/nautilus-vfs-file.c: * src/nautilus-window-manage-views.c: Inhibit autorun if we manually mount stuff. svn path=/trunk/; revision=13674
* Add nautilus_file_has_activation_uri. Don't show can't write emblems ifAlexander Larsson2008-01-111-0/+10
| | | | | | | | | | | | | | | | 2008-01-11 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file.[ch]: Add nautilus_file_has_activation_uri. Don't show can't write emblems if you can't write in the parent either. * libnautilus-private/nautilus-mime-actions.c: Don't launch mountables that have no activation uri. svn path=/trunk/; revision=13591
* Fix assertion crash on cancel.Alexander Larsson2008-01-101-0/+1
| | | | | | | | | | | 2008-01-10 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: (cancel_activate_callback): Fix assertion crash on cancel. svn path=/trunk/; revision=13582
* Correct check for require_uri. Small performance fixAlexander Larsson2007-12-201-8/+13
| | | | | | | | | | | | 2007-12-20 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: Correct check for require_uri. Small performance fix svn path=/trunk/; revision=13540
* Update for g_mount_for_location to g_file_mount_enclosing_volume change.Alexander Larsson2007-12-131-3/+3
| | | | | | | | | | | 2007-12-13 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c: * src/nautilus-window-manage-views.c: Update for g_mount_for_location to g_file_mount_enclosing_volume change. svn path=/trunk/; revision=13527
* Add optional cancellable arg to nautilus_file_mountAlexander Larsson2007-12-071-8/+29
| | | | | | | | | | | | | | | 2007-12-07 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file.[ch]: * libnautilus-private/nautilus-vfs-file.c: * src/file-manager/fm-directory-view.c: Add optional cancellable arg to nautilus_file_mount * libnautilus-private/nautilus-mime-actions.c: Implement cancellation of file activation svn path=/trunk/; revision=13509
* Merge gio-branchAlexander Larsson2007-11-301-175/+1261
| | | | svn path=/trunk/; revision=13464
* Don't request the mime list for activation, context menu and the view asMartin Wehner2006-03-051-2/+1
| | | | | | | | | | | | 2006-03-05 Martin Wehner <martin.wehner@gmail.com> * libnautilus-private/nautilus-mime-actions.c: (nautilus_mime_actions_get_full_file_attributes): Don't request the mime list for activation, context menu and the view as menu anymore. It was once used for determining a specialized component for directories, but we don't support that anymore. Nowadays it just delays these operations and can cause auth dialogs when opening the popup menu.
* Avoid redundant application lookups by sorting the files by mime type andMartin Wehner2006-02-201-10/+106
| | | | | | | | | | | | | | | | 2006-02-19 Martin Wehner <martin.wehner@gmail.com> * libnautilus-private/nautilus-mime-actions.c: (file_compare_by_mime_type), (file_compare_by_guessed_mime_type), (file_compare_by_uri_scheme), (nautilus_mime_get_default_application_for_files), (nautilus_mime_get_open_with_applications_for_files), (nautilus_mime_get_applications_for_files), (nautilus_mime_has_any_applications_for_files): Avoid redundant application lookups by sorting the files by mime type and skipping the ones which have the same mime type / parent uri combination as the previous one. Prevents nautilus from blocking for seconds when selecting many files of similar type.
* Don't leak mime_type.Martin Wehner2006-01-201-0/+1
| | | | | | | | 2006-01-20 Martin Wehner <martin.wehner@gmail.com> * libnautilus-private/nautilus-mime-actions.c: (nautilus_mime_get_applications_for_file): Don't leak mime_type.
* Add file list helpers for getting associated applications.Christian Neumair2006-01-111-0/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-11 Christian Neumair <chris@gnome-de.org> * libnautilus-private/nautilus-mime-actions.c: (nautilus_mime_get_default_application_for_files), (intersect_application_lists), (nautilus_mime_get_open_with_applications_for_files), (nautilus_mime_has_any_applications_for_files): * libnautilus-private/nautilus-mime-actions.h: Add file list helpers for getting associated applications. * libnautilus-private/nautilus-program-choosing.c: * libnautilus-private/nautilus-program-choosing.h: (nautilus_launch_application): Allow to pass multiple files per application launch. * src/nautilus-information-panel.c: (command_button_callback): Port to new API. * 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), (application_selected_cb), (open_with_launch_application_callback), (add_application_to_open_with_menu), (reset_open_with_menu), (real_update_menus), (list_to_parameters_foreach), (mime_application_hash), (fm_directory_view_make_activation_parameters), (activate_callback): Support activation of multiple files at once, correctly figure out their associated applications. Fixes #105653. * src/file-manager/fm-directory-view.c: (activate_callback): ref/unref the view before/after operating on it. Fixes #326231.
* Correctly sort the mime lists.Alexander Larsson2005-10-261-2/+2
| | | | | | | 2005-10-26 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-actions.c (get_open_with_mime_applications): Correctly sort the mime lists.