[ekiga] Notifications: Fixed bug where notification disappaers too fast.



commit 8fa0e2a76eacf8cbb7b526ed9076da46baa5669e
Author: Damien Sandras <dsandras beip be>
Date:   Sat Sep 29 18:22:06 2012 +0200

    Notifications: Fixed bug where notification disappaers too fast.
    
    It seems that when you set the transient hint before the notification is
    shown, it is ignored. The transient hint is set for incoming call
    notifications only.
    
    If you set it after the notification has been shown, then the notification
    is really transient : the persistence of the notification daemon is ignored
    and the notification stays until you accept or reject the call, or until
    there is a timeout.

 lib/engine/components/libnotify/libnotify-main.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/libnotify/libnotify-main.cpp b/lib/engine/components/libnotify/libnotify-main.cpp
index dee1989..488e913 100644
--- a/lib/engine/components/libnotify/libnotify-main.cpp
+++ b/lib/engine/components/libnotify/libnotify-main.cpp
@@ -241,7 +241,6 @@ LibNotify::on_call_notification (boost::shared_ptr<Ekiga::CallManager> manager,
                                     );
   notify_notification_add_action (notify, "reject", _("Reject"), call_notification_action_cb, call.get (), NULL);
   notify_notification_add_action (notify, "accept", _("Accept"), call_notification_action_cb, call.get (), NULL);
-  notify_notification_set_hint (notify, "transient", g_variant_new_boolean (TRUE));
   notify_notification_set_timeout (notify, NOTIFY_EXPIRES_NEVER);
   notify_notification_set_urgency (notify, NOTIFY_URGENCY_CRITICAL);
 
@@ -251,6 +250,8 @@ LibNotify::on_call_notification (boost::shared_ptr<Ekiga::CallManager> manager,
 
   notify_notification_show (notify, NULL);
 
+  notify_notification_set_hint (notify, "transient", g_variant_new_boolean (TRUE));
+
   g_free (title);
   g_free (body);
 }



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