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:
parent
dfb6fc2417
commit
c07efc751a
@ -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.
|
||||
|
||||
|
@ -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 = 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)
|
||||
glade_xml.get_widget('message').set_text(message)
|
||||
|
||||
dont_show.connect('toggled',self.update_checkbox, key)
|
||||
top.run()
|
||||
top.destroy()
|
||||
dont_show.connect('toggled',self.update_checkbox, key)
|
||||
top.run()
|
||||
top.destroy()
|
||||
|
||||
def update_checkbox(self, obj, constant):
|
||||
Config.set(constant, obj.get_active())
|
||||
|
@ -1055,7 +1055,7 @@ def check_for_portability_problems(filetype):
|
||||
|
||||
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 '
|
||||
|
Loading…
Reference in New Issue
Block a user