Some fixes

This commit is contained in:
Marco Pesenti Gritti 2007-05-13 20:32:28 +02:00
parent f3289d2e59
commit 7e0fd77b13
2 changed files with 7 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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')