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 dfb6fc2417
commit c07efc751a
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> 2006-09-24 Brian Matherly <brian@gramps-project.org>
* src/plugins/AncestorReport.py: Fix generation numbers. * src/plugins/AncestorReport.py: Fix generation numbers.

View File

@ -259,20 +259,19 @@ class MessageHideDialog:
def __init__(self, title, message, key, parent=None): def __init__(self, title, message, key, parent=None):
if not Config.get(key): glade_xml = gtk.glade.XML(const.gladeFile, "hide_dialog", "gramps")
glade_xml = gtk.glade.XML(const.gladeFile, "hide_dialog", "gramps") top = glade_xml.get_widget('hide_dialog')
top = glade_xml.get_widget('hide_dialog') dont_show = glade_xml.get_widget('dont_show')
dont_show = glade_xml.get_widget('dont_show') title_label = glade_xml.get_widget('title')
title_label = glade_xml.get_widget('title') title_label.set_text(
title_label.set_text( '<span size="larger" weight="bold">%s</span>' % title)
'<span size="larger" weight="bold">%s</span>' % title) title_label.set_use_markup(True)
title_label.set_use_markup(True)
glade_xml.get_widget('message').set_text(message)
glade_xml.get_widget('message').set_text(message)
dont_show.connect('toggled',self.update_checkbox, key)
dont_show.connect('toggled',self.update_checkbox, key) top.run()
top.run() top.destroy()
top.destroy()
def update_checkbox(self, obj, constant): def update_checkbox(self, obj, constant):
Config.set(constant, obj.get_active()) 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, # check for a GRDB type and if transactions are enabled. If not,
# then we do not have any issues # then we do not have any issues
if filetype == const.app_gramps and Config.get(Config.TRANSACTIONS): if filetype == const.app_gramps and Config.get(Config.TRANSACTIONS):
import sys import sys
@ -1054,8 +1054,8 @@ def check_for_portability_problems(filetype):
# sys.version_info variable # sys.version_info variable
version = (sys.version_info[0],sys.version_info[1]) 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( QuestionDialog.MessageHideDialog(
_('Database is not portable'), _('Database is not portable'),
_('Your system is running an old version of python. This ' _('Your system is running an old version of python. This '