gnome-specimen r122 - in trunk-from-bzr: . specimen



Author: wbolster
Date: Tue Jun 17 18:43:23 2008
New Revision: 122
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=122&view=rev

Log:
* specimen/specimenwindow.py:
  - Use default theme colors for the name cells in the
    preview treeview instead of hardcoded black and gray.


Modified:
   trunk-from-bzr/   (props changed)
   trunk-from-bzr/specimen/specimenwindow.py

Modified: trunk-from-bzr/specimen/specimenwindow.py
==============================================================================
--- trunk-from-bzr/specimen/specimenwindow.py	(original)
+++ trunk-from-bzr/specimen/specimenwindow.py	Tue Jun 17 18:43:23 2008
@@ -316,10 +316,10 @@
     def _set_cell_attributes_for_name_cell(self, cell, name):
         try:
             # set the values
+            font_desc, size, ellipsize = self.name_cell_properties
             cell.set_property('text', name)
-            background, foreground, font_desc, size, ellipsize = self.name_cell_properties
-            cell.set_property('background', background)
-            cell.set_property('foreground', foreground)
+            cell.set_property('background', None)
+            cell.set_property('foreground', None)
             cell.set_property('font-desc', font_desc)
             cell.set_property('size', size)
             cell.set_property('ellipsize', ellipsize)
@@ -329,8 +329,6 @@
             font_desc = self.window.get_pango_context().get_font_description()
             size = font_desc.get_size()
             self.name_cell_properties = (
-                    'grey',
-                    'black',
                     font_desc,
                     size,
                     cell.get_property('ellipsize')



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