]> git.0d.be Git - empathy.git/commitdiff
Fall back to the default icon if an empty icon name is set
authorCosimo Cecchi <cosimoc@gnome.org>
Sat, 29 Aug 2009 14:19:23 +0000 (16:19 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 31 Aug 2009 15:20:55 +0000 (17:20 +0200)
libempathy/empathy-account.c

index 175bea64ddd098ff552fd22d9d1b82d7a29d6495..fb1b2756d90362db992cae671130040c9b4b32cb 100644 (file)
@@ -246,11 +246,12 @@ empathy_account_update (EmpathyAccount *account,
 
       icon_name = tp_asv_get_string (properties, "Icon");
 
-      if (!EMP_STR_EMPTY (icon_name))
-       {
-         g_free (priv->icon_name);
-         priv->icon_name = g_strdup (icon_name);
-       }
+      g_free (priv->icon_name);
+
+      if (EMP_STR_EMPTY (icon_name))
+        priv->icon_name = empathy_protocol_icon_name (priv->proto_name);
+      else
+        priv->icon_name = g_strdup (icon_name);
     }
 
   if (g_hash_table_lookup (properties, "Enabled") != NULL)