Use ignore_reply rather than idle_add, thanks j5

This commit is contained in:
Marco Pesenti Gritti 2006-06-14 15:27:54 -04:00
parent ca60226fb0
commit 26b117cff0
3 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,7 @@
import dbus import dbus
import geckoembed import geckoembed
import threading import threading
import gobject
import sugar.env import sugar.env

View File

@ -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

View File

@ -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):