def activate(self, pluggable): MainPlugin.activate(self, pluggable) self.browser = browser.RecipeBrowser(pluggable.rd) self.browser.view.connect("recipe-selected", self.recipe_activated_cb) self.browser.view.connect("selection-changed", self.selection_changed_cb) self.add_tab(self.browser, "Browse Recipes") pluggable.add_hook(POST, "get_selected_recs_from_rec_tree", self.get_selected_post_hook) pluggable.add_hook(PRE, "redo_search", self.reset_view) pluggable.add_hook(PRE, "update_recipe", self.update_recipe)
def activate(self, pluggable): MainPlugin.activate(self, pluggable) self.browser = browser.RecipeBrowser(pluggable.rd) self.browser.view.connect('recipe-selected', self.recipe_activated_cb) self.browser.view.connect('selection-changed', self.selection_changed_cb) self.add_tab(self.browser, 'Browse Recipes') pluggable.add_hook(POST, 'get_selected_recs_from_rec_tree', self.get_selected_post_hook) pluggable.add_hook(PRE, 'redo_search', self.reset_view) pluggable.add_hook(PRE, 'update_recipe', self.update_recipe)
def activate(self, pluggable): MainPlugin.activate(self, pluggable) self.browser = WebSearchTab(pluggable.rd) self.add_tab(self.browser,'Web Recipe Search')