def __init__(self, config, module_list, module_set=None): buildscript.BuildScript.__init__(self, config, module_list, module_set=module_set) self.trayicon = trayicon.TrayIcon(config) self.notify = notify.Notify(config)
def __init__(self, config, module_list=None, module_set=None): self.orig_modulelist = module_list self.module_set = jhbuild.moduleset.load(config) buildscript.BuildScript.__init__(self, config, module_list, module_set=self.module_set) self.config = config gtk.Window.__init__(self) self.set_resizable(False) theme = gtk.icon_theme_get_default() if theme.has_icon('applications-development'): gtk.window_set_default_icon_list( theme.load_icon('applications-development', 16, ()), theme.load_icon('applications-development', 24, ()), theme.load_icon('applications-development', 32, ()), theme.load_icon('applications-development', 48, ()), theme.load_icon('applications-development', 64, ()), theme.load_icon('applications-development', 128, ())) self.set_title('JHBuild') self.create_modules_list_model() self.create_ui() self.notify = notify.Notify(config) if self.default_module_iter: self.module_combo.set_active_iter(self.default_module_iter) self.connect('delete-event', self.on_delete_event)