bigboard r7332 - trunk/bigboard/stocks/search
- From: otaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: bigboard r7332 - trunk/bigboard/stocks/search
- Date: Wed, 7 May 2008 20:20:08 +0100 (BST)
Author: otaylor
Date: Wed May 7 19:20:08 2008
New Revision: 7332
URL: http://svn.gnome.org/viewvc/bigboard?rev=7332&view=rev
Log:
- Fix handling of stock icons in search results
- Really make the icon size 48, not 32
Modified:
trunk/bigboard/stocks/search/SearchStock.py
Modified: trunk/bigboard/stocks/search/SearchStock.py
==============================================================================
--- trunk/bigboard/stocks/search/SearchStock.py (original)
+++ trunk/bigboard/stocks/search/SearchStock.py Wed May 7 19:20:08 2008
@@ -137,7 +137,7 @@
self.__tm = ThemeManager.getInstance()
- self.__icon_size = 32
+ self.__icon_size = 48
self.__view.insert_column_with_data_func(-1, '',
ThemedPixbufRenderer(),
self.__render_icon)
@@ -175,7 +175,7 @@
# this is a heading
renderer.set_property('weight', pango.WEIGHT_BOLD)
renderer.set_property('theme-part', 'header-no-top-border')
-
+
def __render_icon(self, col, cell, model, iter):
result = model.get_value(iter, 0)
if result:
@@ -185,11 +185,13 @@
cell.set_property('theme-part', theme_part)
pixbuf = model.get(iter, 1)[0]
if isinstance(pixbuf, gtk.gdk.Pixbuf):
- cell.set_property('pixbuf', pixbuf)
+ pass
elif isinstance(pixbuf, basestring):
pixbuf = gtk.icon_theme_get_default().load_icon(pixbuf, 32, gtk.ICON_LOOKUP_USE_BUILTIN)
else:
- cell.set_property('pixbuf', None)
+ pixbuf = None
+
+ cell.set_property('pixbuf', pixbuf)
def __on_selection_changed(self, selection):
(model, rows) = selection.get_selected_rows()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]