[gnome-contacts] Add presence colors to im buttons
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Add presence colors to im buttons
- Date: Thu, 30 Jun 2011 13:31:04 +0000 (UTC)
commit f9f3e24e1ef3c06905afce1b42ef91f084a1771a
Author: Alexander Larsson <alexl redhat com>
Date: Wed Jun 29 10:35:46 2011 +0200
Add presence colors to im buttons
src/contacts-contact.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index d50e26c..2b47978 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -34,7 +34,7 @@ public class Contacts.ContactPresence : Grid {
type = contact.presence_type;
message = contact.presence_message;
is_phone = contact.is_phone;
-
+
if (type == PresenceType.UNSET) {
image.clear ();
image.hide ();
@@ -419,7 +419,7 @@ public class Contacts.Contact : GLib.Object {
return id + " (" + protocol + ")";
}
-
+
public Widget? create_merged_presence_widget () {
return new ContactPresence (this);
}
@@ -431,10 +431,12 @@ public class Contacts.Contact : GLib.Object {
var i = new Image ();
i.set_from_icon_name (presence_to_icon_full (tp.presence_type), IconSize.MENU);
+ i.get_style_context ().add_class (Contact.presence_to_class (tp.presence_type));
i.set_tooltip_text (tp.presence_message);
var id1 = tp.notify["presence-type"].connect ((pspec) => {
i.set_from_icon_name (presence_to_icon_full (tp.presence_type), IconSize.MENU);
+ i.get_style_context ().add_class (Contact.presence_to_class (tp.presence_type));
});
var id2 = tp.notify["presence-message"].connect ( (pspec) => {
i.set_tooltip_text (tp.presence_message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]