Browse files

giwebkit: eliminate some redundancy

  • Loading branch information...
1 parent 9f5f088 commit c2c6dc6f2903af65dbf72ee5b24934dbae72a499 C Anthony Risinger committed Aug 27, 2012
Showing with 6 additions and 7 deletions.
  1. +6 −7 pyjs/runners/giwebkit.py
View
13 pyjs/runners/giwebkit.py
@@ -434,11 +434,13 @@ class ApplicationView(object):
_resolver = GIResolver(WebKit.DOMObject)
+ platform = 'webkit'
uri = 'about:blank'
#TODO: rename, accidentally removed?
appdir = None
width = 800
height = 600
+ # TODO: change WebKit patch to keep own reference
listeners = None
def __init__(self):
@@ -500,16 +502,13 @@ def getUri(self):
def init_app(self):
# TODO: this should be done by hooking body with an "onLoad".
- from __pyjamas__ import pygwt_processMetas, set_main_frame
+ from __pyjamas__ import pygwt_processMetas
+ from __pyjamas__ import set_main_frame
from __pyjamas__ import set_gtk_module
- set_gtk_module(Gtk)
- main_frame = self
- main_frame._callbacks = []
- main_frame.platform = 'webkit'
- main_frame.getUri = self.getUri
+ set_gtk_module(Gtk)
+ set_main_frame(self)
- set_main_frame(main_frame)
#TODO: made this work ... and skip bootstrap.js
#for m in pygwt_processMetas():
# minst = module_load(m)

0 comments on commit c2c6dc6

Please sign in to comment.