From d8bf0f12b39f052055da0108e5f87fb82f1b2eb3 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Wed, 26 Mar 2008 13:26:52 +0100 Subject: Cleaned up hooks --- portato/gui/windows/main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'portato/gui') diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index 7cc07c4..1e28a3c 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -779,8 +779,6 @@ class MainWindow (Window): splash(_("Finishing startup")) self.window.show_all() - - plugin.hook("after_startup")(lambda: True)() def show_package (self, *args, **kwargs): self.packageTable.update(*args, **kwargs) @@ -1662,7 +1660,7 @@ class MainWindow (Window): """ Main. """ - plugin.hook("thread_init")(gobject.threads_init)() + gobject.threads_init() # now subthreads can run normally, but are not allowed to touch the GUI. If threads should change sth there - use gobject.idle_add(). # for more informations on threading and gtk: http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq20.006.htp - gtk.main() + plugin.hook("main")(gtk.main)() -- cgit v1.2.3-54-g00ecf