diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 49cc531e9..f7f868c1d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,11 @@ +2006-03-05 Don Allingham + * src/images/stock_lock-open.png: added, so not to require + hicolor theme + * src/images/stock_lock.png: added, so not to require + hicolor theme + * src/images/Makefile.am: add new files + * src/GrampsWidgets.py: use new image files + 2006-03-04 Don Allingham * src/GrampsDb/_ReadGedcom.py: use new logging scheme * src/GrampsDb/_ReadXML.py: use new logging scheme diff --git a/gramps2/src/GrampsWidgets.py b/gramps2/src/GrampsWidgets.py index d8fa4bc68..bc69b9a8d 100644 --- a/gramps2/src/GrampsWidgets.py +++ b/gramps2/src/GrampsWidgets.py @@ -22,6 +22,7 @@ import cgi import locale +import os from gettext import gettext as _ #------------------------------------------------------------------------- @@ -35,6 +36,10 @@ import gtk import AutoComp import DateHandler import DateEdit +import const + +_lock_path = os.path.join(const.image_dir,'stock_lock.png') +_lock_open_path = os.path.join(const.image_dir,'stock_lock-open.png') class LinkLabel(gtk.EventBox): @@ -217,11 +222,13 @@ class PrivacyButton: obj.remove(child) image = gtk.Image() if obj.get_active(): - image.set_from_icon_name('stock_lock',gtk.ICON_SIZE_MENU) +# image.set_from_icon_name('stock_lock',gtk.ICON_SIZE_MENU) + image.set_from_file(_lock_path) self.tooltips.set_tip(obj,_('Record is private')) self.obj.set_privacy(True) else: - image.set_from_icon_name('stock_lock-open',gtk.ICON_SIZE_MENU) +# image.set_from_icon_name('stock_lock-open',gtk.ICON_SIZE_MENU) + image.set_from_file(_lock_open_path) self.tooltips.set_tip(obj,_('Record is public')) self.obj.set_privacy(False) image.show() diff --git a/gramps2/src/images/Makefile.am b/gramps2/src/images/Makefile.am index 4466a2357..3e00d16ff 100644 --- a/gramps2/src/images/Makefile.am +++ b/gramps2/src/images/Makefile.am @@ -19,15 +19,17 @@ dist_pkgdata_DATA = \ media.svg\ ped24.png\ person.svg\ - place24.png\ place.png\ + place24.png\ relation.svg\ - repos24.png\ repos.png\ - sources24.png\ + repos24.png\ sources.png\ + sources24.png\ splash.jpg\ stock_link.png\ + stock_lock-open.png\ + stock_lock.png\ tools.png diff --git a/gramps2/src/images/stock_lock-open.png b/gramps2/src/images/stock_lock-open.png new file mode 100644 index 000000000..5bc6cd62b Binary files /dev/null and b/gramps2/src/images/stock_lock-open.png differ diff --git a/gramps2/src/images/stock_lock.png b/gramps2/src/images/stock_lock.png new file mode 100644 index 000000000..33091eb85 Binary files /dev/null and b/gramps2/src/images/stock_lock.png differ