gdk_pixbuf2 3.0.8-x86-mingw32 → 3.0.9-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/lib/gdk_pixbuf2.rb +11 -69
  4. data/lib/gdk_pixbuf2/deprecated.rb +160 -0
  5. data/lib/gdk_pixbuf2/loader.rb +51 -0
  6. data/lib/gdk_pixbuf2/pixbuf-loader.rb +24 -0
  7. data/lib/gdk_pixbuf2/pixbuf.rb +282 -0
  8. data/lib/gdk_pixbuf2/version.rb +33 -0
  9. data/sample/anim.rb +2 -2
  10. data/sample/composite.rb +41 -11
  11. data/sample/flip.rb +2 -2
  12. data/sample/format.rb +2 -4
  13. data/sample/loader.rb +3 -3
  14. data/sample/rotate.rb +4 -4
  15. data/sample/save.rb +3 -3
  16. data/sample/scale.rb +14 -6
  17. data/sample/simpleanim.rb +10 -4
  18. data/sample/utils.rb +7 -4
  19. data/sample/xpm.rb +9 -9
  20. data/test/fixture/floppybuddy.gif +0 -0
  21. data/test/fixture/gnome-logo-icon.png +0 -0
  22. data/test/fixture/image.gresource +0 -0
  23. data/test/fixture/image.gresource.xml +6 -0
  24. data/test/gdk_pixbuf2-test-utils.rb +11 -0
  25. data/test/run-test.rb +6 -3
  26. data/test/test-animation.rb +30 -0
  27. data/test/test-loader.rb +31 -0
  28. data/test/test-pixbuf.rb +334 -0
  29. data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
  30. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
  31. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
  32. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
  33. data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
  34. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +59 -59
  35. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +64 -64
  36. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +89 -89
  37. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +85 -85
  38. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +23 -23
  39. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +36 -36
  40. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +46 -46
  41. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +10 -10
  42. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +13 -13
  43. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +52 -52
  44. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +10 -10
  45. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +3 -3
  46. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +4 -4
  47. metadata +17 -25
  48. data/README +0 -29
  49. data/ext/gdk_pixbuf2/depend +0 -11
  50. data/ext/gdk_pixbuf2/extconf.rb +0 -68
  51. data/ext/gdk_pixbuf2/gdk_pixbuf2.def +0 -2
  52. data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +0 -179
  53. data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +0 -164
  54. data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +0 -737
  55. data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +0 -41
  56. data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +0 -42
  57. data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +0 -35
  58. data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +0 -93
  59. data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +0 -71
  60. data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +0 -53
  61. data/ext/gdk_pixbuf2/rbgdk-pixdata.c +0 -213
  62. data/extconf.rb +0 -49
  63. data/lib/2.2/gdk_pixbuf2.so +0 -0
  64. data/lib/2.3/gdk_pixbuf2.so +0 -0
  65. data/sample/inline.rb +0 -37
  66. data/sample/pixdata.rb +0 -39
  67. data/test/test-version.rb +0 -47
@@ -100,16 +100,16 @@ performed by these functions instead.</p>
100
100
  <a name="gdk-pixbuf-add-alpha"></a><h3>gdk_pixbuf_add_alpha ()</h3>
101
101
  <pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
102
102
  gdk_pixbuf_add_alpha (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
103
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> substitute_color</code></em>,
104
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> r</code></em>,
105
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> g</code></em>,
106
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> b</code></em>);</pre>
103
+ <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> substitute_color</code></em>,
104
+ <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> r</code></em>,
105
+ <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> g</code></em>,
106
+ <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> b</code></em>);</pre>
107
107
  <p>Takes an existing pixbuf and adds an alpha channel to it.
108
108
  If the existing pixbuf already had an alpha channel, the channel
109
109
  values are copied from the original; otherwise, the alpha channel
110
110
  is initialized to 255 (full opacity).</p>
111
111
  <p>If <em class="parameter"><code>substitute_color</code></em>
112
- is <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then the color specified by (<em class="parameter"><code>r</code></em>
112
+ is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then the color specified by (<em class="parameter"><code>r</code></em>
113
113
  , <em class="parameter"><code>g</code></em>
114
114
  , <em class="parameter"><code>b</code></em>
115
115
  ) will be
@@ -132,7 +132,7 @@ substitute color, all white pixels will become fully transparent.</p>
132
132
  <tr>
133
133
  <td class="parameter_name"><p>substitute_color</p></td>
134
134
  <td class="parameter_description"><p>Whether to set a color to zero opacity. If this
135
- is <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, then the (<em class="parameter"><code>r</code></em>
135
+ is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, then the (<em class="parameter"><code>r</code></em>
136
136
  , <em class="parameter"><code>g</code></em>
137
137
  , <em class="parameter"><code>b</code></em>
138
138
  ) arguments will be ignored.</p></td>
@@ -244,8 +244,8 @@ Therefore, you can not use this function to scroll a pixbuf.</p>
244
244
  <pre class="programlisting"><span class="returnvalue">void</span>
245
245
  gdk_pixbuf_saturate_and_pixelate (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *src</code></em>,
246
246
  <em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *dest</code></em>,
247
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> saturation</code></em>,
248
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> pixelate</code></em>);</pre>
247
+ <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> saturation</code></em>,
248
+ <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> pixelate</code></em>);</pre>
249
249
  <p>Modifies saturation and optionally pixelates <em class="parameter"><code>src</code></em>
250
250
  , placing the result in
251
251
  <em class="parameter"><code>dest</code></em>
@@ -257,7 +257,7 @@ gdk_pixbuf_saturate_and_pixelate (<em class="parameter"><code>const <a class="li
257
257
  saturation is reduced (the image turns toward grayscale); if greater than
258
258
  1.0, saturation is increased (the image gets more vivid colors). If <em class="parameter"><code>pixelate</code></em>
259
259
 
260
- is <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then pixels are faded in a checkerboard pattern to create a
260
+ is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then pixels are faded in a checkerboard pattern to create a
261
261
  pixelated image. <em class="parameter"><code>src</code></em>
262
262
  and <em class="parameter"><code>dest</code></em>
263
263
  must have the same image format, size, and
@@ -337,7 +337,7 @@ input pixbuf (with an increased reference count). </p>
337
337
  <a name="gdk-pixbuf-fill"></a><h3>gdk_pixbuf_fill ()</h3>
338
338
  <pre class="programlisting"><span class="returnvalue">void</span>
339
339
  gdk_pixbuf_fill (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
340
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> pixel</code></em>);</pre>
340
+ <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> pixel</code></em>);</pre>
341
341
  <p>Clears a pixbuf to the given RGBA value, converting the RGBA value into
342
342
  the pixbuf's pixel format. The alpha will be ignored if the pixbuf
343
343
  doesn't have an alpha channel.</p>
@@ -87,7 +87,7 @@ If the drawable is a window, the <em class="parameter"><code>cmap</code></em>
87
87
  argument will be ignored and the
88
88
  window's own colormap will be used instead.</p>
89
89
  <p>If the specified destination pixbuf <em class="parameter"><code>dest</code></em>
90
- is <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>, then this function will
90
+ is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>, then this function will
91
91
  create an RGB pixbuf with 8 bits per channel and no alpha, with the same size
92
92
  specified by the <em class="parameter"><code>width</code></em>
93
93
  and <em class="parameter"><code>height</code></em>
@@ -95,11 +95,11 @@ specified by the <em class="parameter"><code>width</code></em>
95
95
  and
96
96
  <em class="parameter"><code>dest_y</code></em>
97
97
  arguments must be specified as 0, otherwise the function will return
98
- <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>. If the specified destination pixbuf is not NULL and it contains alpha
98
+ <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>. If the specified destination pixbuf is not NULL and it contains alpha
99
99
  information, then the filled pixels will be set to full opacity.</p>
100
100
  <p>If the specified drawable is a pixmap, then the requested source rectangle
101
101
  must be completely contained within the pixmap, otherwise the function will
102
- return <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>.</p>
102
+ return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>.</p>
103
103
  <p>If the specified drawable is a window, then it must be viewable, i.e. all of
104
104
  its ancestors up to the root window must be mapped. Also, the specified
105
105
  source rectangle must be completely contained within the window and within
@@ -327,7 +327,7 @@ be one of the supported visual depths in the specified <em class="parameter"><co
327
327
  <div class="refsect2">
328
328
  <a name="xlib-rgb-xpixel-from-rgb"></a><h3>xlib_rgb_xpixel_from_rgb ()</h3>
329
329
  <pre class="programlisting">unsigned <span class="returnvalue">long</span>
330
- xlib_rgb_xpixel_from_rgb (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);</pre>
330
+ xlib_rgb_xpixel_from_rgb (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);</pre>
331
331
  <p>Converts an RGB triplet into the closest color that XlibRGB visual can
332
332
  handle.</p>
333
333
  <div class="refsect3">
@@ -356,7 +356,7 @@ XlibRGB visual and colormap.</p>
356
356
  <a name="xlib-rgb-gc-set-foreground"></a><h3>xlib_rgb_gc_set_foreground ()</h3>
357
357
  <pre class="programlisting"><span class="returnvalue">void</span>
358
358
  xlib_rgb_gc_set_foreground (<em class="parameter"><code><span class="type">GC</span> gc</code></em>,
359
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);</pre>
359
+ <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);</pre>
360
360
  <p>This is a convenience function to set the foreground of a GC from an RGB
361
361
  triplet. It calls <a class="link" href="gdk-pixbuf-XlibRGB.html#xlib-rgb-xpixel-from-rgb" title="xlib_rgb_xpixel_from_rgb ()"><code class="function">xlib_rgb_xpixel_from_rgb()</code></a> internally and uses the
362
362
  returned pixel value to set the GC's foreground.</p>
@@ -388,7 +388,7 @@ returned pixel value to set the GC's foreground.</p>
388
388
  <a name="xlib-rgb-gc-set-background"></a><h3>xlib_rgb_gc_set_background ()</h3>
389
389
  <pre class="programlisting"><span class="returnvalue">void</span>
390
390
  xlib_rgb_gc_set_background (<em class="parameter"><code><span class="type">GC</span> gc</code></em>,
391
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);</pre>
391
+ <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);</pre>
392
392
  <p>This is a convenience function to set the background of a GC from an RGB
393
393
  triplet. It calls <a class="link" href="gdk-pixbuf-XlibRGB.html#xlib-rgb-xpixel-from-rgb" title="xlib_rgb_xpixel_from_rgb ()"><code class="function">xlib_rgb_xpixel_from_rgb()</code></a> internally and uses the
394
394
  returned pixel value to set the GC's background.</p>
@@ -738,7 +738,7 @@ upper-left corner of the rectangular region to render.</p></td>
738
738
  <div class="refsect2">
739
739
  <a name="xlib-rgb-cmap-new"></a><h3>xlib_rgb_cmap_new ()</h3>
740
740
  <pre class="programlisting"><a class="link" href="gdk-pixbuf-XlibRGB.html#XlibRgbCmap" title="struct XlibRgbCmap"><span class="returnvalue">XlibRgbCmap</span></a> *
741
- xlib_rgb_cmap_new (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *colors</code></em>,
741
+ xlib_rgb_cmap_new (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *colors</code></em>,
742
742
  <em class="parameter"><code><span class="type">int</span> n_colors</code></em>);</pre>
743
743
  <p>FIXME</p>
744
744
  <div class="refsect3">
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdk_pixbuf2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.8
4
+ version: 3.0.9
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-03 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glib2
@@ -16,57 +16,49 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.8
19
+ version: 3.0.9
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.8
26
+ version: 3.0.9
27
27
  description: Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
28
28
  email: ruby-gnome2-devel-en@lists.sourceforge.net
29
29
  executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
- - README
34
33
  - Rakefile
35
- - ext/gdk_pixbuf2/depend
36
- - ext/gdk_pixbuf2/extconf.rb
37
- - ext/gdk_pixbuf2/gdk_pixbuf2.def
38
- - ext/gdk_pixbuf2/rbgdk-pixbuf-format.c
39
- - ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c
40
- - ext/gdk_pixbuf2/rbgdk-pixbuf.c
41
- - ext/gdk_pixbuf2/rbgdk-pixbuf.h
42
- - ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h
43
- - ext/gdk_pixbuf2/rbgdk-pixbuf2private.h
44
- - ext/gdk_pixbuf2/rbgdk-pixbufanimation.c
45
- - ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c
46
- - ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c
47
- - ext/gdk_pixbuf2/rbgdk-pixdata.c
48
- - extconf.rb
49
- - lib/2.2/gdk_pixbuf2.so
50
- - lib/2.3/gdk_pixbuf2.so
51
34
  - lib/gdk_pixbuf2.rb
35
+ - lib/gdk_pixbuf2/deprecated.rb
36
+ - lib/gdk_pixbuf2/loader.rb
37
+ - lib/gdk_pixbuf2/pixbuf-loader.rb
38
+ - lib/gdk_pixbuf2/pixbuf.rb
39
+ - lib/gdk_pixbuf2/version.rb
52
40
  - sample/anim.rb
53
41
  - sample/composite.rb
54
42
  - sample/flip.rb
55
43
  - sample/floppybuddy.gif
56
44
  - sample/format.rb
57
45
  - sample/gnome-foot.png
58
- - sample/inline.rb
59
46
  - sample/loader.rb
60
- - sample/pixdata.rb
61
47
  - sample/rotate.rb
62
48
  - sample/save.rb
63
49
  - sample/scale.rb
64
50
  - sample/simpleanim.rb
65
51
  - sample/utils.rb
66
52
  - sample/xpm.rb
53
+ - test/fixture/floppybuddy.gif
54
+ - test/fixture/gnome-logo-icon.png
55
+ - test/fixture/image.gresource
56
+ - test/fixture/image.gresource.xml
67
57
  - test/gdk_pixbuf2-test-utils.rb
68
58
  - test/run-test.rb
69
- - test/test-version.rb
59
+ - test/test-animation.rb
60
+ - test/test-loader.rb
61
+ - test/test-pixbuf.rb
70
62
  - vendor/local/bin/gdk-pixbuf-csource.exe
71
63
  - vendor/local/bin/gdk-pixbuf-pixdata.exe
72
64
  - vendor/local/bin/gdk-pixbuf-query-loaders.exe
@@ -262,7 +254,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
262
254
  requirements:
263
255
  - - ">="
264
256
  - !ruby/object:Gem::Version
265
- version: 1.9.3
257
+ version: 2.1.0
266
258
  required_rubygems_version: !ruby/object:Gem::Requirement
267
259
  requirements:
268
260
  - - ">="
data/README DELETED
@@ -1,29 +0,0 @@
1
- Ruby/GdkPixbuf2
2
- ===============
3
- Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
4
-
5
- Requirements
6
- ------------
7
- Ruby: http://www.ruby-lang.org/
8
- GTK+: http://www.gtk.org/
9
- Ruby/GLib2, Ruby/GTK2: http://ruby-gnome2.sourceforge.net/
10
-
11
- Install
12
- -------
13
- 0. install ruby-1.9.x or later, GTK+, Ruby/GLib2 and Ruby/GTK2.
14
- 1. ruby extconf.rb
15
- 2. make
16
- 3. su
17
- 4. make install
18
-
19
- Copying
20
- -------
21
- Copyright (c) 2002-2005 Ruby-GNOME2 Project Team
22
-
23
- This program is free software.
24
- You can distribute/modify this program under the terms of
25
- the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
26
-
27
- Project Website
28
- ---------------
29
- http://ruby-gnome2.sourceforge.jp/
@@ -1,11 +0,0 @@
1
- install-so: install-headers
2
- install-headers:
3
- $(INSTALL_DATA) $(srcdir)/rbgdk-pixbuf.h $(RUBYARCHDIR)
4
- $(INSTALL_DATA) $(srcdir)/rbgdk-pixbuf2conversions.h $(RUBYARCHDIR)
5
-
6
- install: install-pc
7
- install-pc:
8
- if test -n "$(pkgconfigdir)"; then \
9
- $(MAKEDIRS) $(pkgconfigdir); \
10
- $(INSTALL_DATA) ruby-gdk-pixbuf2.pc $(pkgconfigdir); \
11
- fi
@@ -1,68 +0,0 @@
1
- =begin
2
- extconf.rb for Ruby/GdkPixbuf2 extention library
3
- =end
4
-
5
- require 'pathname'
6
-
7
- base_dir = Pathname(__FILE__).dirname.parent.parent.expand_path
8
- top_dir = base_dir.parent
9
- top_build_dir = Pathname(".").parent.parent.parent.expand_path
10
-
11
- mkmf_gnome2_dir = top_dir + "glib2" + 'lib'
12
- version_suffix = ""
13
- unless mkmf_gnome2_dir.exist?
14
- if /(-\d+\.\d+\.\d+)(?:\.\d+)?\z/ =~ base_dir.basename.to_s
15
- version_suffix = $1
16
- mkmf_gnome2_dir = top_dir + "glib2#{version_suffix}" + 'lib'
17
- end
18
- end
19
-
20
- $LOAD_PATH.unshift(mkmf_gnome2_dir.to_s)
21
-
22
- module_name = "gdk_pixbuf2"
23
- package_id = "gdk-pixbuf-2.0"
24
-
25
- begin
26
- require 'mkmf-gnome2'
27
- rescue LoadError
28
- require 'rubygems'
29
- gem 'glib2'
30
- require 'mkmf-gnome2'
31
- end
32
-
33
- ["glib2"].each do |package|
34
- directory = "#{package}#{version_suffix}"
35
- build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
36
- add_depend_package(package, "#{directory}/ext/#{package}",
37
- top_dir.to_s,
38
- :top_build_dir => top_build_dir.to_s,
39
- :target_build_dir => build_dir)
40
- end
41
-
42
- setup_windows(module_name, base_dir)
43
-
44
- unless required_pkg_config_package(package_id,
45
- :altlinux => "gdk-pixbuf-devel",
46
- :debian => "libgdk-pixbuf2.0-dev",
47
- :redhat => "gtk2-devel",
48
- :fedora => "gdk-pixbuf2-devel",
49
- :arch => "gdk-pixbuf2",
50
- :homebrew => "gdk-pixbuf",
51
- :macports => "gdk-pixbuf2")
52
- exit(false)
53
- end
54
-
55
- have_func("gdk_pixbuf_set_option", "gdk-pixbuf/gdk-pixbuf.h") do |src|
56
- "#define GDK_PIXBUF_ENABLE_BACKEND\n#{src}"
57
- end
58
-
59
- create_pkg_config_file("Ruby/GdkPixbuf2", package_id, nil, "ruby-gdk-pixbuf2.pc")
60
- create_makefile(module_name)
61
-
62
- pkg_config_dir = with_config("pkg-config-dir")
63
- if pkg_config_dir.is_a?(String)
64
- File.open("Makefile", "ab") do |makefile|
65
- makefile.puts
66
- makefile.puts("pkgconfigdir=#{pkg_config_dir}")
67
- end
68
- end
@@ -1,2 +0,0 @@
1
- EXPORTS
2
- Init_gdk_pixbuf2
@@ -1,179 +0,0 @@
1
- /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
- * Copyright (C) 2004 Masao Mutoh
5
- *
6
- * This library is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU Lesser General Public
8
- * License as published by the Free Software Foundation; either
9
- * version 2.1 of the License, or (at your option) any later version.
10
- *
11
- * This library is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * Lesser General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU Lesser General Public
17
- * License along with this library; if not, write to the Free Software
18
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
- * MA 02110-1301 USA
20
- */
21
-
22
- #include "rbgdk-pixbuf2private.h"
23
- #if RBGDK_PIXBUF_CHECK_VERSION(2,2,0)
24
-
25
- #ifdef HAVE_GDK_PIXBUF_GDK_PIXBUF_IO_H
26
- #include <gdk-pixbuf/gdk-pixbuf-io.h>
27
- #endif
28
-
29
- #define RG_TARGET_NAMESPACE cPixbufFormat
30
- #define _SELF(r) (RVAL2GDKPIXBUFFORMAT(r))
31
-
32
- /**********************************/
33
- static GdkPixbufFormat*
34
- format_copy(const GdkPixbufFormat* val)
35
- {
36
- GdkPixbufFormat* new_val;
37
- g_return_val_if_fail (val != NULL, NULL);
38
- new_val = g_new(GdkPixbufFormat, 1);
39
- *new_val = *val;
40
- return new_val;
41
- }
42
-
43
- GType
44
- gdk_pixbuf_format_get_type(void)
45
- {
46
- static GType our_type = 0;
47
-
48
- if (our_type == 0)
49
- our_type = g_boxed_type_register_static ("GdkPixbufFormat",
50
- (GBoxedCopyFunc)format_copy,
51
- (GBoxedFreeFunc)g_free);
52
- return our_type;
53
- }
54
- /**********************************/
55
-
56
- /* Move to rbgdk-pixbuf.c
57
- gboolean gdk_pixbuf_set_option (GdkPixbuf *pixbuf,
58
- const gchar *key,
59
- const gchar *value);
60
- GSList* gdk_pixbuf_get_formats (void);
61
- */
62
-
63
- static VALUE
64
- rg_name(VALUE self)
65
- {
66
- return CSTR2RVAL_FREE(gdk_pixbuf_format_get_name(_SELF(self)));
67
- }
68
-
69
- static VALUE
70
- rg_description(VALUE self)
71
- {
72
- return CSTR2RVAL_FREE(gdk_pixbuf_format_get_description(_SELF(self)));
73
- }
74
-
75
- static VALUE
76
- rg_mime_types(VALUE self)
77
- {
78
- gint i = 0;
79
- gchar** mime_types = gdk_pixbuf_format_get_mime_types(_SELF(self));
80
- VALUE array = rb_ary_new();
81
- while(mime_types[i]){
82
- rb_ary_push(array, CSTR2RVAL(mime_types[i]));
83
- i++;
84
- }
85
- g_strfreev(mime_types);
86
- return array;
87
- }
88
-
89
- static VALUE
90
- rg_extensions(VALUE self)
91
- {
92
- gint i = 0;
93
- gchar** extensions = gdk_pixbuf_format_get_extensions(_SELF(self));
94
- VALUE array = rb_ary_new();
95
-
96
- while(extensions[i]){
97
- rb_ary_push(array, CSTR2RVAL(extensions[i]));
98
- i++;
99
- }
100
- g_strfreev(extensions);
101
- return array;
102
- }
103
-
104
- static VALUE
105
- rg_writable_p(VALUE self)
106
- {
107
- return CBOOL2RVAL(gdk_pixbuf_format_is_writable(_SELF(self)));
108
- }
109
-
110
- /* Structure */
111
- static VALUE
112
- rg_domain(VALUE self)
113
- {
114
- return CSTR2RVAL(_SELF(self)->domain);
115
- }
116
-
117
- static VALUE
118
- rg_signature(VALUE self)
119
- {
120
- GdkPixbufModulePattern* signature = _SELF(self)->signature;
121
-
122
- VALUE array = rb_ary_new();
123
- int i = 0;
124
- while(signature[i].prefix){
125
- rb_ary_push(array, rb_ary_new3(3, CSTR2RVAL((const char*)signature[i].prefix),
126
- CSTR2RVAL((const char*)signature[i].mask),
127
- INT2NUM(signature[i].relevance)));
128
- i++;
129
- }
130
- return array;
131
- }
132
- #endif
133
-
134
- #if RBGDK_PIXBUF_CHECK_VERSION(2,6,0)
135
- static VALUE
136
- rg_scalable_p(VALUE self)
137
- {
138
- return CBOOL2RVAL(gdk_pixbuf_format_is_scalable(_SELF(self)));
139
- }
140
- static VALUE
141
- rg_disabled_p(VALUE self)
142
- {
143
- return CBOOL2RVAL(gdk_pixbuf_format_is_disabled(_SELF(self)));
144
- }
145
- static VALUE
146
- rg_set_disabled(VALUE self, VALUE disabled)
147
- {
148
- gdk_pixbuf_format_set_disabled(_SELF(self), RVAL2CBOOL(disabled));
149
- return self;
150
- }
151
- static VALUE
152
- rg_license(VALUE self)
153
- {
154
- return CSTR2RVAL(gdk_pixbuf_format_get_license(_SELF(self)));
155
- }
156
- #endif
157
-
158
- void
159
- Init_gdk_pixbuf_format(VALUE mGdk)
160
- {
161
- #if RBGDK_PIXBUF_CHECK_VERSION(2,2,0)
162
- VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_PIXBUF_FORMAT, "PixbufFormat", mGdk);
163
-
164
- RG_DEF_METHOD(name, 0);
165
- RG_DEF_METHOD(description, 0);
166
- RG_DEF_METHOD(mime_types, 0);
167
- RG_DEF_METHOD(extensions, 0);
168
- RG_DEF_METHOD_P(writable, 0);
169
- RG_DEF_METHOD(domain, 0);
170
- RG_DEF_METHOD(signature, 0);
171
- #if RBGDK_PIXBUF_CHECK_VERSION(2,6,0)
172
- RG_DEF_METHOD_P(scalable, 0);
173
- RG_DEF_METHOD_P(disabled, 0);
174
- RG_DEF_METHOD(set_disabled, 1);
175
- RG_DEF_METHOD(license, 0);
176
-
177
- #endif
178
- #endif
179
- }