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-26 Alexander Larsson <alexl@redhat.com>
* src/file-manager/fm-directory-view.c (add_submenu):
Don't ref pixbuf if it is NULL
svn path=/trunk/; revision=15022
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>
* src/file-manager/fm-list-view.c (sort_criterion_changes_due_to_user):
do not leak the columns list.
svn path=/trunk/; revision=14998
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-20 Christian Neumair <cneumair@gnome.org>
* src/file-manager/fm-directory-view.c
(fm_directory_view_handle_scroll_event),
(fm_directory_view_scroll_event):
* src/file-manager/fm-directory-view.h:
* src/file-manager/fm-icon-view.c (fm_icon_view_scroll_event),
(fm_icon_view_class_init):
Treat vertical scroll events as horizontal ones if compact view is
enabled, and if they do not bump the zoom level. Fixes#571770.
svn path=/trunk/; revision=14979
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-17 Alexander Larsson <alexl@redhat.com>
* configure.in:
* src/nautilus-main.c:
Set the glibc MMAP limit to a static value to avoid the dynamic
limit hitting bad behaviour due to the large temporary allocations
when creating the desktop background. It would raise the limit
to a large value causing several large allocations on the
heap which are then not returned to the OS.
svn path=/trunk/; revision=14963
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-04 Cosimo Cecchi <cosimoc@gnome.org>
* src/nautilus-application.c: (create_window):
Don't use unique_app_watch_window(), as we don't have a default
window to present (#570377).
svn path=/trunk/; revision=14917
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-28 Cosimo Cecchi <cosimoc@pluto>
* icons/Makefile.am:
* src/nautilus-notes-viewer.c: (nautilus_notes_viewer_init):
Remove "note-indicator.png" and use the themable icon we just
added to display the emblem in the sidebar.
svn path=/trunk/; revision=14892
2009-01-28 Cosimo Cecchi <cosimoc@gnome.org>
* data/icons/*:
Bring icon handling to the 21th century.
Add an emblem-note icon, this is copied from g-i-t "stock_note"
icon right now, but we might change this later.
* src/nautilus-application.c: (nautilus_application_init):
add a lookup path for custom themable icons.
This also fixes bug #569407. Thanks to Lapo Calamandrei for
the tips on icon naming.
svn path=/trunk/; revision=14891
2009-01-27 Cosimo Cecchi <cosimoc@gnome.org>
* nautilus.desktop.in.in: set X-GNOME-AutoRestart=true, to make
Nautilus restart automatically when it crashes (#569288).
svn path=/trunk/; revision=14888
2009-01-23 Cosimo Cecchi <cosimoc@gnome.org>
* src/nautilus-window-menus.c
(menu_item_select_cb): don't rely on GTK+ implementation details
when getting a GtkAction.
Thanks to Christian Persch (#568880).
svn path=/trunk/; revision=14884
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