changeset 477:fac8e8bc9a1a

browser side: changed default avatar
author souliane <souliane@mailoo.org>
date Thu, 12 Jun 2014 22:32:33 +0200
parents d6daa00ba564
children 992b900ab876
files src/browser/libervia_main.py src/browser/sat_browser/constants.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Thu Jun 12 16:50:09 2014 +0200
+++ b/src/browser/libervia_main.py	Thu Jun 12 22:32:33 2014 +0200
@@ -262,7 +262,7 @@
 
         if jid_str not in self.avatars_cache:
             self.bridge.call('getEntityData', (dataReceived, avatarError), jid_str, ['avatar'])
-            self.avatars_cache[jid_str] = "/media/icons/tango/emotes/64/face-plain.png"
+            self.avatars_cache[jid_str] = C.DEFAULT_AVATAR
         return self.avatars_cache[jid_str]
 
     def registerWidget(self, wid):
--- a/src/browser/sat_browser/constants.py	Thu Jun 12 16:50:09 2014 +0200
+++ b/src/browser/sat_browser/constants.py	Thu Jun 12 22:32:33 2014 +0200
@@ -37,3 +37,6 @@
                             "initial_value": False
                              },
                  }
+
+    # Default avatar
+    DEFAULT_AVATAR = "/media/misc/default_avatar.png"