* src/DisplayTabs/_WebEmbedList.py: icon fixes

* src/images/stock_insert-url.png: added
	* src/images/person.png: added
	* src/images/relation.png: added
	* src/images/Makefile.am: added new images
	* src/gramps_main.py: register icons as stock


svn: r6685
This commit is contained in:
Don Allingham 2006-05-17 03:01:09 +00:00
parent 9ad577a0bc
commit 7f4abf4392
7 changed files with 31 additions and 3 deletions

View File

@ -1,4 +1,10 @@
2006-05-16 Don Allingham <don@gramps-project.org>
* src/DisplayTabs/_WebEmbedList.py: icon fixes
* src/images/stock_insert-url.png: added
* src/images/person.png: added
* src/images/relation.png: added
* src/images/Makefile.am: added new images
* src/gramps_main.py: register icons as stock
* src/GrampsDb/_ReadGedcom.py: handle blank lines
2006-05-16 Alex Roitman <shura@gramps-project.org>

View File

@ -60,7 +60,7 @@ class WebEmbedList(EmbeddedList):
_('Internet'), WebModel)
def get_icon_name(self):
return (0,'stock_insert-url')
return 'gramps-url'
def get_data(self):
return self.data

View File

@ -51,12 +51,22 @@ from gettext import gettext as _
iconpaths = [const.image_dir,"."]
import platform
if platform.system() == "Windows":
person_icon = "person.png"
relation_icon = "relation.png"
else:
person_icon = "person.svg"
relation_icon = "relation.svg"
def register_stock_icons ():
import os
items = [
(os.path.join(const.image_dir,'person.svg'),
(os.path.join(const.image_dir,person_icon),
('gramps-person',_('Person'),gtk.gdk.CONTROL_MASK,0,'')),
(os.path.join(const.image_dir,'relation.svg'),
(os.path.join(const.image_dir,relation_icon),
('gramps-family',_('Relationships'),gtk.gdk.CONTROL_MASK,0,'')),
(os.path.join(const.image_dir,'flist.svg'),
('gramps-family-list',_('Family List'),gtk.gdk.CONTROL_MASK,0,'')),
@ -82,6 +92,8 @@ def register_stock_icons ():
('gramps-add-bookmark',_('Add bookmark'),gtk.gdk.CONTROL_MASK,0,'')),
(os.path.join(const.image_dir,'stock_edit-bookmark.png'),
('gramps-edit-bookmark',_('Edit bookmarks'),gtk.gdk.CONTROL_MASK,0,'')),
(os.path.join(const.image_dir,'stock_insert-url.png'),
('gramps-url',_('URL'),gtk.gdk.CONTROL_MASK,0,'')),
]
# Register our stock items

View File

@ -62,14 +62,24 @@ dist_pkgdata_DATA = \
media.svg\
ped24.png\
person.svg\
person.png\
place.png\
place24.png\
relation.svg\
relation.png\
repos.png\
repos24.png\
sources.png\
sources24.png\
splash.jpg\
stock_add-bookmark.png\
stock_bookmark.png\
stock_delete-bookmark.png\
stock_edit-bookmark.png\
stock_export.png\
stock_insert-url.png\
stock_new-html.png\
stock_undo-history.png\
stock_link.png\
stock_lock-open.png\
stock_lock.png\

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB