2006-06-21 Alex Roitman <shura@gramps-project.org>

* src/DateEdit.py (DateEditorDialog.__init__): Take care of
	deleting the dialog.



svn: r6937
This commit is contained in:
Alex Roitman 2006-06-21 19:18:54 +00:00
parent f4293ae57f
commit 6edc7511be
2 changed files with 19 additions and 15 deletions

View File

@ -1,3 +1,7 @@
2006-06-21 Alex Roitman <shura@gramps-project.org>
* src/DateEdit.py (DateEditorDialog.__init__): Take care of
deleting the dialog.
2006-06-21 Don Allingham <don@gramps-project.org>
* src/Filters/__init__.py: include new build_filter_model
* src/Filters/_FilterMenu.py: build_filter_model

View File

@ -267,26 +267,26 @@ class DateEditorDialog(ManagedWindow.ManagedWindow):
self.return_date = None
self.show()
while True:
response = self.window.run()
if response == gtk.RESPONSE_HELP:
GrampsDisplay.help('adv-dates')
elif response == gtk.RESPONSE_OK:
(the_quality,the_modifier,the_calendar,the_value,the_text) = \
self.build_date_from_ui()
self.return_date = Date(self.date)
self.return_date.set(
quality=the_quality,
modifier=the_modifier,
calendar=the_calendar,
value=the_value,
text=the_text)
break
elif response == gtk.RESPONSE_DELETE_EVENT:
return
else:
break
self.close()
if response == gtk.RESPONSE_OK:
(the_quality,the_modifier,the_calendar,
the_value,the_text) = self.build_date_from_ui()
self.return_date = Date(self.date)
self.return_date.set(
quality=the_quality,
modifier=the_modifier,
calendar=the_calendar,
value=the_value,
text=the_text)
self.close()
return
def build_menu_names(self, obj):
return (_("Date selection"), None)