Use ignore_reply rather than idle_add, thanks j5
This commit is contained in:
parent
ca60226fb0
commit
26b117cff0
@ -1,6 +1,7 @@
|
|||||||
import dbus
|
import dbus
|
||||||
import geckoembed
|
import geckoembed
|
||||||
import threading
|
import threading
|
||||||
|
import gobject
|
||||||
|
|
||||||
import sugar.env
|
import sugar.env
|
||||||
|
|
||||||
|
@ -16,8 +16,4 @@ class LogWriter:
|
|||||||
sys.stderr = self
|
sys.stderr = self
|
||||||
|
|
||||||
def write(self, s):
|
def write(self, s):
|
||||||
gobject.idle_add(self._write, s)
|
self._logger.log(self._application, s, ignore_reply=True)
|
||||||
|
|
||||||
def _write(self, s):
|
|
||||||
self._logger.log(self._application, s)
|
|
||||||
return False
|
|
||||||
|
@ -34,7 +34,7 @@ class ActivitiesView(gtk.TreeView):
|
|||||||
|
|
||||||
model = self.get_model()
|
model = self.get_model()
|
||||||
address = model.get_value(model.get_iter(path), 1)
|
address = model.get_value(model.get_iter(path), 1)
|
||||||
browser_shell.open_browser(address)
|
browser_shell.open_browser(address, ignore_reply=True)
|
||||||
|
|
||||||
class StartPage(gtk.HBox):
|
class StartPage(gtk.HBox):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user