image changes for lock icons

svn: r6084
This commit is contained in:
Don Allingham 2006-03-05 19:06:40 +00:00
parent b23255c701
commit 0f450408b6
5 changed files with 22 additions and 5 deletions

View File

@ -1,3 +1,11 @@
2006-03-05 Don Allingham <don@gramps-project.org>
* 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 <don@gramps-project.org> 2006-03-04 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py: use new logging scheme * src/GrampsDb/_ReadGedcom.py: use new logging scheme
* src/GrampsDb/_ReadXML.py: use new logging scheme * src/GrampsDb/_ReadXML.py: use new logging scheme

View File

@ -22,6 +22,7 @@
import cgi import cgi
import locale import locale
import os
from gettext import gettext as _ from gettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -35,6 +36,10 @@ import gtk
import AutoComp import AutoComp
import DateHandler import DateHandler
import DateEdit 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): class LinkLabel(gtk.EventBox):
@ -217,11 +222,13 @@ class PrivacyButton:
obj.remove(child) obj.remove(child)
image = gtk.Image() image = gtk.Image()
if obj.get_active(): 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.tooltips.set_tip(obj,_('Record is private'))
self.obj.set_privacy(True) self.obj.set_privacy(True)
else: 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.tooltips.set_tip(obj,_('Record is public'))
self.obj.set_privacy(False) self.obj.set_privacy(False)
image.show() image.show()

View File

@ -19,15 +19,17 @@ dist_pkgdata_DATA = \
media.svg\ media.svg\
ped24.png\ ped24.png\
person.svg\ person.svg\
place24.png\
place.png\ place.png\
place24.png\
relation.svg\ relation.svg\
repos24.png\
repos.png\ repos.png\
sources24.png\ repos24.png\
sources.png\ sources.png\
sources24.png\
splash.jpg\ splash.jpg\
stock_link.png\ stock_link.png\
stock_lock-open.png\
stock_lock.png\
tools.png tools.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B