2006-09-24 Don Allingham <don@gramps-project.org>

* src/ViewManager.py: fix call to warning dialog
	* src/QuestionDialog.py: Don't do internal check on value



svn: r7328
This commit is contained in:
Don Allingham 2006-09-25 02:19:58 +00:00
parent 8d6662b5cb
commit df354f57d7
3 changed files with 20 additions and 17 deletions

View File

@ -1,3 +1,7 @@
2006-09-24 Don Allingham <don@gramps-project.org>
* src/ViewManager.py: fix call to warning dialog
* src/QuestionDialog.py: Don't do internal check on value
2006-09-24 Brian Matherly <brian@gramps-project.org>
* src/plugins/AncestorReport.py: Fix generation numbers.

View File

@ -259,20 +259,19 @@ class MessageHideDialog:
def __init__(self, title, message, key, parent=None):
if not Config.get(key):
glade_xml = gtk.glade.XML(const.gladeFile, "hide_dialog", "gramps")
top = glade_xml.get_widget('hide_dialog')
dont_show = glade_xml.get_widget('dont_show')
title_label = glade_xml.get_widget('title')
title_label.set_text(
'<span size="larger" weight="bold">%s</span>' % title)
title_label.set_use_markup(True)
glade_xml.get_widget('message').set_text(message)
dont_show.connect('toggled',self.update_checkbox, key)
top.run()
top.destroy()
glade_xml = gtk.glade.XML(const.gladeFile, "hide_dialog", "gramps")
top = glade_xml.get_widget('hide_dialog')
dont_show = glade_xml.get_widget('dont_show')
title_label = glade_xml.get_widget('title')
title_label.set_text(
'<span size="larger" weight="bold">%s</span>' % title)
title_label.set_use_markup(True)
glade_xml.get_widget('message').set_text(message)
dont_show.connect('toggled',self.update_checkbox, key)
top.run()
top.destroy()
def update_checkbox(self, obj, constant):
Config.set(constant, obj.get_active())

View File

@ -1045,7 +1045,7 @@ def check_for_portability_problems(filetype):
# check for a GRDB type and if transactions are enabled. If not,
# then we do not have any issues
if filetype == const.app_gramps and Config.get(Config.TRANSACTIONS):
import sys
@ -1054,8 +1054,8 @@ def check_for_portability_problems(filetype):
# sys.version_info variable
version = (sys.version_info[0],sys.version_info[1])
if version < (2, 5):
if version < (2, 5) and Config.get(Config.PORT_WARN):
QuestionDialog.MessageHideDialog(
_('Database is not portable'),
_('Your system is running an old version of python. This '