[ekiga] Fix compile error introduced by previous commit



commit bbabf1b22481c8d993f0d809e9fae00006b48bb7
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Mon Apr 23 17:15:13 2012 +0200

    Fix compile error introduced by previous commit

 lib/engine/components/libnotify/libnotify-main.cpp |   17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/lib/engine/components/libnotify/libnotify-main.cpp b/lib/engine/components/libnotify/libnotify-main.cpp
index f5ebe61..a0499e4 100644
--- a/lib/engine/components/libnotify/libnotify-main.cpp
+++ b/lib/engine/components/libnotify/libnotify-main.cpp
@@ -133,20 +133,8 @@ on_notif_closed (NotifyNotification* /*notif*/,
 void
 LibNotify::on_notification_added (boost::shared_ptr<Ekiga::Notification> notification)
 {
-  switch (notification->get_level ()) {
-
-  case Ekiga::Notification::Error:
-    notify_notification_set_urgency (notif, NOTIFY_URGENCY_CRITICAL);
-    break;
-
-  case Ekiga::Notification::Info:
+  if (notification->get_level () == Ekiga::Notification::Info)
     return;
-    break;
-
-  case Ekiga::Notification::Warning:
-  default:
-    break;
-  }
 
   NotifyNotification* notif = notify_notification_new (notification->get_title ().c_str (),
                                                        notification->get_body ().c_str (),
@@ -161,6 +149,9 @@ LibNotify::on_notification_added (boost::shared_ptr<Ekiga::Notification> notific
 #endif
                                                       );
 
+  if (notification->get_level () == Ekiga::Notification::Error)
+    notify_notification_set_urgency (notif, NOTIFY_URGENCY_CRITICAL);
+
   g_signal_connect (notif, "closed",
 		    G_CALLBACK (on_notif_closed), notification.get ());
   boost::signals::connection conn =



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