* src/GrampsGconfKeys.py: Add get/set methods for welcome key.

* src/GrampsIniKeys.py: Add get/set methods for welcome key.


svn: r4533
This commit is contained in:
Alex Roitman 2005-05-10 14:57:11 +00:00
parent 874a1bdbf6
commit 3b2ac1ef49
2 changed files with 15 additions and 0 deletions

View File

@ -164,6 +164,12 @@ def get_betawarn():
def save_betawarn(val):
set_bool("/apps/gramps/behavior/betawarn",val)
def get_welcome():
return get_int("/apps/gramps/behavior/welcome")
def save_welcome(val):
set_int("/apps/gramps/behavior/welcome",val)
def get_media_reference():
return get_bool("/apps/gramps/behavior/make-reference")

View File

@ -35,6 +35,7 @@ NL = "\n" # FIX: newlines on Mac/Windows, if different?
_ini_schema = {
'behavior/autoload' : '0',
'behavior/betawarn' : '0',
'behavior/welcome' : '100',
'preferences/date-format' : '0',
'preferences/dont-ask' : '0',
'interface/defaultview' : '0',
@ -312,6 +313,12 @@ def get_betawarn():
def save_betawarn(val):
set_bool("behavior", "betawarn",val)
def get_welcome():
return get_bool("behavior", "welcome")
def save_welcome(val):
set_bool("behavior", "welcome",val)
def get_media_reference():
return get_bool("behavior", "make-reference")
@ -589,6 +596,8 @@ if __name__ == "__main__":
save_autoload(val)
print "get_betawarn()", get_betawarn()
save_betawarn(val)
print "get_welcome()", get_welcome()
save_welcome(val)
print "get_media_reference()", get_media_reference()
save_media_reference(val)
print "get_media_global()", get_media_global()