Don't pass the weight instead of the flags.

This commit is contained in:
Tomeu Vizoso 2007-07-23 23:27:11 +02:00
parent 7003466f0d
commit 58d57822b8

View File

@ -56,7 +56,7 @@ class ComboBox(gtk.ComboBox):
def _get_real_name_from_theme(self, name, size): def _get_real_name_from_theme(self, name, size):
icon_theme = gtk.icon_theme_get_default() icon_theme = gtk.icon_theme_get_default()
width, height = gtk.icon_size_lookup(size) width, height = gtk.icon_size_lookup(size)
info = icon_theme.lookup_icon(name, width, height) info = icon_theme.lookup_icon(name, width, 0)
if not info: if not info:
raise ValueError("Icon '" + name + "' not found.") raise ValueError("Icon '" + name + "' not found.")
fname = info.get_filename() fname = info.get_filename()