* 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:
@ -48,6 +48,7 @@ import gtk.glade
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import GrampsGconfKeys
|
||||
import GrampsCfg
|
||||
import Plugins
|
||||
import RelLib
|
||||
@ -471,11 +472,11 @@ class Gallery(ImageSelect):
|
||||
(root,ext) = os.path.splitext(basename)
|
||||
photo.set_description(root)
|
||||
self.savephoto(photo)
|
||||
if GrampsCfg.get_media_reference() == 0:
|
||||
if GrampsGconfKeys.get_media_reference() == 0:
|
||||
name = RelImage.import_media_object(name,self.path,photo.get_handle())
|
||||
photo.set_path(name)
|
||||
self.parent.lists_changed = 1
|
||||
if GrampsCfg.get_media_global():
|
||||
if GrampsGconfKeys.get_media_global():
|
||||
GlobalMediaProperties(self.db,photo,None,
|
||||
self,self.parent_window)
|
||||
elif protocol != "":
|
||||
@ -505,7 +506,7 @@ class Gallery(ImageSelect):
|
||||
return
|
||||
self.add_thumbnail(oref)
|
||||
self.parent.lists_changed = 1
|
||||
if GrampsCfg.get_media_global():
|
||||
if GrampsGconfKeys.get_media_global():
|
||||
GlobalMediaProperties(self.db,photo,None,
|
||||
self,self.parent_window)
|
||||
else:
|
||||
@ -535,7 +536,7 @@ class Gallery(ImageSelect):
|
||||
self.dataobj.add_media_reference(oref)
|
||||
self.add_thumbnail(oref)
|
||||
self.parent.lists_changed = 1
|
||||
if GrampsCfg.get_media_global():
|
||||
if GrampsGconfKeys.get_media_global():
|
||||
LocalMediaProperties(oref,self.path,self,self.parent_window)
|
||||
|
||||
def on_photolist_drag_data_get(self,w, context, selection_data, info, time):
|
||||
|
Reference in New Issue
Block a user