diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 505288178..2ba981a2b 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -22,6 +22,10 @@ src/Sort.py, src/GenericFilter.py, src/SubstKeywords.py, src/GraphLayout.py: Switch from find_* to try_to_find_* methods. + * src/plugins/ChangeTypes.py: Correct transaction. + * src/plugins/changetype.glade: HIGify dialog. + * src/plugins/PatchNames.py: Correct transaction. + 2004-05-24 Don Allingham * src/PeopleModel.py: temporary fix for add person update * src/PeopleView.py: temporary fix for add person update diff --git a/gramps2/src/plugins/ChangeTypes.py b/gramps2/src/plugins/ChangeTypes.py index 2bc590c31..57b4560e6 100644 --- a/gramps2/src/plugins/ChangeTypes.py +++ b/gramps2/src/plugins/ChangeTypes.py @@ -40,13 +40,8 @@ import AutoComp #------------------------------------------------------------------------- def runTool(database,person,callback,parent=None): try: - trans = database.start_transaction() - ChangeTypes(database,person,parent,trans) - database.add_transaction(trans,_('Change types')) + ChangeTypes(database,person,parent) except: - database.add_transaction(trans,_('Change types')) - database.undo() - import DisplayTrace DisplayTrace.DisplayTrace() @@ -56,11 +51,10 @@ def runTool(database,person,callback,parent=None): # #------------------------------------------------------------------------- class ChangeTypes: - def __init__(self,db,person,parent,trans): + def __init__(self,db,person,parent): self.person = person self.db = db - self.trans = trans - + self.trans = db.start_transaction() base = os.path.dirname(__file__) glade_file = "%s/%s" % (base,"changetype.glade") self.glade = gtk.glade.XML(glade_file,"top","gramps") @@ -101,6 +95,7 @@ class ChangeTypes: msg = _("%d event records were modified") % modified OkDialog(_('Change types'),msg) + self.db.add_transaction(self.trans,_('Change types')) Utils.destroy_passed_object(obj) #------------------------------------------------------------------------ diff --git a/gramps2/src/plugins/PatchNames.py b/gramps2/src/plugins/PatchNames.py index 5f7306491..d351fba06 100644 --- a/gramps2/src/plugins/PatchNames.py +++ b/gramps2/src/plugins/PatchNames.py @@ -221,7 +221,7 @@ class PatchNames: name.set_title(grp[1].strip()) self.db.commit_person(p,self.trans) - self.db.add_transaction(self.trans) + self.db.add_transaction(self.trans,_("Extract information from names")) self.close(obj) self.cb(1) diff --git a/gramps2/src/plugins/changetype.glade b/gramps2/src/plugins/changetype.glade index 11d4ce7e5..deebb5984 100644 --- a/gramps2/src/plugins/changetype.glade +++ b/gramps2/src/plugins/changetype.glade @@ -11,6 +11,11 @@ False True False + True + False + False + GDK_WINDOW_TYPE_HINT_DIALOG + GDK_GRAVITY_NORTH_WEST False @@ -24,19 +29,6 @@ True GTK_BUTTONBOX_END - - - True - True - True - gtk-ok - True - GTK_RELIEF_NORMAL - 0 - - - - True @@ -45,10 +37,25 @@ gtk-cancel True GTK_RELIEF_NORMAL + True 0 + + + + True + True + True + gtk-ok + True + GTK_RELIEF_NORMAL + True + 0 + + + 0