[nautilus] progress-ui: add a notification when all transfer complete



commit 11cc68cbcc154f7e84975861b26c177ae92547aa
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Feb 3 17:34:02 2011 -0500

    progress-ui: add a notification when all transfer complete

 src/nautilus-progress-ui-handler.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-progress-ui-handler.c b/src/nautilus-progress-ui-handler.c
index abd66ce..2479682 100644
--- a/src/nautilus-progress-ui-handler.c
+++ b/src/nautilus-progress-ui-handler.c
@@ -259,12 +259,19 @@ progress_ui_handler_add_to_window (NautilusProgressUIHandler *self,
 static void
 progress_ui_handler_show_complete_notification (NautilusProgressUIHandler *self)
 {
+	NotifyNotification *complete_notification;
+
 	/* don't display the notification if we'd be using a status icon */
 	if (!self->priv->notification_supports_persistence) {
 		return;
 	}
 
-	g_print ("Complete notification\n\n");
+	complete_notification = notify_notification_new (_("File Operations"),
+							 _("All file operations have been successfully completed"),
+							 NULL);
+	notify_notification_show (complete_notification, NULL);
+
+	g_object_unref (complete_notification);
 }
 
 static void



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