bigboard r7252 - in trunk: bigboard/stocks/people data



Author: otaylor
Date: Mon Feb  4 21:51:29 2008
New Revision: 7252
URL: http://svn.gnome.org/viewvc/bigboard?rev=7252&view=rev

Log:
Use fallback images for people missing headshots rather than blank squares.


Added:
   trunk/data/bigboard-nophoto-45.png   (contents, props changed)
   trunk/data/bigboard-nophoto-60.png   (contents, props changed)
Modified:
   trunk/bigboard/stocks/people/peoplewidgets.py
   trunk/data/Makefile.am

Modified: trunk/bigboard/stocks/people/peoplewidgets.py
==============================================================================
--- trunk/bigboard/stocks/people/peoplewidgets.py	(original)
+++ trunk/bigboard/stocks/people/peoplewidgets.py	Mon Feb  4 21:51:29 2008
@@ -176,7 +176,10 @@
 
     def __update(self, person):
         self.__name.set_property("text", self.person.display_name) #+ " " + str(self.person._debug_rank))
-        self.__photo.set_url(self.person.icon_url)
+        if self.person.icon_url:
+            self.__photo.set_url(self.person.icon_url)
+        else:
+            self.__photo.set_property('image-name', 'bigboard-nophoto-45')
 
     def __reset_im_status(self):
         buddies = self.person.aim_buddies + self.person.xmpp_buddies
@@ -759,7 +762,11 @@
         linkklass = self.__themed and ThemedLink or ActionLink
                 
         self.__name.set_property('text', self.person.display_name)
-        self.__photo.set_url(self.person.icon_url)
+
+        if self.person.icon_url:
+            self.__photo.set_url(self.person.icon_url)
+        else:
+            self.__photo.set_property('image-name', 'bigboard-nophoto-60')
 
         self.__address_box.remove_all()
 

Modified: trunk/data/Makefile.am
==============================================================================
--- trunk/data/Makefile.am	(original)
+++ trunk/data/Makefile.am	Mon Feb  4 21:51:29 2008
@@ -1,4 +1,4 @@
-icon_DATA = bigboard-bulb.png bigboard-bulb-bw.png bigboard-collapse.png bigboard-document.png bigboard-down-arrow-disabled.png bigboard-down-arrow-enabled.png bigboard-expand.png bigboard-info.png bigboard-left-button.png bigboard-music.png bigboard-presentation.png bigboard-right-button.png bigboard-spreadsheet.png bigboard-today-disabled.png bigboard-today-enabled.png bigboard-up-arrow-disabled.png bigboard-up-arrow-enabled.png windows_key.png ctrl_esc_keys.png
+icon_DATA = bigboard-bulb.png bigboard-bulb-bw.png bigboard-collapse.png bigboard-document.png bigboard-down-arrow-disabled.png bigboard-down-arrow-enabled.png bigboard-expand.png bigboard-info.png bigboard-left-button.png bigboard-music.png bigboard-nophoto-45.png bigboard-nophoto-60.png bigboard-presentation.png bigboard-right-button.png bigboard-spreadsheet.png bigboard-today-disabled.png bigboard-today-enabled.png bigboard-up-arrow-disabled.png bigboard-up-arrow-enabled.png windows_key.png ctrl_esc_keys.png
 icondir = $(datadir)/bigboard
 
 EXTRA_DIST= $(icon_DATA)

Added: trunk/data/bigboard-nophoto-45.png
==============================================================================
Binary file. No diff available.

Added: trunk/data/bigboard-nophoto-60.png
==============================================================================
Binary file. No diff available.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]