* src/GrampsIniKeys.py: provide support for the default schema

* src/GrampsKeys.py: select appropriate backend
* various: switch from GrampsGconfKeys to GrampsKeys for normal usage

* src/GrampsIniKeys.py: Alternate backend using .ini files instead
of gconf


svn: r3873
This commit is contained in:
Don Allingham
2005-01-06 17:28:31 +00:00
parent f0032a4c59
commit 5cb6bd08d5
23 changed files with 211 additions and 191 deletions

View File

@ -48,7 +48,7 @@ import gtk.glade
#-------------------------------------------------------------------------
import const
import Utils
import GrampsGconfKeys
import GrampsKeys
import NameDisplay
import Plugins
import RelLib
@ -470,12 +470,12 @@ class Gallery(ImageSelect):
(root,ext) = os.path.splitext(basename)
photo.set_description(root)
self.savephoto(photo)
if GrampsGconfKeys.get_media_reference() == 0:
if GrampsKeys.get_media_reference() == 0:
self.db.set_thumbnail_image(photo.get_handle(),
self.path)
photo.set_path(name)
self.parent.lists_changed = 1
if GrampsGconfKeys.get_media_global():
if GrampsKeys.get_media_global():
GlobalMediaProperties(self.db,photo,None,
self,self.parent_window)
elif protocol != "":
@ -505,7 +505,7 @@ class Gallery(ImageSelect):
return
self.add_thumbnail(oref)
self.parent.lists_changed = 1
if GrampsGconfKeys.get_media_global():
if GrampsKeys.get_media_global():
GlobalMediaProperties(self.db,photo,None,
self,self.parent_window)
else:
@ -535,7 +535,7 @@ class Gallery(ImageSelect):
self.dataobj.add_media_reference(oref)
self.add_thumbnail(oref)
self.parent.lists_changed = 1
if GrampsGconfKeys.get_media_global():
if GrampsKeys.get_media_global():
LocalMediaProperties(oref,self.path,self,self.parent_window)
def on_photolist_drag_data_get(self,w, context, selection_data, info, time):