[gnome-settings-daemon] printing: try making the notifications transient



commit 6b36c341af6e8dc6be797d07409dae405f2edad9
Author: William Jon McCann <jmccann redhat com>
Date:   Fri Jan 28 18:46:42 2011 -0500

    printing: try making the notifications transient
    
    Not sure this is totally right but at least it avoids having
    things in the message tray that aren't really from apps.

 .../gsd-print-notifications-manager.c              |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c b/plugins/print-notifications/gsd-print-notifications-manager.c
index 80e5a19..98a0ac8 100644
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
@@ -76,7 +76,6 @@ on_cups_notification (GDBusConnection *connection,
                       gpointer         user_data)
 {
         GsdPrintNotificationsManager *manager = GSD_PRINT_NOTIFICATIONS_MANAGER (user_data);
-        NotifyNotification          *notification;
         cups_job_t                  *jobs;
         GSList                      *actual = NULL;
         GSList                      *tmp = NULL;
@@ -218,9 +217,12 @@ on_cups_notification (GDBusConnection *connection,
         }
 
         if (primary_text) {
+                NotifyNotification *notification;
                 notification = notify_notification_new (primary_text,
                                                         secondary_text,
                                                         NULL);
+                notify_notification_set_hint (notification, "transient", g_variant_new_boolean (TRUE));
+
                 notify_notification_show (notification, NULL);
         }
 }



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