Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-08-16 11:06:39 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-08-16 11:06:39 (GMT)
commit01c15298b81ce56e510f7ece46efa6a03aac46f9 (patch)
tree4b16c73277b7740c126d2fdc242901d95d41c0ce /services
parenta79a3198c589b3b701aaa1e2a1ef1eaf0a458f41 (diff)
Adapt to object icons name changes.
Diffstat (limited to 'services')
-rw-r--r--services/shell/objecttypeservice.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/services/shell/objecttypeservice.py b/services/shell/objecttypeservice.py
index e12398e..01e387d 100644
--- a/services/shell/objecttypeservice.py
+++ b/services/shell/objecttypeservice.py
@@ -17,6 +17,8 @@
import dbus
import dbus.service
+from gettext import gettext as _
+
_REGISTRY_IFACE = "org.laptop.ObjectTypeRegistry"
_REGISTRY_PATH = "/org/laptop/ObjectTypeRegistry"
@@ -28,12 +30,11 @@ class ObjectTypeRegistry(dbus.service.Object):
self._types = {}
- from gettext import gettext as _
- self._add_primitive('Text', _('Text'), 'theme:object-text',
+ self._add_primitive('Text', _('Text'), 'theme:text',
[ 'text/plain', 'text/rtf', 'application/pdf',
'application/x-pdf', 'text/html',
'application/vnd.oasis.opendocument.text' ])
- self._add_primitive('Image', _('Image'), 'theme:object-image',
+ self._add_primitive('Image', _('Image'), 'theme:image',
[ 'image/png', 'image/gif', 'image/jpeg' ])
def _add_primitive(self, type_id, name, icon, mime_types):