summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/windows.py
diff options
context:
space:
mode:
authorNecoro <>2007-10-22 22:27:29 +0000
committerNecoro <>2007-10-22 22:27:29 +0000
commit7afdc03507e0aa95f177f8a7c95086de5cfcc06c (patch)
tree41b8b7c894b3e6979c67d5b4363993cbaa2f1a7b /portato/gui/gtk/windows.py
parent6d862d7a961ce70bc24450aadc99a901e5ab19c8 (diff)
downloadportato-7afdc03507e0aa95f177f8a7c95086de5cfcc06c.tar.gz
portato-7afdc03507e0aa95f177f8a7c95086de5cfcc06c.tar.bz2
portato-7afdc03507e0aa95f177f8a7c95086de5cfcc06c.zip
bundled shm module
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/windows.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py
index e3bf133..b17c00c 100644
--- a/portato/gui/gtk/windows.py
+++ b/portato/gui/gtk/windows.py
@@ -23,7 +23,7 @@ from subprocess import Popen
from gettext import lgettext as _
# our backend stuff
-from ... import listener, plugin
+from ... import get_listener, plugin
from ...helper import debug, warning, error, unique_array
from ...constants import CONFIG_LOCATION, VERSION, APP_ICON, DATA_DIR
from ...backend import flags, system
@@ -335,7 +335,7 @@ class PreferenceWindow (AbstractDialog):
self.cfg.set("consolefont", font, section = "GTK")
self.set_console_font(font)
- gtk.link_button_set_uri_hook(lambda btn, x: listener.send_cmd([self.cfg.get("browserCmd", section = "GUI"), btn.get_uri()]))
+ gtk.link_button_set_uri_hook(lambda btn, x: get_listener().send_cmd([self.cfg.get("browserCmd", section = "GUI"), btn.get_uri()]))
def cb_ok_clicked(self, button):
"""Saves, writes to config-file and closes the window."""
@@ -912,7 +912,7 @@ class MainWindow (Window):
raise
self.cfg.modify_external_configs()
- gtk.link_button_set_uri_hook(lambda btn, x: listener.send_cmd([self.cfg.get("browserCmd", section = "GUI"), btn.get_uri()]))
+ gtk.link_button_set_uri_hook(lambda btn, x: get_listener().send_cmd([self.cfg.get("browserCmd", section = "GUI"), btn.get_uri()]))
gtk.about_dialog_set_url_hook(lambda *args: True) # dummy - if not set link is not set as link; if link is clicked the normal uuri_hook is called too - thus do not call browser here
# set plugins and plugin-menu