[gnome-online-accounts/gnome-3-10] telepathy: Choose better icons
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-10] telepathy: Choose better icons
- Date: Wed, 16 Oct 2013 09:11:12 +0000 (UTC)
commit ab25d8f92f00cd5f3d295a7a7eb80eefd2b464b8
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Oct 5 12:01:04 2013 +0200
telepathy: Choose better icons
Use symbolic icons for generic protocols. Use icons for the branded
ones if it matches their visual identity. Otherwise do not use an icon.
Fixes: https://bugzilla.gnome.org/708399
src/goabackend/goatelepathyprovider.c | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goatelepathyprovider.c b/src/goabackend/goatelepathyprovider.c
index 7c800bd..df72cb6 100644
--- a/src/goabackend/goatelepathyprovider.c
+++ b/src/goabackend/goatelepathyprovider.c
@@ -232,7 +232,27 @@ get_provider_icon (GoaProvider *provider,
gchar *icon_names[3];
GIcon *icon;
- icon_name = tpaw_protocol_icon_name (priv->protocol_name);
+ /* Use symbolic icons for generic protocols. Use icons for the
+ * branded ones if it matches their visual identity. Otherwise do
+ * not use an icon.
+ */
+ if (g_strcmp0 (priv->protocol_name, "irc") == 0
+ || g_strcmp0 (priv->protocol_name, "jabber") == 0
+ || g_strcmp0 (priv->protocol_name, "local-xmpp") == 0
+ || g_strcmp0 (priv->protocol_name, "sip") == 0)
+ {
+ icon_name = g_strdup ("user-available-symbolic");
+ }
+ else if (g_strcmp0 (priv->protocol_name, "aim") == 0
+ || g_strcmp0 (priv->protocol_name, "gadugadu") == 0
+ || g_strcmp0 (priv->protocol_name, "silc") == 0)
+ {
+ icon_name = tpaw_protocol_icon_name (priv->protocol_name);
+ }
+ else
+ {
+ icon_name = g_strdup ("goa-account");
+ }
icon_names[0] = icon_name;
/* If the icon doesn't exist, just try with the default icon. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]