* 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:
parent
874a1bdbf6
commit
3b2ac1ef49
@ -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")
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user