* src/Bookmarks.py: Convert from CList to ListModel and TreeView;

Remove Cancel and OK buttons, Add Close button; make all changes
immediate conforming to the HIG; (remove_people): Add method for
removing people outside bookmark editor (useful for connecting to
signals).
* src/gramps_main.py (on_remove_bookmark): Add handler for
removing deleted people; (__init__): Connect new handler to the
'person-delete' signal.


svn: r5007
This commit is contained in:
Alex Roitman
2005-08-03 02:53:52 +00:00
parent 28edd32a1f
commit 3816790b4f
3 changed files with 83 additions and 42 deletions

View File

@@ -203,6 +203,7 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
TipOfDay.TipOfDay(self)
self.db.set_researcher(GrampsCfg.get_researcher())
self.db.connect('person-delete',self.on_remove_bookmark)
def welcome(self):
if GrampsKeys.get_welcome() >= 200:
@@ -1871,6 +1872,13 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
_("A bookmark could not be set because "
"no one was selected."))
def on_remove_bookmark(self,handle_list):
"""
Callback to remove people from bookmark lists *outside*
the Bookmark Editor.
"""
self.bookmarks.remove_people(handle_list)
def on_edit_bookmarks_activate(self,obj):
self.bookmarks.edit()