image changes for lock icons
svn: r6084
This commit is contained in:
parent
b4107bd459
commit
5ca9930d30
@ -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>
|
||||
* src/GrampsDb/_ReadGedcom.py: use new logging scheme
|
||||
* src/GrampsDb/_ReadXML.py: use new logging scheme
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
BIN
src/images/stock_lock-open.png
Normal file
BIN
src/images/stock_lock-open.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 693 B |
BIN
src/images/stock_lock.png
Normal file
BIN
src/images/stock_lock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 729 B |
Loading…
Reference in New Issue
Block a user