diff options
author | Alexander Larsson <alexl@redhat.com> | 2003-12-11 12:17:35 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2003-12-11 12:17:35 +0000 |
commit | 4aa5ada4bd83bd649534e84e57218d2ac15625c8 (patch) | |
tree | 8c3ec023e7eadaace844626760bd5b729799eb5b /libnautilus-private/nautilus-desktop-link-monitor.c | |
parent | 0b04cb7f9009429fe6a02020375dfab626b2ae6f (diff) | |
download | nautilus-4aa5ada4bd83bd649534e84e57218d2ac15625c8.tar.gz |
Handle defaults for desktop drops like normal directories.
2003-12-11 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-dnd.c
(nautilus_drag_default_drop_action_for_icons):
Handle defaults for desktop drops like
normal directories.
* libnautilus-private/nautilus-desktop-link-monitor.c (nautilus_desktop_link_monitor_delete_link):
Don't allow deletion of standard desktop links.
* src/file-manager/fm-directory-view.c (fm_directory_view_confirm_deletion):
Don't need to confirm for desktop icons.
Diffstat (limited to 'libnautilus-private/nautilus-desktop-link-monitor.c')
-rw-r--r-- | libnautilus-private/nautilus-desktop-link-monitor.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libnautilus-private/nautilus-desktop-link-monitor.c b/libnautilus-private/nautilus-desktop-link-monitor.c index 841784d6a..998ad9e3d 100644 --- a/libnautilus-private/nautilus-desktop-link-monitor.c +++ b/libnautilus-private/nautilus-desktop-link-monitor.c @@ -90,18 +90,11 @@ nautilus_desktop_link_monitor_delete_link (NautilusDesktopLinkMonitor *monitor, NautilusDesktopLink *link, GtkWidget *parent_view) { - /* FIXME: Is this right? How to get them back? - * Do we disallow this, or add a prefs ui to get them back? */ - switch (nautilus_desktop_link_get_link_type (link)) { case NAUTILUS_DESKTOP_LINK_HOME: - eel_preferences_set_boolean (NAUTILUS_PREFERENCES_DESKTOP_HOME_VISIBLE, FALSE); - break; case NAUTILUS_DESKTOP_LINK_COMPUTER: - eel_preferences_set_boolean (NAUTILUS_PREFERENCES_DESKTOP_COMPUTER_VISIBLE, FALSE); - break; case NAUTILUS_DESKTOP_LINK_TRASH: - eel_preferences_set_boolean (NAUTILUS_PREFERENCES_DESKTOP_TRASH_VISIBLE, FALSE); + /* just ignore. We don't allow you to delete these */ break; default: eel_run_simple_dialog |