~guillaume86/exaile/context-dev

« back to all changes in this revision

Viewing changes to xlgui/plugins.py

  • Committer: guillaume86
  • Date: 2009-07-25 14:58:51 UTC
  • mfrom: (2141.1.50 exaile-0.3.0)
  • Revision ID: guillaume86-20090725145851-5mtd72f9ze9u1ma6
Added a little hack to adjust zoom level for the new webkit version (and yeah it's working with the ppa version now!)

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
        enable = not model[path][1]
191
191
 
192
192
        if enable:
193
 
            if not self.plugins.enable_plugin(plugin):
 
193
            try:
 
194
                self.plugins.enable_plugin(plugin)
 
195
            except Exception, e:
194
196
                commondialogs.error(self.parent, _('Could '
195
 
                    'not enable plugin.'))
 
197
                    'not enable plugin: %s') % str(e))
196
198
                return
197
199
        else:
198
 
            if not self.plugins.disable_plugin(plugin):
 
200
            try:
 
201
                self.plugins.disable_plugin(plugin)
 
202
            except Exception, e:
199
203
                commondialogs.error(self.parent, _('Could '
200
 
                    'not disable plugin.'))
 
204
                    'not disable plugin: %s') % str(e))
201
205
                return
202
206
        model[path][1] = enable
203
207
        self.row_selected(self.list.get_selection())