diff --git a/bauble/plugins/garden/accession.py b/bauble/plugins/garden/accession.py index ce360fb7a..eb2e5124d 100755 --- a/bauble/plugins/garden/accession.py +++ b/bauble/plugins/garden/accession.py @@ -908,7 +908,7 @@ def __init__(self, parent=None): self.widgets.source_sw.set_vadjustment(adjustment) # set current page so we don't open the last one that was open - self.widgets.acc_notebook.set_current_page(0) + self.widgets.notebook.set_current_page(0) def get_window(self): return self.widgets.accession_dialog diff --git a/bauble/plugins/garden/plant.py b/bauble/plugins/garden/plant.py index c2742fc56..d737d55de 100755 --- a/bauble/plugins/garden/plant.py +++ b/bauble/plugins/garden/plant.py @@ -629,7 +629,7 @@ def acc_cell_data_func(column, renderer, model, treeiter, data=None): self.init_translatable_combo('plant_acc_type_combo', acc_type_values) self.init_translatable_combo('reason_combo', change_reasons) utils.setup_date_button(self, 'plant_date_entry', 'plant_date_button') - self.widgets.plant_notebook.set_current_page(0) + self.widgets.notebook.set_current_page(0) def get_window(self): return self.widgets.plant_editor_dialog @@ -767,7 +767,7 @@ def on_select(value): self.view.connect('plant_loc_edit_button', 'clicked', self.on_loc_button_clicked, 'edit') if self.model.quantity == 0: - self.view.widgets.plant_notebook.set_sensitive(False) + self.view.widgets.notebook.set_sensitive(False) msg = _('This plant is marked with quantity zero. \n' 'In practice, it is not any more part of the collection. \n' 'Are you sure you want to edit it anyway?') @@ -775,7 +775,7 @@ def on_select(value): def on_response(button, response): self.view.remove_box(box) if response: - self.view.widgets.plant_notebook.set_sensitive(True) + self.view.widgets.notebook.set_sensitive(True) box = self.view.add_message_box(utils.MESSAGE_BOX_YESNO) box.message = msg box.on_response = on_response