From 7eaa8084d93e30f4d7ea70b314f45d07a7762f0d Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 10 Mar 2006 21:05:00 +0000 Subject: [PATCH] icon fixes svn: r6129 --- gramps2/ChangeLog | 6 ++++++ gramps2/src/GrampsWidgets.py | 8 +++++++- gramps2/src/Mime/_PythonMime.py | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 757502776..b35c5d584 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,9 @@ +2006-03-10 Don Allingham + * 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 * src/AddMedia.py: avoid double commit * src/GrampsDb/_GrampsDbBase.py: fix add of places in internal map diff --git a/gramps2/src/GrampsWidgets.py b/gramps2/src/GrampsWidgets.py index bc69b9a8d..e2324b992 100644 --- a/gramps2/src/GrampsWidgets.py +++ b/gramps2/src/GrampsWidgets.py @@ -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() diff --git a/gramps2/src/Mime/_PythonMime.py b/gramps2/src/Mime/_PythonMime.py index e599d31fd..150b5c474 100644 --- a/gramps2/src/Mime/_PythonMime.py +++ b/gramps2/src/Mime/_PythonMime.py @@ -20,6 +20,7 @@ import mimetypes import const +import gtk from gettext import gettext as _ _type_map = {