Thumbnails: Declare more interface types

Seems to address a segfault indicated in #1433, but there are still crashes
lurking.
This commit is contained in:
Adrian Sampson 2015-11-20 10:55:25 -08:00
parent fd2cacbc25
commit 530b42156b

View file

@ -234,8 +234,13 @@ class GioURI(URIGetter):
self.available = bool(self.libgio)
if self.available:
self.libgio.g_type_init() # for glib < 2.36
self.libgio.g_file_get_uri.argtypes = [ctypes.c_char_p]
self.libgio.g_file_new_for_path.restype = ctypes.c_void_p
self.libgio.g_file_get_uri.argtypes = [ctypes.c_void_p]
self.libgio.g_file_get_uri.restype = ctypes.c_char_p
self.libgio.g_object_unref.argtypes = [ctypes.c_void_p]
def get_library(self):