[pygobject] [API add] pygtkcompat: Add more pixbuf creation functions
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] [API add] pygtkcompat: Add more pixbuf creation functions
- Date: Tue, 31 Jul 2012 06:56:58 +0000 (UTC)
commit 6e84a3052667fdc88c2081e20cc6dc3257ec9d6c
Author: Simon Feltman <s feltman gmail com>
Date: Mon Jul 30 02:00:16 2012 -0700
[API add] pygtkcompat: Add more pixbuf creation functions
Add the following functions:
pixbuf_new_from_data
pixbuf_new_from_file_at_scale
pixbuf_new_from_file_at_size
pixbuf_new_from_inline
pixbuf_new_from_stream
pixbuf_new_from_stream_at_scale
pixbuf_new_from_xpm_data
pixbuf_get_file_info
https://bugzilla.gnome.org/show_bug.cgi?id=680814
gi/pygtkcompat.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygtkcompat.py b/gi/pygtkcompat.py
index 550d21e..4bb8776 100644
--- a/gi/pygtkcompat.py
+++ b/gi/pygtkcompat.py
@@ -131,8 +131,16 @@ def enable_gtk(version='2.0'):
Gdk.screen_get_default = Gdk.Screen.get_default
Gdk.Pixbuf = GdkPixbuf.Pixbuf
- Gdk.pixbuf_new_from_file = GdkPixbuf.Pixbuf.new_from_file
Gdk.PixbufLoader = GdkPixbuf.PixbufLoader.new_with_type
+ Gdk.pixbuf_new_from_data = GdkPixbuf.Pixbuf.new_from_data
+ Gdk.pixbuf_new_from_file = GdkPixbuf.Pixbuf.new_from_file
+ Gdk.pixbuf_new_from_file_at_scale = GdkPixbuf.Pixbuf.new_from_file_at_scale
+ Gdk.pixbuf_new_from_file_at_size = GdkPixbuf.Pixbuf.new_from_file_at_size
+ Gdk.pixbuf_new_from_inline = GdkPixbuf.Pixbuf.new_from_inline
+ Gdk.pixbuf_new_from_stream = GdkPixbuf.Pixbuf.new_from_stream
+ Gdk.pixbuf_new_from_stream_at_scale = GdkPixbuf.Pixbuf.new_from_stream_at_scale
+ Gdk.pixbuf_new_from_xpm_data = GdkPixbuf.Pixbuf.new_from_xpm_data
+ Gdk.pixbuf_get_file_info = GdkPixbuf.Pixbuf.get_file_info
orig_get_formats = GdkPixbuf.Pixbuf.get_formats
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]