summaryrefslogtreecommitdiffstats
path: root/usr/share
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2018-11-03 21:42:43 +0100
committerPapoteur <papoteur@mageia.org>2018-11-03 21:42:43 +0100
commit26bf326f52de5fa8204826ecc39dd45aa13e623c (patch)
tree3060cb023e883fe3d30348eb96d193154d9cb504 /usr/share
parent4eab08fc6f9afda37a3e4c46619697375a60ce54 (diff)
downloadmageiawelcome-26bf326f52de5fa8204826ecc39dd45aa13e623c.tar
mageiawelcome-26bf326f52de5fa8204826ecc39dd45aa13e623c.tar.gz
mageiawelcome-26bf326f52de5fa8204826ecc39dd45aa13e623c.tar.bz2
mageiawelcome-26bf326f52de5fa8204826ecc39dd45aa13e623c.tar.xz
mageiawelcome-26bf326f52de5fa8204826ecc39dd45aa13e623c.zip
Adapt callback after notify::title signal
Diffstat (limited to 'usr/share')
-rw-r--r--usr/share/mageiawelcome/webgui.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/share/mageiawelcome/webgui.py b/usr/share/mageiawelcome/webgui.py
index fa94144..14f7be0 100644
--- a/usr/share/mageiawelcome/webgui.py
+++ b/usr/share/mageiawelcome/webgui.py
@@ -1,3 +1,5 @@
+# from http://www.aclevername.com/articles/python-webgui/
+
import time
import queue
import _thread
@@ -33,7 +35,7 @@ class WebKitMethods(object):
@staticmethod
def connect_title_changed(browser, callback):
- def callback_wrapper(widget, frame, title): callback(title)
+ def callback_wrapper(widget, param): callback(widget.get_property(param.name))
browser.connect('notify::title', callback_wrapper)
@staticmethod
@@ -84,6 +86,9 @@ def launch_browser(html, quit_function=None, echo=True):
settings.set_allow_universal_access_from_file_urls(1);
browser.connect('context-menu', no_menu)
+ inspector = browser.get_inspector()
+ inspector.show()
+
box = Gtk.VBox(homogeneous=False, spacing=0)
window.add(box)