Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/sugar/graphics/objectchooser.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-10-16 15:18:43 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-10-16 15:18:43 (GMT)
commit40fc6e2e47b956eabc34d8b772c066d8f8f0d530 (patch)
tree5dd559f6b9dbd16ddbbd3e0bbcfe1e8b05853020 /lib/sugar/graphics/objectchooser.py
parent05236c66702b4d674123a50061c553ae9e11d589 (diff)
Simplify the API to get icon/description for objects.
Get rid of the service for now, it's not necessary until we allow activities to extend the mime type -> generic type mapping (post 1.0)
Diffstat (limited to 'lib/sugar/graphics/objectchooser.py')
-rw-r--r--lib/sugar/graphics/objectchooser.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/sugar/graphics/objectchooser.py b/lib/sugar/graphics/objectchooser.py
index 114665f..7522a9d 100644
--- a/lib/sugar/graphics/objectchooser.py
+++ b/lib/sugar/graphics/objectchooser.py
@@ -148,10 +148,7 @@ class CollapsedEntry(CanvasRoundBox):
mime_type = self.jobject.metadata['mime_type']
if not self._icon_name and mime_type:
- type = objecttype.get_registry().get_type_for_mime(mime_type)
- if type:
- self._icon_name = type.icon
-
+ self._icon_name = mime.get_mime_icon(mime_type)
if not self._icon_name:
self._icon_name = 'image-missing'