Some fixes
This commit is contained in:
parent
f3289d2e59
commit
7e0fd77b13
@ -35,7 +35,7 @@ BrowserHelperService.prototype = {
|
|||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
;
|
}
|
||||||
|
|
||||||
/* :::::::: Service Registration & Initialization ::::::::::::::: */
|
/* :::::::: Service Registration & Initialization ::::::::::::::: */
|
||||||
|
|
||||||
@ -94,5 +94,6 @@ const BrowserHelperFactory = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function NSGetModule(aComMgr, aFileSpec) {
|
function NSGetModule(aComMgr, aFileSpec) {
|
||||||
|
dump("nsBrowserHelper: NSGetModule\n")
|
||||||
return BrowserHelperModule;
|
return BrowserHelperModule;
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,13 @@ import gtk
|
|||||||
|
|
||||||
import sugar.browser
|
import sugar.browser
|
||||||
|
|
||||||
|
def _quit(window):
|
||||||
|
sugar.browser.shutdown()
|
||||||
|
gtk.main_quit()
|
||||||
|
|
||||||
# Main window
|
# Main window
|
||||||
window = gtk.Window()
|
window = gtk.Window()
|
||||||
window.connect("destroy", lambda w: gtk.main_quit())
|
window.connect("destroy", _quit)
|
||||||
|
|
||||||
sugar.browser.startup(os.path.expanduser('~/.sugar-browser-test'), 'test')
|
sugar.browser.startup(os.path.expanduser('~/.sugar-browser-test'), 'test')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user