diff --git a/ChangeLog b/ChangeLog index 5f8a60bde..1ee0df38a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-03-02 Alex Roitman * calendar, filers: Remove directories. + * images: Create directory. + * src/*png, src/*jpg: move under images directory. 2006-03-02 Don Allingham * configure.in: make distcheck fixes diff --git a/src/Assistant.py b/src/Assistant.py index 261ff0172..771be3aff 100644 --- a/src/Assistant.py +++ b/src/Assistant.py @@ -48,8 +48,8 @@ import const # Constants # #------------------------------------------------------------------------- -_gramps_png = "%s/gramps.png" % const.rootDir -_splash_jpg = "%s/splash.jpg" % const.rootDir +_gramps_png = "%s/images/gramps.png" % const.rootDir +_splash_jpg = "%s/images/splash.jpg" % const.rootDir _format = '%s' #------------------------------------------------------------------------- diff --git a/src/ImgManip.py b/src/ImgManip.py index 233636caa..5994d7049 100644 --- a/src/ImgManip.py +++ b/src/ImgManip.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2003 Donald N. Allingham +# Copyright (C) 2000-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -155,7 +155,8 @@ def get_thumbnail_image(path,mtype=None): if mtype: return GrampsMime.find_mime_type_pixbuf(mtype) else: - return gtk.gdk.pixbuf_new_from_file(os.path.join(const.dataDir,"document.png")) + return gtk.gdk.pixbuf_new_from_file(os.path.join( + const.dataDir,"images/document.png")) def get_thumbnail_path(path,mtype=None): filename = _build_thumb_path(path) diff --git a/src/MapView.py b/src/MapView.py index 1aef9e763..65fed3b2d 100644 --- a/src/MapView.py +++ b/src/MapView.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2001-2005 Donald N. Allingham +# Copyright (C) 2001-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -396,9 +396,9 @@ class MapView(PageView.PageView): no = gtk.Image() # The large zoomable map self.zoom_map = ZoomMap( - gtk.gdk.pixbuf_new_from_file("land_shallow_topo_2048.jpg"), - gtk.gdk.pixbuf_new_from_file("bad.png"), - gtk.gdk.pixbuf_new_from_file("good.png")) + gtk.gdk.pixbuf_new_from_file("images/land_shallow_topo_2048.jpg"), + gtk.gdk.pixbuf_new_from_file("images/bad.png"), + gtk.gdk.pixbuf_new_from_file("images/good.png")) self.zoom_map.set_size_request(300,300) hbox.pack_start( self.zoom_map, True, True, 0) @@ -408,7 +408,7 @@ class MapView(PageView.PageView): # The small guide map self.guide_map = GuideMap( - gtk.gdk.pixbuf_new_from_file("land_shallow_topo_350.jpg")) + gtk.gdk.pixbuf_new_from_file("images/land_shallow_topo_350.jpg")) self.guide_map.set_size_request(128,64) vbox.pack_start( self.guide_map, False, True, 0) diff --git a/src/ScratchPad.py b/src/ScratchPad.py index ca033b817..8b5e044a3 100644 --- a/src/ScratchPad.py +++ b/src/ScratchPad.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2005 Donald N. Allingham +# Copyright (C) 2000-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modiy # it under the terms of the GNU General Public License as published by @@ -59,7 +59,7 @@ from DdTargets import DdTargets #------------------------------------------------------------------------- LINK_PIC = gtk.gdk.pixbuf_new_from_file( "%s/%s" % (os.path.dirname(__file__), - 'stock_link.png')) + 'images/stock_link.png')) BLANK_PIC = gtk.gdk.Pixbuf(0,0,8,1,1) #------------------------------------------------------------------------- diff --git a/src/const.py.in b/src/const.py.in index 4ff392854..7c20b2600 100644 --- a/src/const.py.in +++ b/src/const.py.in @@ -3,7 +3,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2005 Donald N. Allingham +# Copyright (C) 2000-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -96,9 +96,9 @@ custom_filters = "~/.gramps/custom_filters.xml" report_options = "~/.gramps/report_options.xml" tool_options = "~/.gramps/tool_options.xml" bsddbenv_dir = "~/.gramps/bsddbenv" -icon = os.path.join(rootDir,"gramps.png") -logo = os.path.join(rootDir,"logo.png") -splash = os.path.join(rootDir,"splash.jpg") +icon = os.path.join(rootDir,"images/gramps.png") +logo = os.path.join(rootDir,"images/logo.png") +splash = os.path.join(rootDir,"images/splash.jpg") license = os.path.join(rootDir,"COPYING") gladeFile = os.path.join(rootDir,"gramps.glade") editPersonFile = os.path.join(rootDir,"edit_person.glade") diff --git a/src/edit_person.glade b/src/edit_person.glade index 3124b099c..438647428 100644 --- a/src/edit_person.glade +++ b/src/edit_person.glade @@ -12,7 +12,7 @@ 500 True False - gramps.png + images/gramps.png True False False @@ -541,7 +541,7 @@ Unknown True - edit_sm.png + images/edit_sm.png 0.5 0.5 0 diff --git a/src/gramps.glade b/src/gramps.glade index 3036722af..1c66b39ca 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -14,7 +14,7 @@ 450 True False - gramps.png + images/gramps.png True False False @@ -356,7 +356,7 @@ False True False - gramps.png + images/gramps.png True False False @@ -502,7 +502,7 @@ 500 True False - gramps.png + images/gramps.png True False False @@ -1380,7 +1380,7 @@ 450 True False - gramps.png + images/gramps.png True False False @@ -2169,7 +2169,7 @@ False True False - gramps.png + images/gramps.png True False False @@ -4034,7 +4034,7 @@ Text Beside Icons 450 True False - gramps.png + images/gramps.png True False False @@ -4171,7 +4171,7 @@ Text Beside Icons 300 True False - gramps.png + images/gramps.png True False False @@ -4335,7 +4335,7 @@ Text Beside Icons True - edit_sm.png + images/edit_sm.png 0.5 0.5 0 @@ -4399,7 +4399,7 @@ Text Beside Icons True True False - gramps.png + images/gramps.png True False False @@ -5953,7 +5953,7 @@ Text Beside Icons 450 True False - gramps.png + images/gramps.png True False False @@ -6271,7 +6271,7 @@ Text Beside Icons 450 True False - gramps.png + images/gramps.png True False False @@ -7023,7 +7023,7 @@ Text Beside Icons 450 True False - gramps.png + images/gramps.png True False False @@ -8776,7 +8776,7 @@ Text Beside Icons 450 True False - gramps.png + images/gramps.png True False False @@ -9223,7 +9223,7 @@ Text Beside Icons 400 True False - gramps.png + images/gramps.png True False False @@ -9488,7 +9488,7 @@ Text Beside Icons 500 True False - gramps.png + images/gramps.png True False False @@ -9992,7 +9992,7 @@ Text Beside Icons 450 True False - gramps.png + images/gramps.png True False False @@ -10542,7 +10542,7 @@ Text Beside Icons 600 True False - gramps.png + images/gramps.png True False False @@ -10866,7 +10866,7 @@ Text Beside Icons 600 True False - gramps.png + images/gramps.png True False False @@ -12008,7 +12008,7 @@ Text Beside Icons False True False - gramps.png + images/gramps.png True False False @@ -12914,7 +12914,7 @@ Text Beside Icons 400 True False - gramps.png + images/gramps.png True False False @@ -13005,7 +13005,7 @@ Text Beside Icons 450 True False - gramps.png + images/gramps.png True False False @@ -13309,7 +13309,7 @@ Text Beside Icons 550 True False - gramps.png + images/gramps.png True False False @@ -13856,7 +13856,7 @@ Text Beside Icons 450 True False - gramps.png + images/gramps.png True False False @@ -14632,7 +14632,7 @@ Text Beside Icons 600 True False - gramps.png + images/gramps.png True False False @@ -15519,7 +15519,7 @@ Very High 450 True False - gramps.png + images/gramps.png True False False diff --git a/src/gramps_main.py b/src/gramps_main.py index 6e01b453a..3264d8231 100644 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2001-2005 Donald N. Allingham +# Copyright (C) 2001-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -65,17 +65,26 @@ iconpaths = [".",const.rootDir] def register_stock_icons (): import os items = [ - ('person.svg',('gramps-person','Person',gtk.gdk.CONTROL_MASK,0,'')), - ('relation.svg',('gramps-family','Relationships',gtk.gdk.CONTROL_MASK,0,'')), - ('flist.svg',('gramps-family-list','Family List',gtk.gdk.CONTROL_MASK,0,'')), - ('media.svg',('gramps-media','Media',gtk.gdk.CONTROL_MASK,0,'')), - ('ped24.png',('gramps-pedigree','Pedigree',gtk.gdk.CONTROL_MASK,0,'')), - ('repos.png',('gramps-repository','Repositories', - gtk.gdk.CONTROL_MASK,0,'')), - ('sources.png',('gramps-source','Sources',gtk.gdk.CONTROL_MASK,0,'')), - ('events.png',('gramps-event','Events',gtk.gdk.CONTROL_MASK,0,'')), - ('place.png',('gramps-place','Places',gtk.gdk.CONTROL_MASK,0,'')), - ('place.png',('gramps-map','Map',gtk.gdk.CONTROL_MASK,0,'')), + ('images/person.svg',('gramps-person', + 'Person',gtk.gdk.CONTROL_MASK,0,'')), + ('images/relation.svg',('gramps-family', + 'Relationships',gtk.gdk.CONTROL_MASK,0,'')), + ('images/flist.svg',('gramps-family-list', + 'Family List',gtk.gdk.CONTROL_MASK,0,'')), + ('images/media.svg',('gramps-media', + 'Media',gtk.gdk.CONTROL_MASK,0,'')), + ('images/ped24.png',('gramps-pedigree', + 'Pedigree',gtk.gdk.CONTROL_MASK,0,'')), + ('images/repos.png',('gramps-repository', + 'Repositories',gtk.gdk.CONTROL_MASK,0,'')), + ('images/sources.png',('gramps-source', + 'Sources',gtk.gdk.CONTROL_MASK,0,'')), + ('images/events.png',('gramps-event', + 'Events',gtk.gdk.CONTROL_MASK,0,'')), + ('images/place.png',('gramps-place', + 'Places',gtk.gdk.CONTROL_MASK,0,'')), + ('images/place.png',('gramps-map', + 'Map',gtk.gdk.CONTROL_MASK,0,'')), ] # Register our stock items @@ -92,7 +101,7 @@ def register_stock_icons (): if os.path.isfile(icon_file): break else: - icon_file = os.path.join(iconpaths[0],'gramps.png') + icon_file = os.path.join(iconpaths[0],'images/gramps.png') pixbuf = gtk.gdk.pixbuf_new_from_file (icon_file) pixbuf = pixbuf.add_alpha(True, chr(0xff), chr(0xff), chr(0xff)) diff --git a/src/bad.png b/src/images/bad.png similarity index 100% rename from src/bad.png rename to src/images/bad.png diff --git a/src/caution.png b/src/images/caution.png similarity index 100% rename from src/caution.png rename to src/images/caution.png diff --git a/src/edit.png b/src/images/edit.png similarity index 100% rename from src/edit.png rename to src/images/edit.png diff --git a/src/edit_sm.png b/src/images/edit_sm.png similarity index 100% rename from src/edit_sm.png rename to src/images/edit_sm.png diff --git a/src/events.png b/src/images/events.png similarity index 100% rename from src/events.png rename to src/images/events.png diff --git a/src/events24.png b/src/images/events24.png similarity index 100% rename from src/events24.png rename to src/images/events24.png diff --git a/src/flist.svg b/src/images/flist.svg similarity index 100% rename from src/flist.svg rename to src/images/flist.svg diff --git a/src/good.png b/src/images/good.png similarity index 100% rename from src/good.png rename to src/images/good.png diff --git a/src/gramps.png b/src/images/gramps.png similarity index 100% rename from src/gramps.png rename to src/images/gramps.png diff --git a/src/land_shallow_topo_2048.jpg b/src/images/land_shallow_topo_2048.jpg similarity index 100% rename from src/land_shallow_topo_2048.jpg rename to src/images/land_shallow_topo_2048.jpg diff --git a/src/land_shallow_topo_350.jpg b/src/images/land_shallow_topo_350.jpg similarity index 100% rename from src/land_shallow_topo_350.jpg rename to src/images/land_shallow_topo_350.jpg diff --git a/src/locked.png b/src/images/locked.png similarity index 100% rename from src/locked.png rename to src/images/locked.png diff --git a/src/logo.png b/src/images/logo.png similarity index 100% rename from src/logo.png rename to src/images/logo.png diff --git a/src/media.png b/src/images/media.png similarity index 100% rename from src/media.png rename to src/images/media.png diff --git a/src/media.svg b/src/images/media.svg similarity index 100% rename from src/media.svg rename to src/images/media.svg diff --git a/src/ped24.png b/src/images/ped24.png similarity index 100% rename from src/ped24.png rename to src/images/ped24.png diff --git a/src/person.svg b/src/images/person.svg similarity index 100% rename from src/person.svg rename to src/images/person.svg diff --git a/src/place.png b/src/images/place.png similarity index 100% rename from src/place.png rename to src/images/place.png diff --git a/src/place24.png b/src/images/place24.png similarity index 100% rename from src/place24.png rename to src/images/place24.png diff --git a/src/relation.svg b/src/images/relation.svg similarity index 100% rename from src/relation.svg rename to src/images/relation.svg diff --git a/src/repos.png b/src/images/repos.png similarity index 100% rename from src/repos.png rename to src/images/repos.png diff --git a/src/repos24.png b/src/images/repos24.png similarity index 100% rename from src/repos24.png rename to src/images/repos24.png diff --git a/src/sources.png b/src/images/sources.png similarity index 100% rename from src/sources.png rename to src/images/sources.png diff --git a/src/sources24.png b/src/images/sources24.png similarity index 100% rename from src/sources24.png rename to src/images/sources24.png diff --git a/src/splash.jpg b/src/images/splash.jpg similarity index 100% rename from src/splash.jpg rename to src/images/splash.jpg diff --git a/src/stock_link.png b/src/images/stock_link.png similarity index 100% rename from src/stock_link.png rename to src/images/stock_link.png diff --git a/src/tools.png b/src/images/tools.png similarity index 100% rename from src/tools.png rename to src/images/tools.png diff --git a/src/mergedata.glade b/src/mergedata.glade index 857a49346..54644c423 100644 --- a/src/mergedata.glade +++ b/src/mergedata.glade @@ -11,7 +11,7 @@ True True False - gramps.png + images/gramps.png True False False @@ -287,7 +287,7 @@ 500 True False - gramps.png + images/gramps.png True False False @@ -552,7 +552,7 @@ False True False - gramps.png + images/gramps.png True False False @@ -1153,7 +1153,7 @@ 300 True False - gramps.png + images/gramps.png True False False diff --git a/src/plugins.glade b/src/plugins.glade index ca333b6b8..abfb4093f 100644 --- a/src/plugins.glade +++ b/src/plugins.glade @@ -11,7 +11,7 @@ False True False - gramps.png + images/gramps.png True False False @@ -136,7 +136,7 @@ 400 True False - gramps.png + images/gramps.png True False False @@ -238,7 +238,7 @@ True - gramps.png + images/gramps.png 0.5 0.5 0 diff --git a/src/rule.glade b/src/rule.glade index ded0dffa0..eba07175e 100644 --- a/src/rule.glade +++ b/src/rule.glade @@ -12,7 +12,7 @@ False True False - gramps.png + images/gramps.png True False False @@ -533,7 +533,7 @@ 350 True False - gramps.png + images/gramps.png True False False @@ -849,7 +849,7 @@ 400 True False - gramps.png + images/gramps.png True False False @@ -958,7 +958,7 @@ False True False - gramps.png + images/gramps.png True False False