Moved import gtk to make Mime module cli usable
svn: r13945
This commit is contained in:
parent
601b01b8c7
commit
c269b45a46
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import const
|
import const
|
||||||
import gtk
|
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
_type_map = {
|
_type_map = {
|
||||||
@ -67,4 +66,5 @@ def mime_type_is_defined(mime_type):
|
|||||||
return mime_type in _type_map
|
return mime_type in _type_map
|
||||||
|
|
||||||
def find_mime_type_pixbuf(mime_type):
|
def find_mime_type_pixbuf(mime_type):
|
||||||
|
import gtk
|
||||||
return gtk.gdk.pixbuf_new_from_file(const.ICON)
|
return gtk.gdk.pixbuf_new_from_file(const.ICON)
|
||||||
|
Loading…
Reference in New Issue
Block a user