diff options
Diffstat (limited to 'libcaja-private/caja-desktop-link-monitor.c')
-rw-r--r-- | libcaja-private/caja-desktop-link-monitor.c | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/libcaja-private/caja-desktop-link-monitor.c b/libcaja-private/caja-desktop-link-monitor.c index 5a959d20..05cb7f4a 100644 --- a/libcaja-private/caja-desktop-link-monitor.c +++ b/libcaja-private/caja-desktop-link-monitor.c @@ -89,70 +89,6 @@ caja_desktop_link_monitor_get (void) return the_link_monitor; } -static void -volume_delete_dialog (GtkWidget *parent_view, - CajaDesktopLink *link) -{ - GMount *mount; - char *dialog_str; - char *display_name; - - mount = caja_desktop_link_get_mount (link); - - if (mount != NULL) - { - display_name = caja_desktop_link_get_display_name (link); - dialog_str = g_strdup_printf (_("You cannot move the volume \"%s\" to the trash."), - display_name); - g_free (display_name); - - if (g_mount_can_eject (mount)) - { - eel_run_simple_dialog - (parent_view, - FALSE, - GTK_MESSAGE_ERROR, - dialog_str, - _("If you want to eject the volume, please use \"Eject\" in the " - "popup menu of the volume."), - GTK_STOCK_OK, NULL); - } - else - { - eel_run_simple_dialog - (parent_view, - FALSE, - GTK_MESSAGE_ERROR, - dialog_str, - _("If you want to unmount the volume, please use \"Unmount Volume\" in the " - "popup menu of the volume."), - GTK_STOCK_OK, NULL); - } - - g_object_unref (mount); - g_free (dialog_str); - } -} - -void -caja_desktop_link_monitor_delete_link (CajaDesktopLinkMonitor *monitor, - CajaDesktopLink *link, - GtkWidget *parent_view) -{ - switch (caja_desktop_link_get_link_type (link)) - { - case CAJA_DESKTOP_LINK_HOME: - case CAJA_DESKTOP_LINK_COMPUTER: - case CAJA_DESKTOP_LINK_TRASH: - case CAJA_DESKTOP_LINK_NETWORK: - /* just ignore. We don't allow you to delete these */ - break; - default: - volume_delete_dialog (parent_view, link); - break; - } -} - static gboolean volume_file_name_used (CajaDesktopLinkMonitor *monitor, const char *name) |