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:
parent
f4293ae57f
commit
6edc7511be
@ -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>
|
2006-06-21 Don Allingham <don@gramps-project.org>
|
||||||
* src/Filters/__init__.py: include new build_filter_model
|
* src/Filters/__init__.py: include new build_filter_model
|
||||||
* src/Filters/_FilterMenu.py: build_filter_model
|
* src/Filters/_FilterMenu.py: build_filter_model
|
||||||
|
@ -272,21 +272,21 @@ class DateEditorDialog(ManagedWindow.ManagedWindow):
|
|||||||
response = self.window.run()
|
response = self.window.run()
|
||||||
if response == gtk.RESPONSE_HELP:
|
if response == gtk.RESPONSE_HELP:
|
||||||
GrampsDisplay.help('adv-dates')
|
GrampsDisplay.help('adv-dates')
|
||||||
|
elif response == gtk.RESPONSE_DELETE_EVENT:
|
||||||
elif response == gtk.RESPONSE_OK:
|
return
|
||||||
(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
|
|
||||||
else:
|
else:
|
||||||
break
|
if response == gtk.RESPONSE_OK:
|
||||||
self.close()
|
(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):
|
def build_menu_names(self, obj):
|
||||||
return (_("Date selection"), None)
|
return (_("Date selection"), None)
|
||||||
|
Loading…
Reference in New Issue
Block a user