* src/plugins/RemoveUnused.py: Rewrite to offer object list

proposed for removal.
	* src/DisplayTabs/_BackRefList.py (edit_button_clicked): Change
	argument order in EditEvent call.
	* src/DataViews/_EventView.py: Change argument order in EditEvent call.
	* src/Editors/_EditEvent.py: Change argument order.


svn: r8018
This commit is contained in:
Alex Roitman
2007-01-31 02:05:01 +00:00
parent 1269fcb4b1
commit b37878b661
5 changed files with 354 additions and 162 deletions

View File

@@ -1,6 +1,6 @@
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2001-2006 Donald N. Allingham
# Copyright (C) 2001-2007 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -190,13 +190,13 @@ class EventView(PageView.ListView):
handle = self.first_selected()
the_event = self.dbstate.db.get_event_from_handle(handle)
try:
EditEvent(the_event, self.dbstate, self.uistate, [])
EditEvent(self.dbstate, self.uistate, [], the_event)
except Errors.WindowActiveError:
pass
def add(self, obj):
try:
EditEvent(RelLib.Event(), self.dbstate, self.uistate, [])
EditEvent(self.dbstate, self.uistate, [], RelLib.Event())
except Errors.WindowActiveError:
pass
@@ -240,6 +240,6 @@ class EventView(PageView.ListView):
for handle in mlist:
event = self.dbstate.db.get_event_from_handle(handle)
try:
EditEvent(event, self.dbstate, self.uistate)
EditEvent(self.dbstate, self.uistate, [], event)
except Errors.WindowActiveError:
pass