icon fixes

svn: r6129
This commit is contained in:
Don Allingham 2006-03-10 21:05:00 +00:00
parent 19f9fa50bb
commit 7eaa8084d9
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> 2006-03-09 Don Allingham <don@gramps-project.org>
* src/AddMedia.py: avoid double commit * src/AddMedia.py: avoid double commit
* src/GrampsDb/_GrampsDbBase.py: fix add of places in internal map * src/GrampsDb/_GrampsDbBase.py: fix add of places in internal map

View File

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

View File

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