Permalink
Browse files

more depreciation this time with GObject.idle_add

  • Loading branch information...
1 parent 4cfe692 commit 1a7e154f64e91029b064c6e50e621d8678de9893 @fossfreedom committed Jan 15, 2014
Showing with 4 additions and 3 deletions.
  1. +2 −2 coverart_browser.py
  2. +2 −1 coverart_listview.py
View
@@ -155,7 +155,7 @@ def load_complete(self, *args, **kwargs):
setting = gs.get_setting(gs.Path.PLUGIN)
if setting[gs.PluginKey.AUTOSTART]:
- GObject.idle_add(self.shell.props.display_page_tree.select,
+ GLib.idle_add(self.shell.props.display_page_tree.select,
self.source)
def _translation_helper(self):
@@ -278,6 +278,6 @@ def view_change_cb(self, action, current):
gs = GSetting()
setting = gs.get_setting(gs.Path.PLUGIN)
setting[gs.PluginKey.VIEW_NAME] = view_name
- GObject.idle_add(self.shell.props.display_page_tree.select,
+ GLib.idle_add(self.shell.props.display_page_tree.select,
self.source)
View
@@ -19,6 +19,7 @@
from coverart_widgets import AbstractView
from gi.repository import GObject
+from gi.repository import GLib
class ListShowingPolicy(GObject.Object):
'''
@@ -65,7 +66,7 @@ def initialise(self, source):
def switch_to_view(self, source, album):
self.initialise(source)
- GObject.idle_add(self.shell.props.display_page_tree.select,
+ GLib.idle_add(self.shell.props.display_page_tree.select,
self.shell.props.library_source)
def get_selected_objects(self):

0 comments on commit 1a7e154

Please sign in to comment.