diff options
Diffstat (limited to 'util/gtkcompat.py')
-rw-r--r-- | util/gtkcompat.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/gtkcompat.py b/util/gtkcompat.py index f257db9..6e2bb67 100644 --- a/util/gtkcompat.py +++ b/util/gtkcompat.py @@ -56,7 +56,10 @@ except ValueError, ImportError: new_from_file_at_size = Gdk.pixbuf_new_from_file_at_size new_from_file = Gdk.pixbuf_new_from_file loader_new_with_mime_type = Gdk.pixbuf_loader_new_with_mime_type - PixbufLoader = Gdk.PixbufLoader + class PixbufLoader: + @staticmethod + def new_with_type(type): + return Gdk.PixbufLoader(type) class GdkScreen: width = Gdk.screen_width |