* src/GrampsGconfKeys.py: Add to CVS -- split off key names.
* src/Makefile.am: Ship GrampsGconfKeys. * src/ArgHandler.py: Use GrampsGconfKeys. * src/DbPrompter.py: Use GrampsGconfKeys. * src/EditPerson.py: Use GrampsGconfKeys. * src/Exporter.py: Use GrampsGconfKeys. * src/FamilyView.py: Use GrampsGconfKeys. * src/GrampsDbBase.py: Use GrampsGconfKeys. * src/ImageSelect.py: Use GrampsGconfKeys. * src/MediaView.py: Use GrampsGconfKeys. * src/Plugins.py: Use GrampsGconfKeys. * src/Report.py: Use GrampsGconfKeys. * src/StartupDialog.py: Use GrampsGconfKeys. * src/TipOfDay.py: Use GrampsGconfKeys. * src/Utils.py: Use GrampsGconfKeys. * src/DateDisplay.py: Proper capitalization for _MONS. * src/DateHandler.py: Use GrampsGconfKeys. * src/GrampsCfg.py: Use GrampsGconfKeys. * src/gramps_main.py: Use GrampsGconfKeys. svn: r3573
This commit is contained in:
@ -25,12 +25,12 @@ import gtk.glade
|
||||
import gnome
|
||||
import gnome.ui
|
||||
|
||||
import GrampsCfg
|
||||
import GrampsGconfKeys
|
||||
|
||||
from gettext import gettext as _
|
||||
|
||||
def need_to_run():
|
||||
val = GrampsCfg.get_startup()
|
||||
val = GrampsGconfKeys.get_startup()
|
||||
if val < const.startup:
|
||||
return 1
|
||||
return 0
|
||||
@ -95,17 +95,17 @@ class StartupDialog:
|
||||
return p
|
||||
|
||||
def complete(self,obj,obj2):
|
||||
GrampsCfg.save_researcher_name(unicode(self.name.get_text()))
|
||||
GrampsCfg.save_researcher_addr(unicode(self.addr.get_text()))
|
||||
GrampsCfg.save_researcher_city(unicode(self.city.get_text()))
|
||||
GrampsCfg.save_researcher_state(unicode(self.state.get_text()))
|
||||
GrampsCfg.save_researcher_postal(unicode(self.postal.get_text()))
|
||||
GrampsCfg.save_researcher_country(unicode(self.country.get_text()))
|
||||
GrampsCfg.save_researcher_phone(unicode(self.phone.get_text()))
|
||||
GrampsCfg.save_researcher_email(unicode(self.email.get_text()))
|
||||
GrampsGconfKeys.save_researcher_name(unicode(self.name.get_text()))
|
||||
GrampsGconfKeys.save_researcher_addr(unicode(self.addr.get_text()))
|
||||
GrampsGconfKeys.save_researcher_city(unicode(self.city.get_text()))
|
||||
GrampsGconfKeys.save_researcher_state(unicode(self.state.get_text()))
|
||||
GrampsGconfKeys.save_researcher_postal(unicode(self.postal.get_text()))
|
||||
GrampsGconfKeys.save_researcher_country(unicode(self.country.get_text()))
|
||||
GrampsGconfKeys.save_researcher_phone(unicode(self.phone.get_text()))
|
||||
GrampsGconfKeys.save_researcher_email(unicode(self.email.get_text()))
|
||||
|
||||
GrampsCfg.save_uselds(self.lds.get_active())
|
||||
GrampsCfg.save_startup(const.startup)
|
||||
GrampsGconfKeys.save_uselds(self.lds.get_active())
|
||||
GrampsGconfKeys.save_startup(const.startup)
|
||||
self.w.destroy()
|
||||
self.task(self.args)
|
||||
|
||||
@ -143,7 +143,7 @@ class StartupDialog:
|
||||
box.add(table)
|
||||
box.show_all()
|
||||
|
||||
name = GrampsCfg.get_researcher_name()
|
||||
name = GrampsGconfKeys.get_researcher_name()
|
||||
if not name or name.strip() == "":
|
||||
import pwd
|
||||
import os
|
||||
@ -154,13 +154,13 @@ class StartupDialog:
|
||||
name = ""
|
||||
|
||||
self.name.set_text(name)
|
||||
self.addr.set_text(GrampsCfg.get_researcher_addr())
|
||||
self.city.set_text(GrampsCfg.get_researcher_city())
|
||||
self.state.set_text(GrampsCfg.get_researcher_state())
|
||||
self.postal.set_text(GrampsCfg.get_researcher_postal())
|
||||
self.country.set_text(GrampsCfg.get_researcher_country())
|
||||
self.phone.set_text(GrampsCfg.get_researcher_phone())
|
||||
self.email.set_text(GrampsCfg.get_researcher_email())
|
||||
self.addr.set_text(GrampsGconfKeys.get_researcher_addr())
|
||||
self.city.set_text(GrampsGconfKeys.get_researcher_city())
|
||||
self.state.set_text(GrampsGconfKeys.get_researcher_state())
|
||||
self.postal.set_text(GrampsGconfKeys.get_researcher_postal())
|
||||
self.country.set_text(GrampsGconfKeys.get_researcher_country())
|
||||
self.phone.set_text(GrampsGconfKeys.get_researcher_phone())
|
||||
self.email.set_text(GrampsGconfKeys.get_researcher_email())
|
||||
|
||||
return p
|
||||
|
||||
@ -188,7 +188,7 @@ class StartupDialog:
|
||||
|
||||
self.lds = gtk.CheckButton(label=_("Enable LDS ordinance support"))
|
||||
|
||||
self.lds.set_active(GrampsCfg.get_uselds())
|
||||
self.lds.set_active(GrampsGconfKeys.get_uselds())
|
||||
|
||||
align.add(self.lds)
|
||||
|
||||
|
Reference in New Issue
Block a user