r7135 - in bigboard/trunk/bigboard: stocks/search themes



Author: walters
Date: 2008-01-07 10:13:08 -0600 (Mon, 07 Jan 2008)
New Revision: 7135

Modified:
   bigboard/trunk/bigboard/stocks/search/SearchStock.py
   bigboard/trunk/bigboard/themes/default.py
Log:
Theme Search slideout better (b.m.o #1346).



Modified: bigboard/trunk/bigboard/stocks/search/SearchStock.py
===================================================================
--- bigboard/trunk/bigboard/stocks/search/SearchStock.py	2008-01-04 22:06:22 UTC (rev 7134)
+++ bigboard/trunk/bigboard/stocks/search/SearchStock.py	2008-01-07 16:13:08 UTC (rev 7135)
@@ -31,7 +31,7 @@
         if self.__themed:
             tm = self.__tm.get_theme()
             cr = window.cairo_create()
-            tm.draw_header(cr, cell_area)
+            tm.draw_header(cr, bg)
         gtk.CellRendererText.do_render(self, window, widget, bg, cell_area, expose_area, flags)
         
    # override
@@ -62,7 +62,7 @@
         if self.__themed:
             tm = self.__tm.get_theme()
             cr = window.cairo_create()
-            tm.draw_header(cr, cell_area)
+            tm.draw_header(cr, bg)
         gtk.CellRendererPixbuf.do_render(self, window, widget, bg, cell_area, expose_area, flags)
         
    # override
@@ -171,7 +171,11 @@
         else:
             # this is a heading
             renderer.set_property('weight', pango.WEIGHT_BOLD)
-            renderer.set_property('background', (self.__tm.get_theme().background << 8,))
+#            bg = self.__tm.get_theme().background
+#            bg_color = gtk.gdk.color_parse('#%02X%02X%02X' % ((bg >> 24) & 0xFF,
+#                                                              (bg >> 16) & 0xFF,
+#                                                              (bg >> 8) & 0xFF,))
+#            renderer.set_property('background-gdk', bg_color)
         renderer.set_property('themed', not result)
             
     def __render_icon(self, col, cell, model, iter):
@@ -427,9 +431,7 @@
         self.__results_view.connect('match-selected', lambda obj: self.emit('match-selected'))
         
         treeview = self.__results_view.get_widget()
-        frame = gtk.Frame()
-        frame.add(treeview)
-        vbox.add(frame)
+        vbox.add(treeview)
         vbox.show_all()
 
         self.__idle_search_id = 0

Modified: bigboard/trunk/bigboard/themes/default.py
===================================================================
--- bigboard/trunk/bigboard/themes/default.py	2008-01-04 22:06:22 UTC (rev 7134)
+++ bigboard/trunk/bigboard/themes/default.py	2008-01-07 16:13:08 UTC (rev 7135)
@@ -17,7 +17,7 @@
         self.prelight = 0xE2E2E2FF
         self.foreground = 0x000000FF
         self.subforeground = 0x666666FF
-        self.slideout_border = (1, 0xFFFFFFFF)        
+        self.slideout_border = (1, 0xFFFFFFFF)
         
         self.header_fg = self._rgba_to_cairo(self.foreground)
         self.header_top = self._rgb_to_cairo(0x9EA3A5)



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