Ticket #3463: use-theme-icons.patch

File use-theme-icons.patch, 617 bytes (added by manuq, 12 years ago)
  • implodeactivity.py

    diff --git a/implodeactivity.py b/implodeactivity.py
    index 7c3f289..3e4cb2f 100644
    a b class _HelpWindow(_DialogWindow): 
    316316        self._help_widget.replay_stage()
    317317
    318318    def _icon_file(self, icon_name):
    319         activity_path = get_bundle_path()
    320         file_path = os.path.join(activity_path, 'icons', icon_name + '.svg')
    321         return file_path
     319        theme = gtk.icon_theme_get_default()
     320        info = theme.lookup_icon(icon_name, 0, 0)
     321        return info.get_filename()
    322322
    323323    def _update_prev_next(self):
    324324        hw = self._help_widget