* src/DataViews/_MediaView.py: tool tips
* src/DataViews/_RepositoryView.py: tool tips * src/DataViews/_SourceView.py: tool tips * src/DataViews/_EventView.py: tool tips * src/DataViews/_PedigreeView.py: tool tips * src/DataViews/_PlaceView.py: tool tips * src/DataViews/_PersonView.py: tool tips * src/ViewManager.py: tool tips * src/QuestionDialog.py: add info dialog * src/PageView.py: tool tips svn: r6574
This commit is contained in:
@ -253,3 +253,30 @@ class MissingMediaDialog:
|
||||
"Instead select one of the available options"),
|
||||
self.top)
|
||||
return True
|
||||
|
||||
class MessageHideDialog(gtk.MessageDialog):
|
||||
def __init__(self, title, message, key, parent=None):
|
||||
|
||||
gtk.MessageDialog.__init__(self, parent,
|
||||
flags=gtk.DIALOG_MODAL,
|
||||
type=gtk.MESSAGE_INFO,
|
||||
buttons=gtk.BUTTONS_CLOSE)
|
||||
self.set_markup('<span weight="bold" size="larger">%s</span>' % title)
|
||||
self.format_secondary_markup(message)
|
||||
|
||||
checkbox = gtk.CheckButton(_("Do not display again"))
|
||||
checkbox.set_active(Config.get(key))
|
||||
checkbox.connect('toggled',self.update_checkbox, key)
|
||||
checkbox.show()
|
||||
|
||||
align = gtk.Alignment(0.5,0.0)
|
||||
align.add(checkbox)
|
||||
align.show()
|
||||
self.vbox.add(align)
|
||||
self.set_icon(ICON)
|
||||
self.show()
|
||||
self.run()
|
||||
self.destroy()
|
||||
|
||||
def update_checkbox(self, obj, constant):
|
||||
Config.set(constant, obj.get_active())
|
||||
|
Reference in New Issue
Block a user