~novacut/userwebkit/trunk

« back to all changes in this revision

Viewing changes to userwebkit/__init__.py

  • Committer: Jason Gerard DeRose
  • Date: 2013-02-21 06:33:49 UTC
  • mfrom: (83.1.5 py3.3)
  • Revision ID: jderose@novacut.com-20130221063349-z64pnq4chqflwu15
python3 -m userwebkit.tests.run

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
from microfiber import _oauth_header, _basic_auth_header
35
35
import dbus
36
36
from dbus.mainloop.glib import DBusGMainLoop
37
 
from gi.repository import GObject, Gtk, WebKit
38
 
from gi.repository.GObject import TYPE_PYOBJECT
 
37
from gi.repository import GLib, GObject, Gtk, WebKit
39
38
 
40
39
 
41
40
__version__ = '13.02.0'
55
54
class CouchView(WebKit.WebView):
56
55
    __gsignals__ = {
57
56
        'open': (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE,
58
 
            [TYPE_PYOBJECT]
 
57
            [GObject.TYPE_PYOBJECT]
59
58
        ),
60
59
    }
61
60
 
209
208
    assert isinstance(signals, dict)
210
209
    for (name, argnames) in signals.items():
211
210
        assert isinstance(argnames, list)
212
 
        args = [TYPE_PYOBJECT for argname in argnames]
 
211
        args = [GObject.TYPE_PYOBJECT for argname in argnames]
213
212
        yield (name, (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, args))
214
213
 
215
214
 
327
326
        self.parse()
328
327
        self.build_window()
329
328
        self.window.show_all()
330
 
        GObject.idle_add(self.on_idle)
 
329
        GLib.idle_add(self.on_idle)
331
330
        Gtk.main()
332
331
 
333
332
    def quit(self, *arg):