def register_view(self, view): """ Registers this controller with a view. """ Controller.register_view(self, view) self.log.debug('%s registered.', view.__class__.__name__)
def register_view(self, view): """ Registers this controller with a view. """ Controller.register_view(self, view) preferences_model = self.application.get_preferences_model() save_model = self.application.get_save_model() # Force refresh of keyword list keywords_liststore = view['keywords_entry'].get_liststore() keywords_liststore.clear() for keyword in preferences_model.saved_keywords: keywords_liststore.append([keyword]) self.log.debug('%s registered.', view.__class__.__name__)
def register_view(self, view): """ Registers this controller with a view. """ Controller.register_view(self, view) view['thumbnails_tree_view'].set_model( self.application.get_document_model()) view['thumbnails_tree_view'].get_selection().connect( 'changed', self.on_thumbnails_tree_view_selection_changed) view['thumbnails_tree_view'].connect( 'button-press-event', self.on_thumbnails_tree_view_button_press_event) view['delete_menu_item'].connect( "activate", self.on_delete_menu_item_activated) self.log.debug('%s registered.', view.__class__.__name__)