2006-06-17 Don Allingham <don@gramps-project.org>

* src/Selectors/_BaseSelector.py (BaseSelector.run): handle
	delete event
	* src/DataViews/_RelationView.py: remove debug statement
	* src/DataViews/__init__.py: remove map view for time being



svn: r6909
This commit is contained in:
Don Allingham 2006-06-18 03:05:33 +00:00
parent 5cd00073f3
commit 14e0783dd4
4 changed files with 22 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2006-06-17 Don Allingham <don@gramps-project.org>
* src/Selectors/_BaseSelector.py (BaseSelector.run): handle
delete event
* src/DataViews/_RelationView.py: remove debug statement
* src/DataViews/__init__.py: remove map view for time being
2006-06-16 Don Allingham <don@gramps-project.org>
* src/DataViews/_RelationView.py: clear all subelements on redraw
* src/PageView.py: set dirty flag appropriately

View File

@ -275,7 +275,6 @@ class RelationshipView(PageView.PersonNavView):
return (_(u"Unknown"), "")
def redraw(self, *obj):
print self.dbstate.active
if self.dbstate.active:
self.handle_history(self.dbstate.active.handle)
self.change_person(self.dbstate.active.handle)

View File

@ -27,10 +27,19 @@ from _EventView import EventView
from _SourceView import SourceView
from _PlaceView import PlaceView
from _MediaView import MediaView
from _MapView import MapView
#from _MapView import MapView
from _RepositoryView import RepositoryView
def get_views():
return [PersonView, RelationshipView, FamilyListView, PedigreeView,
EventView, SourceView, PlaceView, MediaView,
MapView, RepositoryView]
return [
PersonView,
RelationshipView,
FamilyListView,
PedigreeView,
EventView,
SourceView,
PlaceView,
MediaView,
#MapView,
RepositoryView
]

View File

@ -114,9 +114,11 @@ class BaseSelector(ManagedWindow.ManagedWindow):
else:
return_value = None
return return_value
else:
elif val != gtk.RESPONSE_DELETE_EVENT:
self.close()
return None
else:
return None
def _local_init(self):
# define selector-specific init routine