ekiga r6324 - in trunk: . lib/engine/gui/gtk-frontend
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6324 - in trunk: . lib/engine/gui/gtk-frontend
- Date: Mon, 26 May 2008 20:13:22 +0000 (UTC)
Author: dsandras
Date: Mon May 26 20:13:21 2008
New Revision: 6324
URL: http://svn.gnome.org/viewvc/ekiga?rev=6324&view=rev
Log:
Gray out away contacts.
Modified:
trunk/ChangeLog
trunk/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
Modified: trunk/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
==============================================================================
--- trunk/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp (original)
+++ trunk/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp Mon May 26 20:13:21 2008
@@ -577,10 +577,12 @@
GtkTreeIter group_iter;
GtkTreeIter iter;
bool active = false;
+ bool away = false;
roster_view_gtk_find_iter_for_heap (self, heap, &heap_iter);
active = presentity.get_presence () != "presence-offline";
+ away = presentity.get_presence () == "presence-away";
for (std::set<std::string>::const_iterator group = groups.begin ();
group != groups.end ();
@@ -596,7 +598,7 @@
COLUMN_NAME, presentity.get_name ().c_str (),
COLUMN_STATUS, presentity.get_status ().c_str (),
COLUMN_PRESENCE, presentity.get_presence ().c_str (),
- COLUMN_ACTIVE, active ? "black" : "gray",
+ COLUMN_ACTIVE, (!active || away) ? "gray" : "black",
-1);
else
gtk_tree_store_remove (self->priv->store, &iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]