From b7db2edc195223a62baf84f40b8358399445634c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 12 Apr 2012 12:36:38 +0100 Subject: [PATCH 7/7] Override GApplication.activate() rather than using the signal --- examples/client/python/dialler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/client/python/dialler.py b/examples/client/python/dialler.py index 7fcf8a3..e988b11 100755 --- a/examples/client/python/dialler.py +++ b/examples/client/python/dialler.py @@ -40,7 +40,6 @@ class Dialler(Gtk.Application): Gtk.Application.__init__(self, application_id='im.telepathy.TpGLib.Example.PythonDialler', flags=Gio.ApplicationFlags.NON_UNIQUE) - self.connect('activate', self._activate_cb) self.dbus = Tp.DBusDaemon.dup() self.am = Tp.AccountManager.dup() @@ -51,7 +50,7 @@ class Dialler(Gtk.Application): self.window = None - def _activate_cb(self, data): + def do_activate(self): if self.window is not None: self.window.present() return -- 1.7.10