2009-02-26 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-file-operations.c:
(get_abs_path_for_symlink):
Add helper to get the path to use for symlinks that also
works for non-local files.
(link_file):
Use get_abs_path_for_symlink() for target of symlink so that
it works for remote files too.
Also, fix GFile comparison to use g_file_equal, not ==
svn path=/trunk/; revision=15024
2009-02-26 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-global-preferences.c:
(nautilus_global_preferences_init):
Remove monitoring of old gnome-vfs gconf directory.
Preload the gconf directories that are used on startup.
svn path=/trunk/; revision=15023
2009-02-25 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-file-operations.c (copy_files):
Don't unref info if == NULL
Query for readonly on the source directory, not the file because
otherwise we'll follow symlinks to the wrong filesystem.
OTOH, maybe query_filesystem_info shouldn't follow symlinks,
but that unfortunately seems hard to implement.
svn path=/trunk/; revision=15019
2009-02-25 Alexander Larsson <alexl@redhat.com>
* src/nautilus-application.c:
Use $XDG_DATA_HOME/.converted-launchers as marker for
one-time desktop file trust operation.
* libnautilus-private/nautilus-file-utilities.[ch]:
Add nautilus_is_in_system_dir() to check if path is in
XDG_DATA_DIR or in ~/.gnome2.
* libnautilus-private/nautilus-directory-async.c:
(is_link_trusted):
Use new nautilus_is_in_system_dir() instead of open coding it.
* libnautilus-private/nautilus-file-operations.c:
When copying a desktop file from a trusted location to the desktop,
mark it as trusted.
svn path=/trunk/; revision=15018
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
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
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
2009-02-23 Paolo Borelli <pborelli@katamail.com>
* libnautilus-private/nautilus-thumbnails.c: check if the mtime
attribute is actually available.
svn path=/trunk/; revision=14994
2009-02-23 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-thumbnails.c (get_types_table):
don't hardcode mimetypes for which we limit the file size,
but load the list of the supported mimetypes from GdkPixbuf
instead (#545934).
svn path=/trunk/; revision=14993
2009-02-22 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-file-operations.c
(seconds_count_format_time_units), (format_time):
don't add 30 seconds when formatting time, as float->int conversion
already truncates the value for us (#572284).
svn path=/trunk/; revision=14991
2009-02-20 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c (style_set):
Don't chain up on style_set, as this causes flicker.
svn path=/trunk/; revision=14984
2009-02-20 Christian Neumair <cneumair@gnome.org>
* libnautilus-private/nautilus-file-operations.c (get_link_name),
(link_file):
Do not put "Link to ..." in front of symbolic links that are created
in another directory via DND. Fixes#534432.
svn path=/trunk/; revision=14982
2009-02-18 Alexander Larsson <alexl@redhat.com>
Bug 565610 – Replacing folder with file from within that folder destroys both
* libnautilus-private/nautilus-file-operations.c:
(copy_move_file):
Give a warning when the source would be overwritten by the
destination on a copy.
svn path=/trunk/; revision=14968
2009-02-16 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-info.c:
(nautilus_icon_info_lookup):
Handle GIcon types other than files and themed icons.
Patch from David Zeuthen
svn path=/trunk/; revision=14952
2009-02-06 A. Walton <awalton@gnome.org>
* libnautilus-private/nautilus-link.c (get_language),
(nautilus_link_local_set_key):
Pass a language code to g_key_file_set_locale_string() so that we can
actually rename .desktop files.
svn path=/trunk/; revision=14923
2009-02-02 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-file-operations.c
(report_delete_progress): better fix for the singular/plural issue
described in bug #551222; we now split the string into two parts,
use ngettext() on both and concatenate them (#570141).
svn path=/trunk/; revision=14907
2009-01-31 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-directory-async.c (lacks_link_info),
(monitor_includes_file), (link_info_done), (link_info_got_data),
(link_info_start):
* libnautilus-private/nautilus-file-private.h:
* libnautilus-private/nautilus-file.c (nautilus_file_clear_info),
(nautilus_file_should_show),
(filter_hidden_and_backup_partition_callback),
(nautilus_file_is_foreign_link):
* libnautilus-private/nautilus-file.h:
* libnautilus-private/nautilus-link.c (string_array_contains),
(nautilus_link_get_link_info_given_file_contents):
* libnautilus-private/nautilus-link.h:
* src/file-manager/fm-desktop-icon-view.c
(fm_desktop_icon_view_init):
* src/file-manager/fm-directory-view.c (fm_directory_view_init),
(fm_directory_view_should_show_file),
(fm_directory_view_set_show_foreign):
* src/file-manager/fm-directory-view.h:
* src/file-manager/fm-tree-model.c (should_show_file):
Follow the "OnlyShowIn" and "NotShowIn" == GNOME keys for
.desktop files, when they are put on the desktop.
Thanks to Federico Mena Quintero and Jared Moore (#338933).
svn path=/trunk/; revision=14905
2009-01-29 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-autorun.c: (handle_dialog_closure),
(dialog_response_cb), (dialog_destroy_cb), (combo_box_changed):
Don't use gtk_dialog_run to show the NautilusOpenWithDialog.
That won't work, as we will spawn a GtkFileChooser later,
eating all the mouse events on it if we do (#569651).
svn path=/trunk/; revision=14900
2009-01-29 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-file-operations.c:
(seconds_count_format_time_units), (report_delete_progress),
(report_copy_progress): make sure to use the correct singular
or plural form for the time format when reporting a file operation
progress detail.
Thanks to Christian Neumair (#551222).
svn path=/trunk/; revision=14898
2009-01-28 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-directory.c:
(nautilus_directory_notify_files_moved):
Invalidate file attributes after it has been moved, so that
they are refreshed properly (#555234).
svn path=/trunk/; revision=14893
2009-01-22 Cosimo Cecchi <cosimoc@gnome.org>
* libnautilus-private/nautilus-icon-container.c:
(snap_position): make sure we don't snap icons to a grid marker
which is too near the right margin of the canvas (#527374).
svn path=/trunk/; revision=14881
2009-01-22 A. Walton <awalton@gnome.org>
* libnautilus-private/nautilus-file-utilities.c
(nautilus_unique_temporary_file_name):
* libnautilus-private/nautilus-metafile.c (metafile_write_local):
Use g_mkstemp() instead of mkstemp(). Pointed out by Paolo Borelli.
svn path=/trunk/; revision=14879
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
2009-01-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c:
(get_icon_bounds_for_canvas_bounds):
When calculating bounds, don't ignore visible but unmapped items, becase
the root item is unmapped with the canvas, but we want to report the
same bounds independently on the canvas mapped state.
This caused problems when the canvas was unmapped due to being on an
invisible notebook page navigation tabs case, causing the
scrollbars to become invisible. (#542396)
svn path=/trunk/; revision=14857
* libnautilus-private/nautilus-trash-monitor.c (update_info_cb):
Only emit ::trash-state-changed when the state actually changes.
svn path=/trunk/; revision=14856
2009-01-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-debug-log.c:
(nautilus_debug_logv):
Make space for terminating zero
svn path=/trunk/; revision=14854
2009-01-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-debug-log.c:
Limit nr of URIs in log to 20 to avoid huge
logs and bad performance for e.g. select all
in a large dir.
svn path=/trunk/; revision=14853
2009-01-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory-async.c:
* libnautilus-private/nautilus-directory-private.h:
Use the monitor and call_when_ready counts to avoid
iterating over the potentially long lists.
svn path=/trunk/; revision=14851
2009-01-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory-private.h:
Fixed type (& not &&).
Also add some paranthesises to args for macro safety.
svn path=/trunk/; revision=14849
2009-01-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory-async.c:
Don't need the want_foo calls, can just pass in
the request type directly now.
svn path=/trunk/; revision=14848
2009-01-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory-async.c:
* libnautilus-private/nautilus-directory-private.h:
* libnautilus-private/nautilus-file.c:
Convert Request from struct of gboolean to guin32 bitfield.
This is both smaller and faster, plus it allows some further optimizations to come.
svn path=/trunk/; revision=14846
2009-01-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c:
* libnautilus-private/nautilus-icon-private.h:
Only send selection_changed once when removing lots of files.
svn path=/trunk/; revision=14845
2009-01-12 A. Walton <awalton@gnome.org>
* libnautilus-private/nautilus-file.c (prepend_automatic_keywords):
Trash files are automatically assumed read-only,
so we shouldn't add read-only emblems to files in the trash.
svn path=/trunk/; revision=14839
2009-01-12 A. Walton <awalton@gnome.org>
* libnautilus-private/nautilus-link.c
(nautilus_link_get_link_icon_from_desktop):
Fix last commit to actually patch the right part of the file.
svn path=/trunk/; revision=14837
2009-01-12 A. Walton <awalton@gnome.org>
* libnautilus-private/nautilus-link.c
(nautilus_link_get_link_icon_from_desktop):
Fix last commit to actually patch the right part of the file.
svn path=/trunk/; revision=14836
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
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