[nautilus] application: remove unused unmount notification code



commit ede7b0c3217262d68733e7696e4f41e33d7aaeb0
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Nov 29 10:35:06 2014 -0800

    application: remove unused unmount notification code
    
    This has been moved to GTK proper now.

 src/nautilus-application.c |   49 --------------------------------------------
 src/nautilus-application.h |    6 -----
 2 files changed, 0 insertions(+), 55 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 5f0b4ca..ba7489f 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -110,53 +110,6 @@ nautilus_application_edit_bookmarks (NautilusApplication *application,
        gtk_window_present (bookmarks_window);
 }
 
-void
-nautilus_application_notify_unmount_done (NautilusApplication *application,
-                                         const gchar *message)
-{
-       g_application_withdraw_notification (G_APPLICATION (application), "unmount");
-
-       if (message != NULL) {
-               GNotification *unplug;
-               GIcon *icon;
-               gchar **strings;
-
-               strings = g_strsplit (message, "\n", 0);
-               icon = g_themed_icon_new ("media-removable");
-               unplug = g_notification_new (strings[0]);
-               g_notification_set_body (unplug, strings[1]);
-               g_notification_set_icon (unplug, icon);
-
-               g_application_send_notification (G_APPLICATION (application), "unplug", unplug);
-               g_object_unref (unplug);
-               g_object_unref (icon);
-               g_strfreev (strings);
-       }
-}
-
-void
-nautilus_application_notify_unmount_show (NautilusApplication *application,
-                                         const gchar *message)
-{
-       GNotification *unmount;
-       GIcon *icon;
-       gchar **strings;
-
-       strings = g_strsplit (message, "\n", 0);
-
-       icon = g_themed_icon_new ("media-removable");
-
-       unmount = g_notification_new (strings[0]);
-       g_notification_set_body (unmount, strings[1]);
-       g_notification_set_icon (unmount, icon);
-       g_notification_set_priority (unmount, G_NOTIFICATION_PRIORITY_URGENT);
-
-       g_application_send_notification (G_APPLICATION (application), "unmount", unmount);
-       g_object_unref (unmount);
-       g_object_unref (icon);
-       g_strfreev (strings);
-}
-
 static gboolean
 check_required_directories (NautilusApplication *application)
 {
@@ -1292,8 +1245,6 @@ nautilus_application_quit_mainloop (GApplication *app)
        nautilus_icon_info_clear_caches ();
        nautilus_application_save_accel_map (NULL);
 
-       nautilus_application_notify_unmount_done (NAUTILUS_APPLICATION (app), NULL);
-
        G_APPLICATION_CLASS (nautilus_application_parent_class)->quit_mainloop (app);
 }
 
diff --git a/src/nautilus-application.h b/src/nautilus-application.h
index 75679a4..85a0020 100644
--- a/src/nautilus-application.h
+++ b/src/nautilus-application.h
@@ -67,12 +67,6 @@ void nautilus_application_open_location (NautilusApplication *application,
                                         GFile *selection,
                                         const char *startup_id);
 
-void nautilus_application_notify_unmount_show (NautilusApplication *application,
-                                              const gchar *message);
-
-void nautilus_application_notify_unmount_done (NautilusApplication *application,
-                                              const gchar *message);
-
 NautilusBookmarkList *
      nautilus_application_get_bookmarks  (NautilusApplication *application);
 void nautilus_application_edit_bookmarks (NautilusApplication *application,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]