[ekiga/v4_0] Roster: Handle xa as away.



commit e836048c4cc99f981ce81e2a7ac70dac7150ee9a
Author: Damien Sandras <dsandras beip be>
Date:   Sun Feb 10 18:01:39 2013 +0100

    Roster: Handle xa as away.

 lib/engine/gui/gtk-frontend/roster-view-gtk.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp b/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
index 883fcd6..d5494e3 100644
--- a/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
+++ b/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
@@ -479,6 +479,8 @@ roster_view_gtk_icon_blink_cb (gpointer data)
   else if (ltm->tm_sec % 3 == 0 && info->cpt > 2) {
     if (info->new_presence != "unknown")
       icon = "user-" + info->new_presence;
+    if (icon == "user-xa")
+      icon = "user-away";
     gtk_tree_store_set (GTK_TREE_STORE (info->model), info->iter,
                         COLUMN_PRESENCE_ICON, icon.c_str (),
                         -1);
@@ -1078,6 +1080,8 @@ on_presentity_added (RosterViewGtk* self,
       else if (old_presence != presentity->get_presence ()) {
         if (presentity->get_presence () != "unknown")
           icon = "user-" + presentity->get_presence ();
+        if (icon == "user-xa")
+          icon = "user-away";
         gtk_tree_store_set (self->priv->store, &iter,
                             COLUMN_PRESENCE_ICON, icon.c_str (),
                             -1);


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