diff --git a/ChangeLog b/ChangeLog index 9cfa60651..692ceea8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2003-06-11 Alex Roitman * src/EditPlace.py (on_switch_page): Fix page numbers to enable proper loading of gallery and references. + * src/EditPlace.py: Add url_edit_callback() and pass it on to UrlEdit + when clicked on Add or Edit in Place's Url list. 2003-06-11 Alex Roitman * src/plugins/BookReport.py (Book.pop_item): Add missing return diff --git a/src/EditPlace.py b/src/EditPlace.py index 67389d46c..a73f89e5a 100644 --- a/src/EditPlace.py +++ b/src/EditPlace.py @@ -297,7 +297,7 @@ class EditPlace: name = _("Internet Address Editor for %s") % self.place.get_title() else: name = _("Internet Address Editor") - UrlEdit.UrlEditor(self,name,url) + UrlEdit.UrlEditor(self,name,url,self.url_edit_callback) def on_update_loc_clicked(self,obj): import LocEdit @@ -324,7 +324,10 @@ class EditPlace: name = _("Internet Address Editor for %s") % self.place.get_title() else: name = _("Internet Address Editor") - UrlEdit.UrlEditor(self,name,None) + UrlEdit.UrlEditor(self,name,None,self.url_edit_callback) + + def url_edit_callback(self,url): + self.redraw_url_list() def on_add_loc_clicked(self,obj): import LocEdit