gdk_pixbuf2 3.0.9-x64-mingw32 → 3.1.0-x64-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +4 -2
  3. data/lib/gdk_pixbuf2/loader.rb +0 -6
  4. data/lib/gdk_pixbuf2/pixbuf.rb +13 -0
  5. data/test/run-test.rb +2 -0
  6. data/test/test-pixbuf.rb +3 -0
  7. data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
  8. data/vendor/local/bin/gdk-pixbuf-pixdata.exe +0 -0
  9. data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
  10. data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
  11. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +23 -4
  12. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +83 -5
  13. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +7 -0
  14. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +8 -4
  15. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +24 -10
  16. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +11 -0
  17. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +662 -0
  18. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +6 -0
  19. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +7 -0
  20. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +1 -0
  21. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +5 -5
  22. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +71 -71
  23. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
  24. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
  25. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
  26. data/vendor/local/lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
  27. data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
  28. data/vendor/local/lib/libgdk_pixbuf-2.0.la +2 -2
  29. data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
  30. data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +201 -3
  31. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +78 -78
  32. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +3 -3
  33. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +3 -3
  34. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +3 -3
  35. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +3 -3
  36. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +3 -3
  37. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +3 -3
  38. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +3 -3
  39. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-32.html +5 -5
  40. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-36.html +146 -0
  41. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +3 -3
  42. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +3 -3
  43. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +3 -3
  44. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +3 -3
  45. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +107 -3
  46. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +90 -90
  47. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +106 -106
  48. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +257 -99
  49. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +36 -35
  50. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +49 -49
  51. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +128 -73
  52. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +17 -17
  53. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +28 -28
  54. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +164 -75
  55. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +19 -19
  56. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +295 -6
  57. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +8 -8
  58. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +8 -8
  59. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +27 -27
  60. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +3 -3
  61. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +6 -6
  62. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +3 -3
  63. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +3 -3
  64. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +3 -3
  65. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +28 -0
  66. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +5 -4
  67. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +5 -5
  68. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +3 -3
  69. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +3 -3
  70. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  71. data/vendor/local/share/locale/cs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  72. data/vendor/local/share/locale/da/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  73. data/vendor/local/share/locale/de/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  74. data/vendor/local/share/locale/el/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  75. data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  76. data/vendor/local/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  77. data/vendor/local/share/locale/es/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  78. data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  79. data/vendor/local/share/locale/gl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  80. data/vendor/local/share/locale/he/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  81. data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  82. data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  83. data/vendor/local/share/locale/kk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  84. data/vendor/local/share/locale/km/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  85. data/vendor/local/share/locale/ko/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  86. data/vendor/local/share/locale/lt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  87. data/vendor/local/share/locale/lv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  88. data/vendor/local/share/locale/oc/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  89. data/vendor/local/share/locale/pl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  90. data/vendor/local/share/locale/pt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  91. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  92. data/vendor/local/share/locale/sk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  93. data/vendor/local/share/locale/sl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  94. data/vendor/local/share/locale/sr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  95. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  96. data/vendor/local/share/locale/sv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  97. data/vendor/local/share/locale/tr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  98. data/vendor/local/share/locale/ug/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  99. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  100. data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +2 -2
  101. data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +2 -2
  102. metadata +8 -7
  103. data/vendor/local/lib/gdk_pixbuf-2.0.def +0 -134
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9dddcd4aec62a5028fefe4704e15771b52f4ee4f
4
- data.tar.gz: d49df43d873fad244b108cf2ceea5a4015cea293
3
+ metadata.gz: 117a7e3aa451e6dde5f6228900e2d9817f5d4d1c
4
+ data.tar.gz: 9e615da26a40a850bf474dc28ccf17e7be85ec9b
5
5
  SHA512:
6
- metadata.gz: 60ccf457226a9758adf73908df5aba024c6cfad271178bbbd6e77011a00d5ec205adc6146309b70a16504f39fad7b2581651bab649eaf784eb32835c2d18f1c1
7
- data.tar.gz: d3002616069bcf3039d414b7bbc0e247e9d0128fd41b6b9537b5a1c7f55a5353e1a252afe097015e0739a9cf34e34ef78108fd0375d9ee109749e189db398459
6
+ metadata.gz: e355f09702f18ae512677e9f8615d9f90ba3ea4176b61da70d4260ec2d2ac0901ee7117d12f9ffea66392454a8e17a96b7134c0de67502bfaecc9d1c9329d368
7
+ data.tar.gz: 36c0438a953769d3d14b1cc8367161b0f5a317ff0edcc485ab1b6f288c356db8397675301255eb461fb060b98da3389c64a1e5320990bec0e0db808a04ef9e3f
data/Rakefile CHANGED
@@ -22,7 +22,9 @@ require "gnome2/rake/package-task"
22
22
  package_task = GNOME2::Rake::PackageTask.new do |package|
23
23
  package.summary = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
24
24
  package.description = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
25
- package.dependency.gem.runtime = ["glib2"]
25
+ package.dependency.gem.runtime = [
26
+ "gio2",
27
+ ]
26
28
  package.windows.packages = []
27
29
  package.windows.dependencies = []
28
30
  package.windows.build_dependencies = [
@@ -34,7 +36,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
34
36
  :name => "gdk-pixbuf",
35
37
  :download_site => :gnome,
36
38
  :label => "gdk-pixbuf",
37
- :version => "2.34.0",
39
+ :version => "2.36.0",
38
40
  :compression_method => "xz",
39
41
  :windows => {
40
42
  :configure_args => [
@@ -35,12 +35,6 @@ module GdkPixbuf
35
35
  require "gdk_pixbuf2/version"
36
36
  end
37
37
 
38
- def initialize_post(object)
39
- super
40
- return unless object.is_a?(GLib::Object)
41
- self.class.reference_gobject(object, :sink => true)
42
- end
43
-
44
38
  def define_constant(name, info)
45
39
  if /PIXBUF_/ =~ name
46
40
  name = $POSTMATCH
@@ -157,6 +157,19 @@ module GdkPixbuf
157
157
  end
158
158
  private :initialize_with_hash
159
159
 
160
+ if private_method_defined?(:initialize_new_from_file_utf8)
161
+ alias_method :initialize_new_from_file,
162
+ :initialize_new_from_file_utf8
163
+ end
164
+ if private_method_defined?(:initialize_new_from_file_at_size_utf8)
165
+ alias_method :initialize_new_from_file_at_size,
166
+ :initialize_new_from_file_at_size_utf8
167
+ end
168
+ if private_method_defined?(:initialize_new_from_file_at_scale_utf8)
169
+ alias_method :initialize_new_from_file_at_scale,
170
+ :initialize_new_from_file_at_scale_utf8
171
+ end
172
+
160
173
  def dup
161
174
  copy
162
175
  end
data/test/run-test.rb CHANGED
@@ -20,11 +20,13 @@ ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
20
20
  ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
21
21
 
22
22
  glib_base = File.join(ruby_gnome2_base, "glib2")
23
+ gio2_base = File.join(ruby_gnome2_base, "gio2")
23
24
  gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
24
25
  gdk_pixbuf2_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
25
26
 
26
27
  modules = [
27
28
  [glib_base, "glib2"],
29
+ [gio2_base, "gio2"],
28
30
  [gobject_introspection_base, "gobject-introspection"],
29
31
  [gdk_pixbuf2_base, "gdk_pixbuf2"],
30
32
  ]
data/test/test-pixbuf.rb CHANGED
@@ -322,6 +322,9 @@ class TestPixbuf < Test::Unit::TestCase
322
322
  end
323
323
 
324
324
  test "normal usage" do
325
+ if /\Ai\d86-/ === RUBY_PLATFORM
326
+ omit("floating point calculation result is different on i386")
327
+ end
325
328
  src_pixbuf = GdkPixbuf::Pixbuf.new(fixture_path("gnome-logo-icon.png"))
326
329
  pixbuf = src_pixbuf.saturate_and_pixelate(0, true)
327
330
  ref = saturate_and_pixelate_pixels(src_pixbuf, 0, true)
@@ -38,7 +38,7 @@ G_BEGIN_DECLS
38
38
 
39
39
  /**
40
40
  * GdkPixbufAnimation:
41
- *
41
+ *
42
42
  * An opaque struct representing an animation.
43
43
  */
44
44
  typedef struct _GdkPixbufAnimation GdkPixbufAnimation;
@@ -46,7 +46,7 @@ typedef struct _GdkPixbufAnimation GdkPixbufAnimation;
46
46
 
47
47
  /**
48
48
  * GdkPixbufAnimationIter:
49
- *
49
+ *
50
50
  * An opaque struct representing an iterator which points to a
51
51
  * certain position in an animation.
52
52
  */
@@ -60,6 +60,7 @@ typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter;
60
60
  #define GDK_PIXBUF_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_ANIMATION_ITER, GdkPixbufAnimationIter))
61
61
  #define GDK_IS_PIXBUF_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_ANIMATION_ITER))
62
62
 
63
+ GDK_PIXBUF_AVAILABLE_IN_ALL
63
64
  GType gdk_pixbuf_animation_get_type (void) G_GNUC_CONST;
64
65
 
65
66
  #ifndef __GTK_DOC_IGNORE__
@@ -68,38 +69,54 @@ GType gdk_pixbuf_animation_get_type (void) G_GNUC_CONST;
68
69
  #endif
69
70
  #endif
70
71
 
72
+ GDK_PIXBUF_AVAILABLE_IN_ALL
71
73
  GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename,
72
74
  GError **error);
75
+ GDK_PIXBUF_AVAILABLE_IN_2_28
73
76
  GdkPixbufAnimation *gdk_pixbuf_animation_new_from_stream (GInputStream *stream,
74
77
  GCancellable *cancellable,
75
78
  GError **error);
79
+ GDK_PIXBUF_AVAILABLE_IN_2_28
76
80
  void gdk_pixbuf_animation_new_from_stream_async (GInputStream *stream,
77
81
  GCancellable *cancellable,
78
82
  GAsyncReadyCallback callback,
79
83
  gpointer user_data);
84
+ GDK_PIXBUF_AVAILABLE_IN_2_28
80
85
  GdkPixbufAnimation *gdk_pixbuf_animation_new_from_stream_finish (GAsyncResult*async_result,
81
86
  GError **error);
87
+ GDK_PIXBUF_AVAILABLE_IN_2_28
82
88
  GdkPixbufAnimation *gdk_pixbuf_animation_new_from_resource(const char *resource_path,
83
89
  GError **error);
84
90
 
85
91
  #ifndef GDK_PIXBUF_DISABLE_DEPRECATED
86
- G_DEPRECATED_FOR(g_object_ref)
92
+
93
+ GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(g_object_ref)
87
94
  GdkPixbufAnimation *gdk_pixbuf_animation_ref (GdkPixbufAnimation *animation);
88
- G_DEPRECATED_FOR(g_object_unref)
95
+ GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(g_object_unref)
89
96
  void gdk_pixbuf_animation_unref (GdkPixbufAnimation *animation);
90
97
  #endif
91
98
 
99
+ GDK_PIXBUF_AVAILABLE_IN_ALL
92
100
  int gdk_pixbuf_animation_get_width (GdkPixbufAnimation *animation);
101
+ GDK_PIXBUF_AVAILABLE_IN_ALL
93
102
  int gdk_pixbuf_animation_get_height (GdkPixbufAnimation *animation);
103
+ GDK_PIXBUF_AVAILABLE_IN_ALL
94
104
  gboolean gdk_pixbuf_animation_is_static_image (GdkPixbufAnimation *animation);
105
+ GDK_PIXBUF_AVAILABLE_IN_ALL
95
106
  GdkPixbuf *gdk_pixbuf_animation_get_static_image (GdkPixbufAnimation *animation);
96
107
 
108
+ GDK_PIXBUF_AVAILABLE_IN_ALL
97
109
  GdkPixbufAnimationIter *gdk_pixbuf_animation_get_iter (GdkPixbufAnimation *animation,
98
110
  const GTimeVal *start_time);
111
+ GDK_PIXBUF_AVAILABLE_IN_ALL
99
112
  GType gdk_pixbuf_animation_iter_get_type (void) G_GNUC_CONST;
113
+ GDK_PIXBUF_AVAILABLE_IN_ALL
100
114
  int gdk_pixbuf_animation_iter_get_delay_time (GdkPixbufAnimationIter *iter);
115
+ GDK_PIXBUF_AVAILABLE_IN_ALL
101
116
  GdkPixbuf *gdk_pixbuf_animation_iter_get_pixbuf (GdkPixbufAnimationIter *iter);
117
+ GDK_PIXBUF_AVAILABLE_IN_ALL
102
118
  gboolean gdk_pixbuf_animation_iter_on_currently_loading_frame (GdkPixbufAnimationIter *iter);
119
+ GDK_PIXBUF_AVAILABLE_IN_ALL
103
120
  gboolean gdk_pixbuf_animation_iter_advance (GdkPixbufAnimationIter *iter,
104
121
  const GTimeVal *current_time);
105
122
 
@@ -194,7 +211,9 @@ struct _GdkPixbufAnimationIterClass {
194
211
  };
195
212
 
196
213
 
214
+ GDK_PIXBUF_AVAILABLE_IN_ALL
197
215
  GType gdk_pixbuf_non_anim_get_type (void) G_GNUC_CONST;
216
+ GDK_PIXBUF_AVAILABLE_IN_ALL
198
217
  GdkPixbufAnimation* gdk_pixbuf_non_anim_new (GdkPixbuf *pixbuf);
199
218
 
200
219
  #endif /* GDK_PIXBUF_ENABLE_BACKEND */
@@ -32,6 +32,8 @@
32
32
  #include <glib-object.h>
33
33
  #include <gio/gio.h>
34
34
 
35
+ #include <gdk-pixbuf/gdk-pixbuf-macros.h>
36
+
35
37
  G_BEGIN_DECLS
36
38
 
37
39
  /**
@@ -213,50 +215,67 @@ typedef enum {
213
215
  GDK_PIXBUF_ERROR_INCOMPLETE_ANIMATION
214
216
  } GdkPixbufError;
215
217
 
218
+ GDK_PIXBUF_AVAILABLE_IN_ALL
216
219
  GQuark gdk_pixbuf_error_quark (void);
217
220
 
218
221
 
219
222
 
223
+ GDK_PIXBUF_AVAILABLE_IN_ALL
220
224
  GType gdk_pixbuf_get_type (void) G_GNUC_CONST;
221
225
 
222
226
  /* Reference counting */
223
227
 
224
228
  #ifndef GDK_PIXBUF_DISABLE_DEPRECATED
225
- G_DEPRECATED_FOR(g_object_ref)
229
+ GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(g_object_ref)
226
230
  GdkPixbuf *gdk_pixbuf_ref (GdkPixbuf *pixbuf);
227
- G_DEPRECATED_FOR(g_object_unref)
231
+ GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(g_object_unref)
228
232
  void gdk_pixbuf_unref (GdkPixbuf *pixbuf);
229
233
  #endif
230
234
 
231
235
  /* GdkPixbuf accessors */
232
236
 
237
+ GDK_PIXBUF_AVAILABLE_IN_ALL
233
238
  GdkColorspace gdk_pixbuf_get_colorspace (const GdkPixbuf *pixbuf);
239
+ GDK_PIXBUF_AVAILABLE_IN_ALL
234
240
  int gdk_pixbuf_get_n_channels (const GdkPixbuf *pixbuf);
241
+ GDK_PIXBUF_AVAILABLE_IN_ALL
235
242
  gboolean gdk_pixbuf_get_has_alpha (const GdkPixbuf *pixbuf);
243
+ GDK_PIXBUF_AVAILABLE_IN_ALL
236
244
  int gdk_pixbuf_get_bits_per_sample (const GdkPixbuf *pixbuf);
245
+ GDK_PIXBUF_AVAILABLE_IN_ALL
237
246
  guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf);
247
+ GDK_PIXBUF_AVAILABLE_IN_ALL
238
248
  int gdk_pixbuf_get_width (const GdkPixbuf *pixbuf);
249
+ GDK_PIXBUF_AVAILABLE_IN_ALL
239
250
  int gdk_pixbuf_get_height (const GdkPixbuf *pixbuf);
251
+ GDK_PIXBUF_AVAILABLE_IN_ALL
240
252
  int gdk_pixbuf_get_rowstride (const GdkPixbuf *pixbuf);
253
+ GDK_PIXBUF_AVAILABLE_IN_2_26
241
254
  gsize gdk_pixbuf_get_byte_length (const GdkPixbuf *pixbuf);
242
255
 
256
+ GDK_PIXBUF_AVAILABLE_IN_2_26
243
257
  guchar *gdk_pixbuf_get_pixels_with_length (const GdkPixbuf *pixbuf,
244
258
  guint *length);
245
259
 
260
+ GDK_PIXBUF_AVAILABLE_IN_2_32
246
261
  const guint8* gdk_pixbuf_read_pixels (const GdkPixbuf *pixbuf);
262
+ GDK_PIXBUF_AVAILABLE_IN_2_32
247
263
  GBytes * gdk_pixbuf_read_pixel_bytes (const GdkPixbuf *pixbuf);
248
264
 
249
265
 
250
266
 
251
267
  /* Create a blank pixbuf with an optimal rowstride and a new buffer */
268
+
269
+ GDK_PIXBUF_AVAILABLE_IN_ALL
252
270
  GdkPixbuf *gdk_pixbuf_new (GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample,
253
271
  int width, int height);
254
272
 
255
273
  /* Copy a pixbuf */
256
-
274
+ GDK_PIXBUF_AVAILABLE_IN_ALL
257
275
  GdkPixbuf *gdk_pixbuf_copy (const GdkPixbuf *pixbuf);
258
276
 
259
277
  /* Create a pixbuf which points to the pixels of another pixbuf */
278
+ GDK_PIXBUF_AVAILABLE_IN_ALL
260
279
  GdkPixbuf *gdk_pixbuf_new_subpixbuf (GdkPixbuf *src_pixbuf,
261
280
  int src_x,
262
281
  int src_y,
@@ -274,25 +293,31 @@ GdkPixbuf *gdk_pixbuf_new_subpixbuf (GdkPixbuf *src_pixbuf,
274
293
  #endif
275
294
  #endif
276
295
 
296
+ GDK_PIXBUF_AVAILABLE_IN_ALL
277
297
  GdkPixbuf *gdk_pixbuf_new_from_file (const char *filename,
278
298
  GError **error);
299
+ GDK_PIXBUF_AVAILABLE_IN_2_4
279
300
  GdkPixbuf *gdk_pixbuf_new_from_file_at_size (const char *filename,
280
301
  int width,
281
302
  int height,
282
303
  GError **error);
304
+ GDK_PIXBUF_AVAILABLE_IN_2_6
283
305
  GdkPixbuf *gdk_pixbuf_new_from_file_at_scale (const char *filename,
284
306
  int width,
285
307
  int height,
286
308
  gboolean preserve_aspect_ratio,
287
309
  GError **error);
310
+ GDK_PIXBUF_AVAILABLE_IN_2_26
288
311
  GdkPixbuf *gdk_pixbuf_new_from_resource (const char *resource_path,
289
312
  GError **error);
313
+ GDK_PIXBUF_AVAILABLE_IN_2_26
290
314
  GdkPixbuf *gdk_pixbuf_new_from_resource_at_scale (const char *resource_path,
291
315
  int width,
292
316
  int height,
293
317
  gboolean preserve_aspect_ratio,
294
318
  GError **error);
295
319
 
320
+ GDK_PIXBUF_AVAILABLE_IN_ALL
296
321
  GdkPixbuf *gdk_pixbuf_new_from_data (const guchar *data,
297
322
  GdkColorspace colorspace,
298
323
  gboolean has_alpha,
@@ -302,17 +327,19 @@ GdkPixbuf *gdk_pixbuf_new_from_data (const guchar *data,
302
327
  GdkPixbufDestroyNotify destroy_fn,
303
328
  gpointer destroy_fn_data);
304
329
 
330
+ GDK_PIXBUF_AVAILABLE_IN_2_32
305
331
  GdkPixbuf *gdk_pixbuf_new_from_bytes (GBytes *data,
306
332
  GdkColorspace colorspace,
307
333
  gboolean has_alpha,
308
334
  int bits_per_sample,
309
335
  int width, int height,
310
336
  int rowstride);
311
-
337
+
338
+ GDK_PIXBUF_AVAILABLE_IN_ALL
312
339
  GdkPixbuf *gdk_pixbuf_new_from_xpm_data (const char **data);
313
340
 
314
341
  #ifndef GDK_PIXBUF_DISABLE_DEPRECATED
315
- G_DEPRECATED
342
+ GDK_PIXBUF_DEPRECATED_IN_2_32
316
343
  GdkPixbuf* gdk_pixbuf_new_from_inline (gint data_length,
317
344
  const guint8 *data,
318
345
  gboolean copy_pixels,
@@ -320,6 +347,7 @@ GdkPixbuf* gdk_pixbuf_new_from_inline (gint data_length,
320
347
  #endif
321
348
 
322
349
  /* Mutations */
350
+ GDK_PIXBUF_AVAILABLE_IN_ALL
323
351
  void gdk_pixbuf_fill (GdkPixbuf *pixbuf,
324
352
  guint32 pixel);
325
353
 
@@ -333,12 +361,14 @@ void gdk_pixbuf_fill (GdkPixbuf *pixbuf,
333
361
  #endif
334
362
  #endif
335
363
 
364
+ GDK_PIXBUF_AVAILABLE_IN_ALL
336
365
  gboolean gdk_pixbuf_save (GdkPixbuf *pixbuf,
337
366
  const char *filename,
338
367
  const char *type,
339
368
  GError **error,
340
369
  ...) G_GNUC_NULL_TERMINATED;
341
370
 
371
+ GDK_PIXBUF_AVAILABLE_IN_ALL
342
372
  gboolean gdk_pixbuf_savev (GdkPixbuf *pixbuf,
343
373
  const char *filename,
344
374
  const char *type,
@@ -372,6 +402,7 @@ typedef gboolean (*GdkPixbufSaveFunc) (const gchar *buf,
372
402
  GError **error,
373
403
  gpointer data);
374
404
 
405
+ GDK_PIXBUF_AVAILABLE_IN_2_4
375
406
  gboolean gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf,
376
407
  GdkPixbufSaveFunc save_func,
377
408
  gpointer user_data,
@@ -379,6 +410,7 @@ gboolean gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf,
379
410
  GError **error,
380
411
  ...) G_GNUC_NULL_TERMINATED;
381
412
 
413
+ GDK_PIXBUF_AVAILABLE_IN_2_4
382
414
  gboolean gdk_pixbuf_save_to_callbackv (GdkPixbuf *pixbuf,
383
415
  GdkPixbufSaveFunc save_func,
384
416
  gpointer user_data,
@@ -389,6 +421,7 @@ gboolean gdk_pixbuf_save_to_callbackv (GdkPixbuf *pixbuf,
389
421
 
390
422
  /* Saving into a newly allocated char array */
391
423
 
424
+ GDK_PIXBUF_AVAILABLE_IN_2_4
392
425
  gboolean gdk_pixbuf_save_to_buffer (GdkPixbuf *pixbuf,
393
426
  gchar **buffer,
394
427
  gsize *buffer_size,
@@ -396,6 +429,7 @@ gboolean gdk_pixbuf_save_to_buffer (GdkPixbuf *pixbuf,
396
429
  GError **error,
397
430
  ...) G_GNUC_NULL_TERMINATED;
398
431
 
432
+ GDK_PIXBUF_AVAILABLE_IN_2_4
399
433
  gboolean gdk_pixbuf_save_to_bufferv (GdkPixbuf *pixbuf,
400
434
  gchar **buffer,
401
435
  gsize *buffer_size,
@@ -404,18 +438,22 @@ gboolean gdk_pixbuf_save_to_bufferv (GdkPixbuf *pixbuf,
404
438
  char **option_values,
405
439
  GError **error);
406
440
 
441
+ GDK_PIXBUF_AVAILABLE_IN_2_14
407
442
  GdkPixbuf *gdk_pixbuf_new_from_stream (GInputStream *stream,
408
443
  GCancellable *cancellable,
409
444
  GError **error);
410
445
 
446
+ GDK_PIXBUF_AVAILABLE_IN_ALL
411
447
  void gdk_pixbuf_new_from_stream_async (GInputStream *stream,
412
448
  GCancellable *cancellable,
413
449
  GAsyncReadyCallback callback,
414
450
  gpointer user_data);
415
451
 
452
+ GDK_PIXBUF_AVAILABLE_IN_ALL
416
453
  GdkPixbuf *gdk_pixbuf_new_from_stream_finish (GAsyncResult *async_result,
417
454
  GError **error);
418
455
 
456
+ GDK_PIXBUF_AVAILABLE_IN_2_14
419
457
  GdkPixbuf *gdk_pixbuf_new_from_stream_at_scale (GInputStream *stream,
420
458
  gint width,
421
459
  gint height,
@@ -423,6 +461,7 @@ GdkPixbuf *gdk_pixbuf_new_from_stream_at_scale (GInputStream *stream,
423
461
  GCancellable *cancellable,
424
462
  GError **error);
425
463
 
464
+ GDK_PIXBUF_AVAILABLE_IN_ALL
426
465
  void gdk_pixbuf_new_from_stream_at_scale_async (GInputStream *stream,
427
466
  gint width,
428
467
  gint height,
@@ -431,6 +470,7 @@ void gdk_pixbuf_new_from_stream_at_scale_async (GInputStream *stream,
431
470
  GAsyncReadyCallback callback,
432
471
  gpointer user_data);
433
472
 
473
+ GDK_PIXBUF_AVAILABLE_IN_2_14
434
474
  gboolean gdk_pixbuf_save_to_stream (GdkPixbuf *pixbuf,
435
475
  GOutputStream *stream,
436
476
  const char *type,
@@ -438,6 +478,7 @@ gboolean gdk_pixbuf_save_to_stream (GdkPixbuf *pixbuf,
438
478
  GError **error,
439
479
  ...);
440
480
 
481
+ GDK_PIXBUF_AVAILABLE_IN_ALL
441
482
  void gdk_pixbuf_save_to_stream_async (GdkPixbuf *pixbuf,
442
483
  GOutputStream *stream,
443
484
  const gchar *type,
@@ -446,14 +487,36 @@ void gdk_pixbuf_save_to_stream_async (GdkPixbuf *pixbuf,
446
487
  gpointer user_data,
447
488
  ...);
448
489
 
490
+ GDK_PIXBUF_AVAILABLE_IN_ALL
449
491
  gboolean gdk_pixbuf_save_to_stream_finish (GAsyncResult *async_result,
450
492
  GError **error);
451
493
 
494
+ GDK_PIXBUF_AVAILABLE_IN_2_36
495
+ void gdk_pixbuf_save_to_streamv_async (GdkPixbuf *pixbuf,
496
+ GOutputStream *stream,
497
+ const gchar *type,
498
+ gchar **option_keys,
499
+ gchar **option_values,
500
+ GCancellable *cancellable,
501
+ GAsyncReadyCallback callback,
502
+ gpointer user_data);
503
+
504
+ GDK_PIXBUF_AVAILABLE_IN_2_36
505
+ gboolean gdk_pixbuf_save_to_streamv (GdkPixbuf *pixbuf,
506
+ GOutputStream *stream,
507
+ const char *type,
508
+ char **option_keys,
509
+ char **option_values,
510
+ GCancellable *cancellable,
511
+ GError **error);
512
+
452
513
  /* Adding an alpha channel */
514
+ GDK_PIXBUF_AVAILABLE_IN_ALL
453
515
  GdkPixbuf *gdk_pixbuf_add_alpha (const GdkPixbuf *pixbuf, gboolean substitute_color,
454
516
  guchar r, guchar g, guchar b);
455
517
 
456
518
  /* Copy an area of a pixbuf onto another one */
519
+ GDK_PIXBUF_AVAILABLE_IN_ALL
457
520
  void gdk_pixbuf_copy_area (const GdkPixbuf *src_pixbuf,
458
521
  int src_x, int src_y,
459
522
  int width, int height,
@@ -461,17 +524,32 @@ void gdk_pixbuf_copy_area (const GdkPixbuf *src_pixbuf,
461
524
  int dest_x, int dest_y);
462
525
 
463
526
  /* Brighten/darken and optionally make it pixelated-looking */
527
+ GDK_PIXBUF_AVAILABLE_IN_ALL
464
528
  void gdk_pixbuf_saturate_and_pixelate (const GdkPixbuf *src,
465
529
  GdkPixbuf *dest,
466
530
  gfloat saturation,
467
531
  gboolean pixelate);
468
532
 
469
533
  /* Transform an image to agree with its embedded orientation option / tag */
534
+ GDK_PIXBUF_AVAILABLE_IN_2_12
470
535
  GdkPixbuf *gdk_pixbuf_apply_embedded_orientation (GdkPixbuf *src);
471
536
 
537
+ /* key/value pairs that can be attached by the pixbuf loader */
538
+ GDK_PIXBUF_AVAILABLE_IN_ALL
539
+ gboolean gdk_pixbuf_set_option (GdkPixbuf *pixbuf,
540
+ const gchar *key,
541
+ const gchar *value);
542
+ GDK_PIXBUF_AVAILABLE_IN_ALL
472
543
  const gchar * gdk_pixbuf_get_option (GdkPixbuf *pixbuf,
473
544
  const gchar *key);
545
+ GDK_PIXBUF_AVAILABLE_IN_2_36
546
+ gboolean gdk_pixbuf_remove_option (GdkPixbuf *pixbuf,
547
+ const gchar *key);
548
+ GDK_PIXBUF_AVAILABLE_IN_2_32
474
549
  GHashTable * gdk_pixbuf_get_options (GdkPixbuf *pixbuf);
550
+ GDK_PIXBUF_AVAILABLE_IN_2_36
551
+ gboolean gdk_pixbuf_copy_options (GdkPixbuf *src_pixbuf,
552
+ GdkPixbuf *dest_pixbuf);
475
553
 
476
554
 
477
555
  G_END_DECLS