* src/gramps_main.py (tool_callback): Typo.
* src/QuestionDialog.py: Use gramps icon. * src/plugins/EventCmp.py: HIG; single instance; help. * src/plugins/eventcmp.glade: HIG; help. * src/plugins/Desbrowser.py: HIG, help, rebuild model after edit. * src/plugins/desbrowse.glade: help, info label. * src/plugins/PatchNames.py: HIG, help, single instance. * src/plugins/patchnames.glade: HIG, help. * src/plugins/Merge.py: HIG, help, single instance. * src/plugins/merge.glade: HIG, help. * src/plugins/ChangeNames.py: HIG, help, single instance. svn: r4230
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2004 Donald N. Allingham
|
||||
# Copyright (C) 2000-2005 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
|
||||
@ -29,6 +29,7 @@
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
import re
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -38,6 +39,7 @@ import re
|
||||
import gobject
|
||||
import gtk
|
||||
import gtk.glade
|
||||
from gnome import help_display
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -46,7 +48,6 @@ import gtk.glade
|
||||
#-------------------------------------------------------------------------
|
||||
import Utils
|
||||
from QuestionDialog import OkDialog
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -92,9 +93,11 @@ class PatchNames:
|
||||
self.cb = callback
|
||||
self.db = db
|
||||
self.parent = parent
|
||||
if self.parent.child_windows.has_key(self.__class__):
|
||||
self.parent.child_windows[self.__class__].present(None)
|
||||
return
|
||||
self.win_key = self.__class__
|
||||
self.trans = db.transaction_begin()
|
||||
self.win_key = self
|
||||
self.child_windows = {}
|
||||
self.title_list = []
|
||||
self.nick_list = []
|
||||
self.prefix1_list = []
|
||||
@ -144,9 +147,11 @@ class PatchNames:
|
||||
|
||||
self.top = gtk.glade.XML(glade_file,"top","gramps")
|
||||
self.window = self.top.get_widget('top')
|
||||
self.window.set_icon(self.parent.topWindow.get_icon())
|
||||
self.top.signal_autoconnect({
|
||||
"destroy_passed_object" : self.close,
|
||||
"on_ok_clicked" : self.on_ok_clicked,
|
||||
"on_help_clicked" : self.on_help_clicked,
|
||||
"on_delete_event" : self.on_delete_event
|
||||
})
|
||||
self.list = self.top.get_widget("list")
|
||||
@ -228,6 +233,10 @@ class PatchNames:
|
||||
self.add_itself_to_menu()
|
||||
self.window.show()
|
||||
|
||||
def on_help_clicked(self,obj):
|
||||
"""Display the relevant portion of GRAMPS manual"""
|
||||
help_display('gramps-manual','tools-db')
|
||||
|
||||
def on_delete_event(self,obj,b):
|
||||
self.remove_itself_from_menu()
|
||||
|
||||
@ -292,7 +301,7 @@ class PatchNames:
|
||||
|
||||
self.db.transaction_commit(self.trans,_("Extract information from names"))
|
||||
self.close(obj)
|
||||
self.cb(1)
|
||||
self.cb(None,1)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
Reference in New Issue
Block a user