gdkpixbuf 0.20.0
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.
- data/ChangeLog +412 -0
- data/README +29 -0
- data/Rakefile +67 -0
- data/extconf.rb +44 -0
- data/lib/gdk_pixbuf2.rb +32 -0
- data/rbgdk-pixbuf-format.c +182 -0
- data/rbgdk-pixbuf-loader.c +164 -0
- data/rbgdk-pixbuf.c +794 -0
- data/rbgdk-pixbuf.h +34 -0
- data/rbgdk-pixbufanimation.c +144 -0
- data/rbgdk-pixbufsimpleanim.c +43 -0
- data/rbgdk-pixdata.c +221 -0
- data/sample/anim.rb +38 -0
- data/sample/composite.rb +45 -0
- data/sample/flip.rb +47 -0
- data/sample/floppybuddy.gif +0 -0
- data/sample/format.rb +39 -0
- data/sample/gnome-foot.png +0 -0
- data/sample/inline.rb +37 -0
- data/sample/loader.rb +20 -0
- data/sample/pixdata.rb +39 -0
- data/sample/rotate.rb +45 -0
- data/sample/save.rb +25 -0
- data/sample/scale.rb +45 -0
- data/sample/simpleanim.rb +34 -0
- data/sample/utils.rb +44 -0
- data/sample/xpm.rb +40 -0
- metadata +116 -0
data/ChangeLog
ADDED
@@ -0,0 +1,412 @@
|
|
1
|
+
2009-10-11 Michal Suchanek <hramrach@centrum.cz>
|
2
|
+
|
3
|
+
* rbgdk-pixbuf.c: add Gdk::Pixbuf#pixels=.
|
4
|
+
|
5
|
+
2009-05-31 Kouhei Sutou <kou@cozmixng.org>
|
6
|
+
|
7
|
+
* lib/gdk_pixbuf2.rb: use gem version rcairo as fallback.
|
8
|
+
Patch by OBATA Akio. Thanks!!!
|
9
|
+
|
10
|
+
2008-11-01 Kouhei Sutou <kou@cozmixng.org>
|
11
|
+
|
12
|
+
* ./: use RARRAY_PTR() and RARRAY_LEN().
|
13
|
+
|
14
|
+
2008-09-13 Kouhei Sutou <kou@cozmixng.org>
|
15
|
+
|
16
|
+
* extconf.rb: use check_cairo.
|
17
|
+
|
18
|
+
2008-06-11 Kouhei Sutou <kou@cozmixng.org>
|
19
|
+
|
20
|
+
* extconf.rb: include gdk-pixbuf/gdk-pixbuf.h in have_func test.
|
21
|
+
|
22
|
+
2008-04-13 Kouhei Sutou <kou@cozmixng.org>
|
23
|
+
|
24
|
+
* extconf.rb: fix rcairo's source path.
|
25
|
+
|
26
|
+
2007-12-28 Kouhei Sutou <kou@cozmixng.org>
|
27
|
+
|
28
|
+
* rbgdk-pixbuf.c (save, save_to_buffer):
|
29
|
+
- cosmetic.
|
30
|
+
- generalized.
|
31
|
+
|
32
|
+
* rbgdk-pixbuf-loader.c: used RSTRING_LEN instead of RSTRING()->len.
|
33
|
+
|
34
|
+
2007-07-13 Guillaume Cottenceau
|
35
|
+
|
36
|
+
* rbgdk-pixbuf-format.c, rbgdk-pixbuf.c, rbgdk-pixdata.c: replace
|
37
|
+
RTEST uses by RVAL2CBOOL
|
38
|
+
|
39
|
+
2007-07-13 Guillaume Cottenceau
|
40
|
+
|
41
|
+
* rbgdk-pixbuf-loader.c: "? Qtrue : QFalse" => CBOOL2RVAL cleanup
|
42
|
+
|
43
|
+
2007-07-12 Masao Mutoh <mutoh@highway.ne.jp>
|
44
|
+
|
45
|
+
* rbgdk-pixbuf.c: Revert the Gdk::Pixbuf#scale change.
|
46
|
+
|
47
|
+
2007-07-07 Guillaume Cottenceau
|
48
|
+
|
49
|
+
* rbgdk-pixbuf.c: fix multiple memory leaks
|
50
|
+
|
51
|
+
2007-07-07 Guillaume Cottenceau
|
52
|
+
|
53
|
+
* rbgdk-pixbuf.c: thse can return NULL
|
54
|
+
|
55
|
+
2007-07-07 Guillaume Cottenceau
|
56
|
+
|
57
|
+
* rbgdk-pixbuf.c: fix wrong order of arguments in using
|
58
|
+
gdk_pixbuf_scale
|
59
|
+
|
60
|
+
2007-07-07 Guillaume Cottenceau
|
61
|
+
|
62
|
+
* rbgdk-pixbuf.c: negative value for width or height in
|
63
|
+
gdk_pixbuf_new_from_file_at_scale only supported in gtk 2.8
|
64
|
+
|
65
|
+
2007-07-07 Guillaume Cottenceau
|
66
|
+
|
67
|
+
* rbgdk-pixbuf.c: slightly more general warning messages
|
68
|
+
|
69
|
+
2006-12-28 Masao Mutoh <mutoh@highway.ne.jp>
|
70
|
+
|
71
|
+
* rbgdk-pixbuf.c: Add a comment the change below.
|
72
|
+
|
73
|
+
2006-12-17 Kouhei Sutou <kou@cozmixng.org>
|
74
|
+
|
75
|
+
* extconf.rb, rbgdk-pixbuf.c, lib/gdk_pixbuf2.rb: moved
|
76
|
+
integration API of Gdk::Pixbuf and Cairo::Context from Ruby/GTK2.
|
77
|
+
|
78
|
+
2006-06-22 Guillaume Cottenceau
|
79
|
+
|
80
|
+
* rbgdk-pixbuf-loader.c: simplify code
|
81
|
+
|
82
|
+
2006-06-17 Masao Mutoh <mutoh@highway.ne.jp>
|
83
|
+
|
84
|
+
* sample/*.rb: Remove Gtk.init, Code cleanup.
|
85
|
+
|
86
|
+
2006-04-23 NISHI Takao
|
87
|
+
|
88
|
+
* rbgdk-pixdata.c: Gdk::Pixdata#length returns the size of pixel_data.
|
89
|
+
(length - GDK_PIXDATA_HEADER_LENGTH).
|
90
|
+
Gdk::Pixdata#pixel_data returns the data size of length -
|
91
|
+
GDK_PIXDATA_HEADER_LENGTH. [Patch#1473708]
|
92
|
+
|
93
|
+
2005-09-24 Guillaume Cottenceau
|
94
|
+
|
95
|
+
* rbgdk-pixbuf.c, rbgdk-pixbuf.h, rbgdk-pixbufsimpleanim.c,
|
96
|
+
sample/simpleanim.rb: 2.8: add Gdk::PixbufSimpleAnim with #new
|
97
|
+
and #add_frame
|
98
|
+
|
99
|
+
2005-09-18 Kouhei Sutou <kou@cozmixng.org>
|
100
|
+
|
101
|
+
* rbgdk-pixbuf.c (get_pixels): Fix pixels size.
|
102
|
+
|
103
|
+
2005-07-23 Masao Mutoh <mutoh@highway.ne.jp>
|
104
|
+
|
105
|
+
* rbgdk-pixbuf.c, rbgdk-pixbuf-loader.c, rbgdk-pixbuf-format.c:
|
106
|
+
Fix a compiling warning.
|
107
|
+
|
108
|
+
2005-03-22 Mirko Maischberger <mirko@lilik.it>
|
109
|
+
|
110
|
+
* sample/*.rb: sh-bang (!#) normalization.
|
111
|
+
Reported by Mezz
|
112
|
+
|
113
|
+
2005-03-06 Masao Mutoh <mutoh@highway.ne.jp>
|
114
|
+
|
115
|
+
* rbgdk-pixbuf-format.c: Fix a compilation problemn on GTK+-2.0.x.
|
116
|
+
* README: Revised.
|
117
|
+
|
118
|
+
2005-02-13 Masao Mutoh <mutoh@highway.ne.jp>
|
119
|
+
|
120
|
+
* rbgdk-pixbuf.c: Implement gdk_pixbuf_new_from_file_at_scale
|
121
|
+
as Gdk::Pixbuf.new.
|
122
|
+
* rbgdk-pixbuf-format.c: Added Gdk::PixbufFormat#scalable?,
|
123
|
+
#disable?, #set_disabled, #license.
|
124
|
+
* rbgdk-pixbuf.c: Added Gdk::Pixbuf#rotate, #flip for GTK+-2.6.
|
125
|
+
* sample/flip.rb, rotate.rb: Added.
|
126
|
+
|
127
|
+
2005-02-01 Masao Mutoh <mutoh@highway.ne.jp>
|
128
|
+
|
129
|
+
* extconf.rb: Use create_makefile_at_srcdir.
|
130
|
+
|
131
|
+
2005-01-30 Masao Mutoh <mutoh@highway.ne.jp>
|
132
|
+
|
133
|
+
* extconf.rb: Follow mkmf-gnome2.rb changes.
|
134
|
+
|
135
|
+
2004-12-16 leon breedt <bitserf@gmail.com>
|
136
|
+
|
137
|
+
* rbgdk-pixbuf-format.c, rbgdkpixbuf.h: Fix compilation problems.
|
138
|
+
|
139
|
+
2004-12-01 Masao Mutoh <mutoh@highway.ne.jp>
|
140
|
+
|
141
|
+
* rbgdk-pixbufanimation.c: Fix a wrong number of arguments for
|
142
|
+
Gdk::PixbufAnimationIter#advance.
|
143
|
+
* rbgdk-pixbuf.c: Fix memoryleak for Gdk::Pixbuf#add_alpha.
|
144
|
+
* rbgdk-pixbuf-loader.c: Undef Gdk::PixbufLoader#dup.
|
145
|
+
* rbgdk-pixbuf.c: Fix a compilation warning.
|
146
|
+
|
147
|
+
2004-11-30 Masao Mutoh <mutoh@highway.ne.jp>
|
148
|
+
|
149
|
+
* rbgdk-pixbuf-loader.c: Fix an error message.
|
150
|
+
|
151
|
+
2004-11-14 Masao Mutoh <mutoh@highway.ne.jp>
|
152
|
+
|
153
|
+
* rbgdk-pixbuf.c, rbgdk-pixbuf-format.c:
|
154
|
+
Fix compiling warning/error under GTK+-2.2.4.
|
155
|
+
* rbgdk-pixbuf-loader.c, extconf.rb: Support GTK+-2.0.x again.
|
156
|
+
|
157
|
+
2004-11-06 Geoff Youngs <g@intersect-uk.co.uk>
|
158
|
+
|
159
|
+
* rbgdk-pixbuf.c: Gdk::Pixbuf.get_file_info()
|
160
|
+
Return image width and height as well as the GdkPixbufFormat
|
161
|
+
|
162
|
+
2004-09-23 Masao Mutoh <mutoh@highway.ne.jp>
|
163
|
+
|
164
|
+
* lib/gdk_pixbuf2.rb: Improved log handling.
|
165
|
+
Added Gdk::Pixbuf::LOG_DOMAIN.
|
166
|
+
Rename GLib::Log.set_error_domain to GLib::Log.set_log_domain.
|
167
|
+
|
168
|
+
2004-08-29 Masao Mutoh <mutoh@highway.ne.jp>
|
169
|
+
|
170
|
+
* lib/gdk_pixbuf2.rb: Added Gdk::PixbufLoader.open.
|
171
|
+
* rbgdk-pixbuf-loader.c: Added Gdk::PixbufLoader#format, #set_size
|
172
|
+
for GTK+-2.2.
|
173
|
+
* rbgdk-pixbuf.c: Added Gdk::Pixbuf#save_to_buffer.
|
174
|
+
|
175
|
+
2004-08-28 Masao Mutoh <mutoh@highway.ne.jp>
|
176
|
+
|
177
|
+
* rbgdk-pixbuf.c: Added Gdk::Pixbuf.formats, Gdk::Pixbuf#set_option for GTK+-2.2.
|
178
|
+
* rbgdk-pixbuf-format.c, sample/format.rb: Added for GTK+-2.2.
|
179
|
+
* rbgdk-pixbuf.c: Added Gdk::Pixbuf.new(filename, width, height),
|
180
|
+
Gdk::Pixbuf.get_file_info for GTK+-2.4.
|
181
|
+
|
182
|
+
2004-08-19 Masao Mutoh <mutoh@highway.ne.jp>
|
183
|
+
|
184
|
+
* rbgdk-pixbuf.c: Improve error handling.
|
185
|
+
|
186
|
+
2004-08-14 Masao Mutoh <mutoh@highway.ne.jp>
|
187
|
+
|
188
|
+
* rbgdk-pixbufanimation.c: parameters of Gdk::PixbufAnimation#get_iter,
|
189
|
+
Gdk::PixbufAnimationIter#advance are changed.
|
190
|
+
* rbgdk-pixbuf.c: Remove Gdk::Pixbuf.new_subpixbuf and merge it to
|
191
|
+
Gdk::Pixbuf.new.
|
192
|
+
* sample/inline.rb, pixdata.rb: Added.
|
193
|
+
|
194
|
+
2004-08-13 Masao Mutoh <mutoh@highway.ne.jp>
|
195
|
+
|
196
|
+
* rbgdk-pixdata.c: Rename Gdk::Pixdata#pixbuf to Gdk::Pixdata#to_pixbuf.
|
197
|
+
Fix a bug of Gdk::Pixdata.deserialize, Gdk::Pixdata#pixel_data.
|
198
|
+
Fix a memory leak of Gdk::Pixdata.from_pixbuf.
|
199
|
+
|
200
|
+
2004-07-03 Masao Mutoh <mutoh@highway.ne.jp>
|
201
|
+
|
202
|
+
* rbgdk-pixbuf.c: Remove Gdk::Pixbuf::VERSION which causes a segfault
|
203
|
+
on Win32 and tml's GTK+-2.4.0. Pointed out by Laurent.
|
204
|
+
|
205
|
+
2003-12-20 Masao Mutoh <mutoh@highway.ne.jp>
|
206
|
+
|
207
|
+
* rbgdk-pixbuf.c: Fix lack of the data in Gdk::Pixbuf.pixels.
|
208
|
+
(Bugs [857123])
|
209
|
+
|
210
|
+
2003-10-14 KATO Kazuyoshi <kzys@users.sf.net>
|
211
|
+
|
212
|
+
* rbgdk-pixbuf.c: Add Gdk::Pixbuf#pixels.
|
213
|
+
|
214
|
+
2003-10-10 Masao Mutoh <mutoh@highway.ne.jp>
|
215
|
+
|
216
|
+
* rbgdk-pixbuf.c: Fix memory leaks of Gdk::Pixbuf#scale, #composite.
|
217
|
+
(Bugs [814787])
|
218
|
+
|
219
|
+
2003-10-07 Masao Mutoh <mutoh@highway.ne.jp>
|
220
|
+
|
221
|
+
* rbgdk-pixbuf.c: Retry once if Gdk::Pixbuf.new is failed.
|
222
|
+
|
223
|
+
2003-09-01 Masao Mutoh <mutoh@highway.ne.jp>
|
224
|
+
|
225
|
+
* rbgdk-pixbuf.c: Apply enum/flags.
|
226
|
+
|
227
|
+
2003-08-28 Masao Mutoh <mutoh@highway.ne.jp>
|
228
|
+
|
229
|
+
* extconf.rb: Exit with 1 when the package is not found.
|
230
|
+
|
231
|
+
2003-08-21 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
|
232
|
+
|
233
|
+
* rbgdk-pixbuf.c: use G_DEF_CONSTANTS() and define enum/flags classes.
|
234
|
+
|
235
|
+
2003-07-12 Masao Mutoh <mutoh@highway.ne.jp>
|
236
|
+
|
237
|
+
* rbgdk-pixbuf.c: Seprate Gdk::Pixbuf#scale to #scale and #scale!.
|
238
|
+
Separate Gdk::Pixbuf#composite to #composite and #composite!.
|
239
|
+
* sample/scale.rb, composite.rb: Follow changes.
|
240
|
+
* ChangeLog: Revise date format.
|
241
|
+
|
242
|
+
2003-07-10 Mikael Magnusson <mikma@users.sourceforge.net>
|
243
|
+
|
244
|
+
* rbgdk-pixbuf.c, sample/scale.rb, composite.rb:
|
245
|
+
Gdk::Pixbuf#scale and #composite accept destination pixbuf instead of nil.
|
246
|
+
|
247
|
+
2003-05-27 Masao Mutoh <mutoh@highway.ne.jp>
|
248
|
+
|
249
|
+
* extconf.rb: Follow mkmf-gnome2.rb position changes.
|
250
|
+
|
251
|
+
2003-05-02 Geoff Youngs <g@intersect-uk.co.uk>
|
252
|
+
|
253
|
+
* rbgdk-pixbuf.c: Bugfix for Gdk::Pixbuf#composite
|
254
|
+
|
255
|
+
2003-03-07 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
|
256
|
+
|
257
|
+
* rbgdk-pixbuf-loader.c: rename write and close to
|
258
|
+
loader_write and loader_close respectively for avoiding crash with
|
259
|
+
system's definitions of these names
|
260
|
+
|
261
|
+
* extconf.rb: check if gdk_pixbuf_version is available or not.
|
262
|
+
Because tml's libgdk_pixbuf-2.0-0.dll doesn't export this.
|
263
|
+
* rbgdk-pixbuf.c: ditto
|
264
|
+
|
265
|
+
2003-02-17 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
|
266
|
+
|
267
|
+
* rbgdk-pixbufanimation.c: change tvsec and tvusec to static variable.
|
268
|
+
|
269
|
+
2003-02-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
|
270
|
+
|
271
|
+
* extconf.rb: Use ../mkmf-gnome.rb
|
272
|
+
|
273
|
+
2003-02-13 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
|
274
|
+
|
275
|
+
* rbgdk-pixbufanimation.c,rbgdk-pixdata.c: Suppress warnings.
|
276
|
+
|
277
|
+
2003-01-18 Masao Mutoh <mutoh@highway.ne.jp>
|
278
|
+
|
279
|
+
* *.[ch]: Update Copyright.
|
280
|
+
* sample/*: Update Copyright. Require 'gtk2'.
|
281
|
+
* sample/loader.rb: Added.
|
282
|
+
|
283
|
+
2003-01-18 Geoff Youngs <g@intersect-uk.co.uk>
|
284
|
+
|
285
|
+
* rbgdk-pixbuf-loader.c: Added.
|
286
|
+
|
287
|
+
2002-12-30 Masao Mutoh <mutoh@highway.ne.jp>
|
288
|
+
|
289
|
+
* rbgdk-pixbuf.c: Move GTK+'s functions to Ruby/GTK.
|
290
|
+
* lib/gdk_pixbuf2.rb: Remove "require 'gtk2'". Now, Ruby/GdkPixbuf doesn't depend on
|
291
|
+
Ruby/GTK.
|
292
|
+
* sample/.rb: Require 'gtk2' instead of 'gdk_pixbuf2'.
|
293
|
+
* sample/to_drawable: Move to gtk/sample/misc/.
|
294
|
+
* rbgdkpixbuf.h: Add a file.
|
295
|
+
* *.c: Include rbgdkpixbuf.h.
|
296
|
+
* README, COPYING.LIB: Change license term from "the GNU LIBRARY General Public
|
297
|
+
License version 2." to "the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.".
|
298
|
+
|
299
|
+
2002-12-13 Hiroshi IGARASHI <iga@ruby-lang.org>
|
300
|
+
|
301
|
+
* extconf.rb: add space before include directory option to $CFLAGS.
|
302
|
+
|
303
|
+
2002-12-07 Masao Mutoh <mutoh@highway.ne.jp>
|
304
|
+
|
305
|
+
* *.c: Change headers like as Ruby/GTK.
|
306
|
+
* rbgdk-pixdata.c: Add a file.
|
307
|
+
|
308
|
+
2002-11-27 Masao Mutoh <mutoh@highway.ne.jp>
|
309
|
+
|
310
|
+
* rbgdk-pixbuf.c: Follow Ruby/GLib changes.
|
311
|
+
Reported by Michael C. Libby <m_libby@andsoforth.com>.
|
312
|
+
|
313
|
+
2002-11-22 Masao Mutoh <mutoh@highway.ne.jp>
|
314
|
+
|
315
|
+
* rbgdk-pixbufanimation.c: Add a file.
|
316
|
+
* rbgdk-pixbuf.c: Rename Gdk::Pixbuf#option to Gdk::Pixbuf#get_option.
|
317
|
+
Add Gdk::Pixbuf#composite, #add_alpha, #copy_area,
|
318
|
+
#saturate_and_pixelate, #fill!.
|
319
|
+
BugFix for wrong arguments of Gdk::Pixbuf#initialize.
|
320
|
+
BugFix for Gdk::Pixbuf::VERSION.
|
321
|
+
* sample/composite.rb, utils.rb, floppybuddy.gif, anim.rb: Add samples.
|
322
|
+
|
323
|
+
2002-11-21 Masao Mutoh <mutoh@highway.ne.jp>
|
324
|
+
|
325
|
+
* rbgdk-pixbuf.c: Gdk::Pixbuf.new accept xpm data and colorspace.
|
326
|
+
Add Gdk::Pixbuf#get_subpixbuf, #dup.
|
327
|
+
* sample/xpm.rb: Add a sample.
|
328
|
+
* sample/scale.rb: Code cleanup.
|
329
|
+
|
330
|
+
2002-11-19 Masao Mutoh <mutoh@ejp1177linux.jpn.hp.com>
|
331
|
+
|
332
|
+
* rbgdk-pixbuf.c: Implement Gdk::Pixbuf#save.
|
333
|
+
Improve an error handling of Gdk::Pixbuf#initialize.
|
334
|
+
Change default interp_type of Gdk::Pixbuf#scale.
|
335
|
+
* sample/save.rb: Add a file.
|
336
|
+
|
337
|
+
2002-11-10 Masao Mutoh <mutoh@highway.ne.jp>
|
338
|
+
|
339
|
+
* README: Revised.
|
340
|
+
* COPYING: Removed.
|
341
|
+
|
342
|
+
2002-11-05 Masao Mutoh <mutoh@ejp1177linux.jpn.hp.com>
|
343
|
+
|
344
|
+
* rbgdk-pixbuf.c: Bugfix for "undefined symbol: DBL2INT", "CSTR2STR",
|
345
|
+
"STR2CSTR".
|
346
|
+
(pointed out by KUBO Takehiro <kubo@jiubao.org>)
|
347
|
+
* README: Add copyright.
|
348
|
+
|
349
|
+
2002-11-05 Masao Mutoh <mutoh@ejp1177linux.jpn.hp.com>
|
350
|
+
|
351
|
+
* rbgdk-pixbuf.c: Apply Ruby-GNOME2 rules.Code cleanup.Some modified.
|
352
|
+
* sample/test.rb: Removed.
|
353
|
+
* sample/*.rb: Follow Ruby/GTK2, rbgdk-pixbuf.c changes.
|
354
|
+
|
355
|
+
2002-09-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
|
356
|
+
|
357
|
+
* extconf.rb: Append -fnative-struct to $CFLAGS when G_OS_WIN32 is
|
358
|
+
defined
|
359
|
+
* lib/gdk_pixbuf2.rb: rename from lib/gdk_pixbuf.rb
|
360
|
+
* sample/*.rb: ditto
|
361
|
+
|
362
|
+
2002-08-03 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
|
363
|
+
|
364
|
+
* extconf.rb, rbgdk-pixbuf.c, lib/gdk_pixbuf.rb, sample/*.rb:
|
365
|
+
port to Ruby/GNOME2
|
366
|
+
|
367
|
+
2002-05-29 Masao Mutoh <mutoh@highway.ne.jp>
|
368
|
+
|
369
|
+
* README: Modified.
|
370
|
+
|
371
|
+
2001-11-24 Neil Conway <neilconway@rogers.com>
|
372
|
+
|
373
|
+
* MANIFEST: File removed.
|
374
|
+
|
375
|
+
2001-11-22 Akinori MUSHA <knu@iDaemons.org>
|
376
|
+
|
377
|
+
* extconf.rb: allow the user to specify where to find
|
378
|
+
glib-config and gdk-pixbuf-config.
|
379
|
+
|
380
|
+
2001-10-08 Neil Conway <neilconway@rogers.com>
|
381
|
+
|
382
|
+
* README: improve documentation, add contact info.
|
383
|
+
* ChangeLog: remove duplicate entries.
|
384
|
+
|
385
|
+
2001-10-05 Neil Conway <neilconway@rogers.com>
|
386
|
+
|
387
|
+
* extconf.rb: Fix typo.
|
388
|
+
|
389
|
+
2001-03-28 Hiroshi IGARASHI <iga@ruby-lang.org>
|
390
|
+
|
391
|
+
* rbgdk-pixbuf.c (new_from_file): check whether return value is NULL.
|
392
|
+
|
393
|
+
2001-02-25 Hiroshi IGARASHI <iga@ruby-lang.org>
|
394
|
+
|
395
|
+
* rbgdk-pixbuf.c (get_height): width and height were jumbled.
|
396
|
+
|
397
|
+
2001-01-13 Hiroshi IGARASHI <iga@ruby-lang.org>
|
398
|
+
|
399
|
+
* lib/gdk_pixbuf.rb: add wrapper library for loading depedencies.
|
400
|
+
|
401
|
+
2000-09-20 Hiroshi IGARASHI <iga@ruby-lang.org>
|
402
|
+
|
403
|
+
* rbgdk-pixbuf.c (scale):
|
404
|
+
now use GdkInterpType instead of ArtFilterLevel.
|
405
|
+
|
406
|
+
2000-03-30 Hiroshi IGARASHI <iga@ruby-lang.org>
|
407
|
+
|
408
|
+
* extconf.rb: use `gdk-pixbuf-config --libs'.
|
409
|
+
|
410
|
+
2000-03-30 Hiroshi IGARASHI <iga@ruby-lang.org>
|
411
|
+
|
412
|
+
* MANIFEST: create a file.
|
data/README
ADDED
@@ -0,0 +1,29 @@
|
|
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.6.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/
|
data/Rakefile
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
require 'rake/clean'
|
2
|
+
CLEAN.include '**/*.o'
|
3
|
+
CLEAN.include "**/*.#{Config::MAKEFILE_CONFIG['DLEXT']}"
|
4
|
+
CLOBBER.include 'doc'
|
5
|
+
CLOBBER.include '**/*.log'
|
6
|
+
CLOBBER.include '**/Makefile'
|
7
|
+
CLOBBER.include '**/extconf.h'
|
8
|
+
|
9
|
+
# Determine the current version of the software
|
10
|
+
def ruby_gdkpixbuf_version
|
11
|
+
gem 'glib2'
|
12
|
+
require 'glib2'
|
13
|
+
GLib::BINDING_VERSION.join('.')
|
14
|
+
end
|
15
|
+
|
16
|
+
CURRENT_VERSION = ruby_gdkpixbuf_version
|
17
|
+
|
18
|
+
# Make tasks -----------------------------------------------------
|
19
|
+
make_program = (/mswin/ =~ RUBY_PLATFORM) ? 'nmake' : 'make'
|
20
|
+
MAKECMD = ENV['MAKE_CMD'] || make_program
|
21
|
+
MAKEOPTS = ENV['MAKE_OPTS'] || ''
|
22
|
+
|
23
|
+
GDKPIXBUF_SO = "gdk_pixbuf2.#{Config::MAKEFILE_CONFIG['DLEXT']}"
|
24
|
+
|
25
|
+
file 'Makefile' => 'extconf.rb' do
|
26
|
+
sh "ruby extconf.rb #{ENV['EXTCONF_OPTS']}"
|
27
|
+
end
|
28
|
+
|
29
|
+
def make(target = '')
|
30
|
+
pid = system("#{MAKECMD} #{MAKEOPTS} #{target}")
|
31
|
+
$?.exitstatus
|
32
|
+
end
|
33
|
+
|
34
|
+
# Let make handle dependencies between c/o/so - we'll just run it.
|
35
|
+
file GDKPIXBUF_SO => (['Makefile'] + Dir['*.c'] + Dir['*.h']) do
|
36
|
+
m = make
|
37
|
+
fail "Make failed (status #{m})" unless m == 0
|
38
|
+
end
|
39
|
+
|
40
|
+
desc "Configure gdkpixbuf"
|
41
|
+
task :configure => ['Makefile']
|
42
|
+
|
43
|
+
desc "Compile the shared object"
|
44
|
+
task :compile => [GDKPIXBUF_SO]
|
45
|
+
|
46
|
+
task :default => :compile
|
47
|
+
|
48
|
+
desc 'Generate gem specification'
|
49
|
+
task :gemspec do
|
50
|
+
require 'erb'
|
51
|
+
tspec = ERB.new(File.read(File.join(File.dirname(__FILE__),'gdkpixbuf.gemspec.erb')))
|
52
|
+
File.open(File.join(File.dirname(__FILE__),'gdkpixbuf.gemspec'),'wb') do|f|
|
53
|
+
f << tspec.result
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
desc 'Build gem'
|
58
|
+
task :package => :gemspec do
|
59
|
+
require 'rubygems/specification'
|
60
|
+
spec_source = File.read File.join(File.dirname(__FILE__),'gdkpixbuf.gemspec')
|
61
|
+
spec = nil
|
62
|
+
# see: http://gist.github.com/16215
|
63
|
+
Thread.new { spec = eval("$SAFE = 3\n#{spec_source}") }.join
|
64
|
+
spec.validate
|
65
|
+
Gem::Builder.new(spec).build
|
66
|
+
end
|
67
|
+
|