[conduit] Use generic icon fallback flag when looking up module icon



commit 8a86070b0e4f209d44c6223fed86cc38d7ed4448
Author: Martin Szulecki <opensuse sukimashita com>
Date:   Thu Sep 23 22:05:36 2010 +1200

    Use generic icon fallback flag when looking up module icon

 NEWS                     |    2 +-
 conduit/ModuleWrapper.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index 9c90882..99c2eb3 100644
--- a/NEWS
+++ b/NEWS
@@ -2,7 +2,7 @@ NEW in 0.3.18:
 ==============
 
 Bugs fixed:
- 614173, 626217, 626572, 584450, 589704, 582530, 568798, 564275
+ 614173, 626217, 626572, 584450, 589704, 582530, 568798, 564275, 583668
 
 NEW in 0.3.17:
 ==============
diff --git a/conduit/ModuleWrapper.py b/conduit/ModuleWrapper.py
index 4f887a2..6d93bc6 100644
--- a/conduit/ModuleWrapper.py
+++ b/conduit/ModuleWrapper.py
@@ -160,7 +160,7 @@ class ModuleWrapper:
         if not self.icon.has_key(size) or self.icon[size] is None:
             if self.module_type in ["source", "sink", "twoway", "category"]:
                 try:
-                    info = gtk.icon_theme_get_default().lookup_icon(self.icon_name, size, 0)
+                    info = gtk.icon_theme_get_default().lookup_icon(self.icon_name, size, gtk.ICON_LOOKUP_GENERIC_FALLBACK)
                     self.icon[size] = info.load_icon()
                     self.icon_path = info.get_filename()
                 except:



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