~exaile-devel/exaile/3.3.x

« back to all changes in this revision

Viewing changes to plugins/contextinfo/__init__.py

  • Committer: Dustin Spicuzza
  • Date: 2014-05-10 20:11:19 UTC
  • Revision ID: dustin@virtualroadside.com-20140510201119-wjbohwqbh5l36q0g
* ContextInfo: don't execute a script from another thread, always use the UI thread. Fixes segfault. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
        self.refresh_button_image.set_from_stock(gtk.STOCK_REFRESH, 1)
186
186
 
187
187
    def on_field_refresh(self, type=None, obj=None, data=None):
188
 
        self.execute_script(self.refresh_script % (data[0], u'%s' % data[1].replace('"', '\\"').replace('\n', '\\\n'), data[0]))
 
188
        glib.idle_add(self.execute_script, self.refresh_script % (data[0], u'%s' % data[1].replace('"', '\\"').replace('\n', '\\\n'), data[0]))
189
189
 
190
190
    def push(self, page):
191
191
        self.history = self.history[:self.history_index+1]