From c269b45a46dd22939e73fc9b223b8d3db8fa739c Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 30 Dec 2009 20:53:38 +0000 Subject: [PATCH] Moved import gtk to make Mime module cli usable svn: r13945 --- src/Mime/_PythonMime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mime/_PythonMime.py b/src/Mime/_PythonMime.py index b7fd764a1..f89410f5e 100644 --- a/src/Mime/_PythonMime.py +++ b/src/Mime/_PythonMime.py @@ -20,7 +20,6 @@ import mimetypes import const -import gtk from gettext import gettext as _ _type_map = { @@ -67,4 +66,5 @@ def mime_type_is_defined(mime_type): return mime_type in _type_map def find_mime_type_pixbuf(mime_type): + import gtk return gtk.gdk.pixbuf_new_from_file(const.ICON)