Update to new icon API.

This commit is contained in:
Tomeu Vizoso 2007-01-16 19:22:50 +01:00
parent 55a459e63d
commit 93e030216c
2 changed files with 10 additions and 10 deletions

View File

@ -29,7 +29,7 @@ class TextFileType(FileType):
return _('Text snippet') return _('Text snippet')
def get_icon(self): def get_icon(self):
return 'activity-xbook' return 'theme:activity-xbook'
def get_preview(self): def get_preview(self):
for format, data in self._formats.iteritems(): for format, data in self._formats.iteritems():
@ -57,7 +57,7 @@ class ImageFileType(FileType):
return _('Image') return _('Image')
def get_icon(self): def get_icon(self):
return 'activity-sketch' return 'theme:activity-sketch'
def get_preview(self): def get_preview(self):
return '' return ''
@ -77,7 +77,7 @@ class UriFileType(FileType):
return _('Web Page') return _('Web Page')
def get_icon(self): def get_icon(self):
return 'activity-web' return 'theme:activity-web'
def get_preview(self): def get_preview(self):
for format, data in self._formats.iteritems(): for format, data in self._formats.iteritems():
@ -103,7 +103,7 @@ class PdfFileType(FileType):
return _('PDF file') return _('PDF file')
def get_icon(self): def get_icon(self):
return 'activity-xbook' return 'theme:activity-xbook'
def get_preview(self): def get_preview(self):
return '' return ''
@ -123,7 +123,7 @@ class MsWordFileType(FileType):
return _('MS Word file') return _('MS Word file')
def get_icon(self): def get_icon(self):
return 'activity-abiword' return 'theme:activity-abiword'
def get_preview(self): def get_preview(self):
return '' return ''
@ -143,7 +143,7 @@ class RtfFileType(FileType):
return _('RTF file') return _('RTF file')
def get_icon(self): def get_icon(self):
return 'activity-abiword' return 'theme:activity-abiword'
def get_preview(self): def get_preview(self):
return '' return ''
@ -163,7 +163,7 @@ class OOTextFileType(FileType):
return _('OpenOffice text file') return _('OpenOffice text file')
def get_icon(self): def get_icon(self):
return 'activity-abiword' return 'theme:activity-abiword'
def get_preview(self): def get_preview(self):
return '' return ''
@ -180,7 +180,7 @@ class UnknownFileType(FileType):
return _('Object') return _('Object')
def get_icon(self): def get_icon(self):
return 'stock-missing' return 'theme:stock-missing'
def get_preview(self): def get_preview(self):
return '' return ''

View File

@ -54,7 +54,7 @@ class ClipboardMenu(Menu):
self.add_action(self._remove_icon, ClipboardMenu.ACTION_DELETE) self.add_action(self._remove_icon, ClipboardMenu.ACTION_DELETE)
if not self._open_icon: if not self._open_icon:
self._open_icon = CanvasIcon(icon_name='stock-keep') self._open_icon = CanvasIcon(icon_name='theme:stock-keep')
self.add_action(self._open_icon, ClipboardMenu.ACTION_OPEN) self.add_action(self._open_icon, ClipboardMenu.ACTION_OPEN)
if self._stop_icon: if self._stop_icon:
@ -62,7 +62,7 @@ class ClipboardMenu(Menu):
self._stop_icon = None self._stop_icon = None
elif percent == 100 and not activity: elif percent == 100 and not activity:
if not self._remove_icon: if not self._remove_icon:
self._remove_icon = CanvasIcon(icon_name='stock-remove') self._remove_icon = CanvasIcon(icon_name='theme:stock-remove')
self.add_action(self._remove_icon, ClipboardMenu.ACTION_DELETE) self.add_action(self._remove_icon, ClipboardMenu.ACTION_DELETE)
if self._open_icon: if self._open_icon: