Update to new icon API.
This commit is contained in:
parent
55a459e63d
commit
93e030216c
@ -29,7 +29,7 @@ class TextFileType(FileType):
|
||||
return _('Text snippet')
|
||||
|
||||
def get_icon(self):
|
||||
return 'activity-xbook'
|
||||
return 'theme:activity-xbook'
|
||||
|
||||
def get_preview(self):
|
||||
for format, data in self._formats.iteritems():
|
||||
@ -57,7 +57,7 @@ class ImageFileType(FileType):
|
||||
return _('Image')
|
||||
|
||||
def get_icon(self):
|
||||
return 'activity-sketch'
|
||||
return 'theme:activity-sketch'
|
||||
|
||||
def get_preview(self):
|
||||
return ''
|
||||
@ -77,7 +77,7 @@ class UriFileType(FileType):
|
||||
return _('Web Page')
|
||||
|
||||
def get_icon(self):
|
||||
return 'activity-web'
|
||||
return 'theme:activity-web'
|
||||
|
||||
def get_preview(self):
|
||||
for format, data in self._formats.iteritems():
|
||||
@ -103,7 +103,7 @@ class PdfFileType(FileType):
|
||||
return _('PDF file')
|
||||
|
||||
def get_icon(self):
|
||||
return 'activity-xbook'
|
||||
return 'theme:activity-xbook'
|
||||
|
||||
def get_preview(self):
|
||||
return ''
|
||||
@ -123,7 +123,7 @@ class MsWordFileType(FileType):
|
||||
return _('MS Word file')
|
||||
|
||||
def get_icon(self):
|
||||
return 'activity-abiword'
|
||||
return 'theme:activity-abiword'
|
||||
|
||||
def get_preview(self):
|
||||
return ''
|
||||
@ -143,7 +143,7 @@ class RtfFileType(FileType):
|
||||
return _('RTF file')
|
||||
|
||||
def get_icon(self):
|
||||
return 'activity-abiword'
|
||||
return 'theme:activity-abiword'
|
||||
|
||||
def get_preview(self):
|
||||
return ''
|
||||
@ -163,7 +163,7 @@ class OOTextFileType(FileType):
|
||||
return _('OpenOffice text file')
|
||||
|
||||
def get_icon(self):
|
||||
return 'activity-abiword'
|
||||
return 'theme:activity-abiword'
|
||||
|
||||
def get_preview(self):
|
||||
return ''
|
||||
@ -180,7 +180,7 @@ class UnknownFileType(FileType):
|
||||
return _('Object')
|
||||
|
||||
def get_icon(self):
|
||||
return 'stock-missing'
|
||||
return 'theme:stock-missing'
|
||||
|
||||
def get_preview(self):
|
||||
return ''
|
||||
|
@ -54,7 +54,7 @@ class ClipboardMenu(Menu):
|
||||
self.add_action(self._remove_icon, ClipboardMenu.ACTION_DELETE)
|
||||
|
||||
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)
|
||||
|
||||
if self._stop_icon:
|
||||
@ -62,7 +62,7 @@ class ClipboardMenu(Menu):
|
||||
self._stop_icon = None
|
||||
elif percent == 100 and not activity:
|
||||
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)
|
||||
|
||||
if self._open_icon:
|
||||
|
Loading…
Reference in New Issue
Block a user