diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2014-11-29 10:35:06 -0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2014-11-29 10:35:06 -0800 |
commit | ede7b0c3217262d68733e7696e4f41e33d7aaeb0 (patch) | |
tree | e0b3c1a9acd117635c3623ab495473b33e25712c | |
parent | f5c94ea7aec1639d979e5030c8a8af238d02c07d (diff) | |
download | nautilus-ede7b0c3217262d68733e7696e4f41e33d7aaeb0.tar.gz |
application: remove unused unmount notification code
This has been moved to GTK proper now.
-rw-r--r-- | src/nautilus-application.c | 49 | ||||
-rw-r--r-- | 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 5f0b4ca4e..ba7489fcd 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 75679a402..85a0020b0 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, |