Moved import gtk to make Mime module cli usable
svn: r13945
This commit is contained in:
1 parent
601b01b8c7
commit
c269b45a46
1 file changed
+1
-1
@@ -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)
|
||||
Reference in new issue
Block a user