icon fixes

svn: r6129
This commit is contained in:
Don Allingham 2006-03-10 21:05:00 +00:00
parent cd4cf2f481
commit 1be12a4da0
3 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-03-10 Don Allingham <don@gramps-project.org>
* src/Mime/PythonMime.py: import gtk
* src/DataViews/_FamilyList.py: family_add explict function added
* src/GrampsWidgets.py: use STOCK_DIALOG_INFO as a fallback if
STOCK_INFO does not exist (FreeBSD?)
2006-03-09 Don Allingham <don@gramps-project.org>
* src/AddMedia.py: avoid double commit
* src/GrampsDb/_GrampsDbBase.py: fix add of places in internal map

View File

@ -93,7 +93,13 @@ class WarnButton(gtk.EventBox):
def __init__(self):
gtk.EventBox.__init__(self)
image = gtk.Image()
image.set_from_stock(gtk.STOCK_INFO,gtk.ICON_SIZE_MENU)
# Some versions of FreeBSD don't seem to have STOCK_INFO
try:
image.set_from_stock(gtk.STOCK_INFO,gtk.ICON_SIZE_MENU)
except:
image.set_from_stock(gtk.STOCK_DIALOG_INFO,gtk.ICON_SIZE_MENU)
image.show()
self.add(image)
self.show()

View File

@ -20,6 +20,7 @@
import mimetypes
import const
import gtk
from gettext import gettext as _
_type_map = {