gdk_pixbuf2 1.0.3 → 1.1.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.
@@ -1,23 +1,34 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /************************************************
3
-
4
- rbgdk-pixdata.c -
5
-
6
- $Author: ggc $
7
- $Date: 2007/07/13 16:07:28 $
8
-
9
- Copyright (C) 2002,2003 Masao Mutoh
10
- ************************************************/
11
- #include "rbgdk-pixbuf.h"
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2002,2003 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"
12
23
 
13
24
  #define GDK_TYPE_PIXDATA (gdk_pixdata_get_type())
14
- #define _SELF(s) ((GdkPixdata*)(RVAL2BOXED(s, GDK_TYPE_PIXDATA)))
15
- #define PIXDATA2RVAL(pix) (BOXED2RVAL(pix, GDK_TYPE_PIXDATA))
25
+ #define RG_TARGET_NAMESPACE cPixdata
26
+ #define _SELF(s) (RVAL2GDKPIXDATA(s))
16
27
 
17
28
  static ID id_pixdata;
18
29
 
19
30
  /*****************************************/
20
- GdkPixdata*
31
+ static GdkPixdata *
21
32
  gdk_pixdata_copy(const GdkPixdata* src)
22
33
  {
23
34
  GdkPixdata* data;
@@ -27,8 +38,8 @@ gdk_pixdata_copy(const GdkPixdata* src)
27
38
  return data;
28
39
  }
29
40
 
30
- GType
31
- gdk_pixdata_get_type (void)
41
+ static GType
42
+ gdk_pixdata_get_type(void)
32
43
  {
33
44
  static GType our_type = 0;
34
45
  if (our_type == 0)
@@ -39,11 +50,11 @@ gdk_pixdata_get_type (void)
39
50
  }
40
51
  /*****************************************/
41
52
  static VALUE
42
- pixdata_s_from_pixbuf(VALUE self, VALUE pixbuf, VALUE use_rle)
53
+ rg_s_from_pixbuf(G_GNUC_UNUSED VALUE self, VALUE pixbuf, VALUE use_rle)
43
54
  {
44
55
  GdkPixdata pixdata;
45
- gpointer rle_data = gdk_pixdata_from_pixbuf(&pixdata, RVAL2GOBJ(pixbuf), RVAL2CBOOL(use_rle));
46
- VALUE ret = PIXDATA2RVAL(&pixdata);
56
+ gpointer rle_data = gdk_pixdata_from_pixbuf(&pixdata, RVAL2GDKPIXBUF(pixbuf), RVAL2CBOOL(use_rle));
57
+ VALUE ret = GDKPIXDATA2RVAL(&pixdata);
47
58
  if (use_rle){
48
59
  /* need to manage the returned value */
49
60
  rb_ivar_set(ret, id_pixdata, Data_Wrap_Struct(rb_cData, NULL, g_free, rle_data));
@@ -52,7 +63,7 @@ pixdata_s_from_pixbuf(VALUE self, VALUE pixbuf, VALUE use_rle)
52
63
  }
53
64
 
54
65
  static VALUE
55
- pixdata_to_pixbuf(VALUE self, VALUE copy_pixels)
66
+ rg_to_pixbuf(VALUE self, VALUE copy_pixels)
56
67
  {
57
68
  GError* error = NULL;
58
69
  GdkPixbuf* ret = gdk_pixbuf_from_pixdata(_SELF(self), RVAL2CBOOL(copy_pixels), &error);
@@ -62,7 +73,7 @@ pixdata_to_pixbuf(VALUE self, VALUE copy_pixels)
62
73
  }
63
74
 
64
75
  static VALUE
65
- pixdata_serialize(VALUE self)
76
+ rg_serialize(VALUE self)
66
77
  {
67
78
  guint stream_length;
68
79
  guint i;
@@ -75,32 +86,26 @@ pixdata_serialize(VALUE self)
75
86
  }
76
87
 
77
88
  static VALUE
78
- pixdata_s_deserialize(VALUE self, VALUE stream)
89
+ rg_s_deserialize(VALUE self, VALUE rbstream)
79
90
  {
80
91
  GdkPixdata pixdata;
81
- gboolean ret;
82
- guint8 *gstream;
83
- GError* error = NULL;
84
- gint i, len;
92
+ long n;
93
+ guint8 *stream = RVAL2GUINT8S(rbstream, n);
94
+ GError *error = NULL;
85
95
 
86
- len = RARRAY_LEN(stream);
87
- gstream = g_new(guint8, len);
88
- // gstream = ALLOCA_N(guint8, len);
89
- for (i = 0; i < len; i++){
90
- gstream[i] = (guint8)NUM2UINT(RARRAY_PTR(stream)[i]);
91
- }
92
- ret = gdk_pixdata_deserialize(&pixdata, len, gstream, &error);
96
+ /* TODO: Should we really be creating a new array here? As far as I can
97
+ tell, the data is copied. */
98
+ if (!gdk_pixdata_deserialize(&pixdata, n, stream, &error))
99
+ RAISE_GERROR(error);
93
100
 
94
101
  /* need to manage the returned value */
95
- rb_ivar_set(ret, id_pixdata, Data_Wrap_Struct(rb_cData, NULL, g_free, gstream));
102
+ rb_ivar_set(self, id_pixdata, Data_Wrap_Struct(rb_cData, NULL, g_free, stream));
96
103
 
97
- if (ret != TRUE) RAISE_GERROR(error);
98
-
99
- return PIXDATA2RVAL(&pixdata);
104
+ return GDKPIXDATA2RVAL(&pixdata);
100
105
  }
101
106
 
102
107
  static VALUE
103
- pixdata_to_csource(VALUE self, VALUE name, VALUE dump_type)
108
+ rg_to_csource(VALUE self, VALUE name, VALUE dump_type)
104
109
  {
105
110
  GString* str = gdk_pixdata_to_csource(_SELF(self), RVAL2CSTR(name), FIX2INT(dump_type));
106
111
  VALUE ret = CSTR2RVAL(str->str);
@@ -110,13 +115,13 @@ pixdata_to_csource(VALUE self, VALUE name, VALUE dump_type)
110
115
 
111
116
  /* GdkPixdata */
112
117
  static VALUE
113
- pixdata_magic(VALUE self)
118
+ rg_magic(VALUE self)
114
119
  {
115
120
  return UINT2NUM(_SELF(self)->magic);
116
121
  }
117
122
 
118
123
  static VALUE
119
- pixdata_length(VALUE self)
124
+ rg_length(VALUE self)
120
125
  {
121
126
  gint32 length = _SELF(self)->length;
122
127
 
@@ -126,31 +131,31 @@ pixdata_length(VALUE self)
126
131
  }
127
132
 
128
133
  static VALUE
129
- pixdata_pixdata_type(VALUE self)
134
+ rg_pixdata_type(VALUE self)
130
135
  {
131
136
  return UINT2NUM(_SELF(self)->pixdata_type);
132
137
  }
133
138
 
134
139
  static VALUE
135
- pixdata_rowstride(VALUE self)
140
+ rg_rowstride(VALUE self)
136
141
  {
137
142
  return INT2NUM(_SELF(self)->rowstride);
138
143
  }
139
144
 
140
145
  static VALUE
141
- pixdata_width(VALUE self)
146
+ rg_width(VALUE self)
142
147
  {
143
148
  return INT2NUM(_SELF(self)->width);
144
149
  }
145
150
 
146
151
  static VALUE
147
- pixdata_height(VALUE self)
152
+ rg_height(VALUE self)
148
153
  {
149
154
  return INT2NUM(_SELF(self)->height);
150
155
  }
151
156
 
152
157
  static VALUE
153
- pixdata_pixel_data(VALUE self)
158
+ rg_pixel_data(VALUE self)
154
159
  {
155
160
  gint i;
156
161
  guint8* ret = _SELF(self)->pixel_data;
@@ -163,47 +168,46 @@ pixdata_pixel_data(VALUE self)
163
168
  return ary;
164
169
  }
165
170
 
166
-
167
171
  void
168
172
  Init_gdk_pixdata(VALUE mGdk)
169
173
  {
170
- VALUE pixdata = G_DEF_CLASS(GDK_TYPE_PIXDATA, "Pixdata", mGdk);
174
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_PIXDATA, "Pixdata", mGdk);
171
175
 
172
176
  id_pixdata = rb_intern("pixdata");
173
177
 
174
- rb_define_singleton_method(pixdata, "from_pixbuf", pixdata_s_from_pixbuf, 2);
175
- rb_define_singleton_method(pixdata, "deserialize", pixdata_s_deserialize, 1);
176
- rb_define_method(pixdata, "to_pixbuf", pixdata_to_pixbuf, 1);
177
- rb_define_method(pixdata, "serialize", pixdata_serialize, 0);
178
- rb_define_method(pixdata, "to_csource", pixdata_to_csource, 2);
179
- rb_define_method(pixdata, "magic", pixdata_magic, 0);
180
- rb_define_method(pixdata, "length", pixdata_length, 0);
181
- rb_define_method(pixdata, "pixdata_type", pixdata_pixdata_type, 0);
182
- rb_define_method(pixdata, "rowstride", pixdata_rowstride, 0);
183
- rb_define_method(pixdata, "width", pixdata_width, 0);
184
- rb_define_method(pixdata, "height", pixdata_height, 0);
185
- rb_define_method(pixdata, "pixel_data", pixdata_pixel_data, 0);
186
-
187
- rb_define_const(pixdata, "PIXBUF_MAGIC_NUMBER", INT2NUM(GDK_PIXBUF_MAGIC_NUMBER));
188
- rb_define_const(pixdata, "HEADER_LENGTH", INT2NUM(GDK_PIXDATA_HEADER_LENGTH));
178
+ RG_DEF_SMETHOD(from_pixbuf, 2);
179
+ RG_DEF_SMETHOD(deserialize, 1);
180
+ RG_DEF_METHOD(to_pixbuf, 1);
181
+ RG_DEF_METHOD(serialize, 0);
182
+ RG_DEF_METHOD(to_csource, 2);
183
+ RG_DEF_METHOD(magic, 0);
184
+ RG_DEF_METHOD(length, 0);
185
+ RG_DEF_METHOD(pixdata_type, 0);
186
+ RG_DEF_METHOD(rowstride, 0);
187
+ RG_DEF_METHOD(width, 0);
188
+ RG_DEF_METHOD(height, 0);
189
+ RG_DEF_METHOD(pixel_data, 0);
190
+
191
+ rb_define_const(RG_TARGET_NAMESPACE, "PIXBUF_MAGIC_NUMBER", INT2NUM(GDK_PIXBUF_MAGIC_NUMBER));
192
+ rb_define_const(RG_TARGET_NAMESPACE, "HEADER_LENGTH", INT2NUM(GDK_PIXDATA_HEADER_LENGTH));
189
193
 
190
194
  /* GdkPixdataType */
191
- rb_define_const(pixdata, "COLOR_TYPE_RGB", INT2FIX(GDK_PIXDATA_COLOR_TYPE_RGB));
192
- rb_define_const(pixdata, "COLOR_TYPE_RGBA", INT2FIX(GDK_PIXDATA_COLOR_TYPE_RGBA));
193
- rb_define_const(pixdata, "COLOR_TYPE_MASK", INT2FIX(GDK_PIXDATA_COLOR_TYPE_MASK));
194
- rb_define_const(pixdata, "SAMPLE_WIDTH_8", INT2FIX(GDK_PIXDATA_SAMPLE_WIDTH_8));
195
- rb_define_const(pixdata, "SAMPLE_WIDTH_MASK", INT2FIX(GDK_PIXDATA_SAMPLE_WIDTH_MASK));
196
- rb_define_const(pixdata, "ENCODING_RAW", INT2FIX(GDK_PIXDATA_ENCODING_RAW));
197
- rb_define_const(pixdata, "ENCODING_RLE", INT2FIX(GDK_PIXDATA_ENCODING_RLE));
198
- rb_define_const(pixdata, "ENCODING_MASK", INT2FIX(GDK_PIXDATA_ENCODING_MASK));
195
+ rb_define_const(RG_TARGET_NAMESPACE, "COLOR_TYPE_RGB", INT2FIX(GDK_PIXDATA_COLOR_TYPE_RGB));
196
+ rb_define_const(RG_TARGET_NAMESPACE, "COLOR_TYPE_RGBA", INT2FIX(GDK_PIXDATA_COLOR_TYPE_RGBA));
197
+ rb_define_const(RG_TARGET_NAMESPACE, "COLOR_TYPE_MASK", INT2FIX(GDK_PIXDATA_COLOR_TYPE_MASK));
198
+ rb_define_const(RG_TARGET_NAMESPACE, "SAMPLE_WIDTH_8", INT2FIX(GDK_PIXDATA_SAMPLE_WIDTH_8));
199
+ rb_define_const(RG_TARGET_NAMESPACE, "SAMPLE_WIDTH_MASK", INT2FIX(GDK_PIXDATA_SAMPLE_WIDTH_MASK));
200
+ rb_define_const(RG_TARGET_NAMESPACE, "ENCODING_RAW", INT2FIX(GDK_PIXDATA_ENCODING_RAW));
201
+ rb_define_const(RG_TARGET_NAMESPACE, "ENCODING_RLE", INT2FIX(GDK_PIXDATA_ENCODING_RLE));
202
+ rb_define_const(RG_TARGET_NAMESPACE, "ENCODING_MASK", INT2FIX(GDK_PIXDATA_ENCODING_MASK));
199
203
 
200
204
  /* GdkPixdataDumpType */
201
- rb_define_const(pixdata, "DUMP_PIXDATA_STREAM", INT2FIX(GDK_PIXDATA_DUMP_PIXDATA_STREAM));
202
- rb_define_const(pixdata, "DUMP_PIXDATA_STRUCT", INT2FIX(GDK_PIXDATA_DUMP_PIXDATA_STRUCT));
203
- rb_define_const(pixdata, "DUMP_MACROS", INT2FIX(GDK_PIXDATA_DUMP_MACROS));
204
- rb_define_const(pixdata, "DUMP_GTYPES", INT2FIX(GDK_PIXDATA_DUMP_GTYPES));
205
- rb_define_const(pixdata, "DUMP_CTYPES", INT2FIX(GDK_PIXDATA_DUMP_CTYPES));
206
- rb_define_const(pixdata, "DUMP_STATIC", INT2FIX(GDK_PIXDATA_DUMP_STATIC));
207
- rb_define_const(pixdata, "DUMP_CONST", INT2FIX(GDK_PIXDATA_DUMP_CONST));
208
- rb_define_const(pixdata, "DUMP_RLE_DECODER", INT2FIX(GDK_PIXDATA_DUMP_RLE_DECODER));
205
+ rb_define_const(RG_TARGET_NAMESPACE, "DUMP_PIXDATA_STREAM", INT2FIX(GDK_PIXDATA_DUMP_PIXDATA_STREAM));
206
+ rb_define_const(RG_TARGET_NAMESPACE, "DUMP_PIXDATA_STRUCT", INT2FIX(GDK_PIXDATA_DUMP_PIXDATA_STRUCT));
207
+ rb_define_const(RG_TARGET_NAMESPACE, "DUMP_MACROS", INT2FIX(GDK_PIXDATA_DUMP_MACROS));
208
+ rb_define_const(RG_TARGET_NAMESPACE, "DUMP_GTYPES", INT2FIX(GDK_PIXDATA_DUMP_GTYPES));
209
+ rb_define_const(RG_TARGET_NAMESPACE, "DUMP_CTYPES", INT2FIX(GDK_PIXDATA_DUMP_CTYPES));
210
+ rb_define_const(RG_TARGET_NAMESPACE, "DUMP_STATIC", INT2FIX(GDK_PIXDATA_DUMP_STATIC));
211
+ rb_define_const(RG_TARGET_NAMESPACE, "DUMP_CONST", INT2FIX(GDK_PIXDATA_DUMP_CONST));
212
+ rb_define_const(RG_TARGET_NAMESPACE, "DUMP_RLE_DECODER", INT2FIX(GDK_PIXDATA_DUMP_RLE_DECODER));
209
213
  }
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdk_pixbuf2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 3
10
- version: 1.0.3
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
- - The Ruby-GNOME2 Proejct Team
13
+ - The Ruby-GNOME2 Project Team
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-18 00:00:00 Z
18
+ date: 2012-01-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: glib2
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 17
28
+ hash: 19
29
29
  segments:
30
30
  - 1
31
+ - 1
31
32
  - 0
32
- - 3
33
- version: 1.0.3
33
+ version: 1.1.0
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  description: Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
@@ -42,15 +42,17 @@ extensions:
42
42
  extra_rdoc_files: []
43
43
 
44
44
  files:
45
- - ChangeLog
46
45
  - README
47
46
  - Rakefile
48
47
  - extconf.rb
49
48
  - lib/gdk_pixbuf2.rb
50
49
  - ext/gdk_pixbuf2/gdk_pixbuf2.def
50
+ - ext/gdk_pixbuf2/rbgdk-pixbuf2private.h
51
51
  - ext/gdk_pixbuf2/extconf.rb
52
52
  - ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c
53
+ - ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h
53
54
  - ext/gdk_pixbuf2/rbgdk-pixbuf.h
55
+ - ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c
54
56
  - ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c
55
57
  - ext/gdk_pixbuf2/rbgdk-pixbufanimation.c
56
58
  - ext/gdk_pixbuf2/rbgdk-pixbuf-format.c
@@ -103,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
105
  requirements: []
104
106
 
105
107
  rubyforge_project:
106
- rubygems_version: 1.7.2
108
+ rubygems_version: 1.8.12
107
109
  signing_key:
108
110
  specification_version: 3
109
111
  summary: Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
data/ChangeLog DELETED
@@ -1,482 +0,0 @@
1
- 2011-09-16 Nikolai Weibull <now@bitwi.se>
2
-
3
- * lib/gdk_pixbuf2.rb: Remove unused variable.
4
-
5
- 2011-09-12 Nikolai Weibull <now@bitwi.se>
6
-
7
- * ext/gdk_pixbuf2/*.c: Remove methods that implement methods already
8
- implemented with properties.
9
- * ext/gdk_pixbuf2/*.c: call StringValue before calling
10
- RSTRING_PTR()/RSTRING_LEN().
11
-
12
- 2011-09-09 Nikolai Weibull <now@bitwi.se>
13
-
14
- * ext/gdk_pixbuf2/*.c: Fix all warnings generated with gcc 4.4.5.
15
- * ext/gdk_pixbuf2/*.c: Fix all RVAL2CSTR calls.
16
-
17
- 2011-02-05 Masaaki Aoyagi
18
-
19
- * ext/gdk_pixbuf2/*.c: change to ANSI C style.
20
-
21
- 2011-01-30 Kouhei Sutou <kou@cozmixng.org>
22
-
23
- * Rakefile, ext/gdk_pixbuf2/extconf.rb: share depended packages
24
- vendor/local/.
25
-
26
- * lib/gdk_pixbuf2.rb, ext/gdk_pixbuf2/extconf.rb: remove cairo
27
- dependency.
28
-
29
- 2011-01-22 Masaaki Aoyagi
30
-
31
- * Rakefile: change to use gnome2-raketask.rb.
32
-
33
- 2010-10-23 Kouhei Sutou <kou@cozmixng.org>
34
-
35
- * ext/gdk_pixbuf2/depend: ruby-gdkpixbuf2 -> ruby-gdk-pixbuf2.
36
-
37
- 2010-10-17 Kouhei Sutou <kou@cozmixng.org>
38
-
39
- * Rakefile, ext/gdk_pixbuf2/rbgdk-pixbuf.c, lib/gdk_pixbuf2.rb:
40
- move GDK and cairo related code to Ruby/GTK2.
41
- Patch by Andrea Dallera. Thanks!!!
42
-
43
- 2010-10-08 Guillaume Cottenceau
44
-
45
- * RVAL2CSTR2 is deprecated, replace with RVAL2CSTR_ACCEPT_NIL
46
-
47
- * CSTR2RVAL2 is deprecated, replace with CSTR2RVAL_FREE
48
-
49
- 2010-09-29 Kouhei Sutou <kou@cozmixng.org>
50
-
51
- * Rakefile: fix dependencies.
52
-
53
- 2010-09-23 Kouhei Sutou <kou@cozmixng.org>
54
-
55
- * Rakefile: don't add .zip into gem.
56
-
57
- * lib/gdk_pixbuf2.rb: support bundled Windows DLL.
58
-
59
- * extconf.rb: support other directory build.
60
-
61
- 2010-09-21 Kouhei Sutou <kou@cozmixng.org>
62
-
63
- * Rakefile: add dependencies.
64
-
65
- * ext/gdk_pixbuf2/extconf.rb: use relative rcairo path if it exists.
66
-
67
- * ./: make buidlable with rake-compiler.
68
-
69
- * ./: reconstruct for cross compile.
70
-
71
- 2009-10-11 Michal Suchanek <hramrach@centrum.cz>
72
-
73
- * rbgdk-pixbuf.c: add Gdk::Pixbuf#pixels=.
74
-
75
- 2009-05-31 Kouhei Sutou <kou@cozmixng.org>
76
-
77
- * lib/gdk_pixbuf2.rb: use gem version rcairo as fallback.
78
- Patch by OBATA Akio. Thanks!!!
79
-
80
- 2008-11-01 Kouhei Sutou <kou@cozmixng.org>
81
-
82
- * ./: use RARRAY_PTR() and RARRAY_LEN().
83
-
84
- 2008-09-13 Kouhei Sutou <kou@cozmixng.org>
85
-
86
- * extconf.rb: use check_cairo.
87
-
88
- 2008-06-11 Kouhei Sutou <kou@cozmixng.org>
89
-
90
- * extconf.rb: include gdk-pixbuf/gdk-pixbuf.h in have_func test.
91
-
92
- 2008-04-13 Kouhei Sutou <kou@cozmixng.org>
93
-
94
- * extconf.rb: fix rcairo's source path.
95
-
96
- 2007-12-28 Kouhei Sutou <kou@cozmixng.org>
97
-
98
- * rbgdk-pixbuf.c (save, save_to_buffer):
99
- - cosmetic.
100
- - generalized.
101
-
102
- * rbgdk-pixbuf-loader.c: used RSTRING_LEN instead of RSTRING()->len.
103
-
104
- 2007-07-13 Guillaume Cottenceau
105
-
106
- * rbgdk-pixbuf-format.c, rbgdk-pixbuf.c, rbgdk-pixdata.c: replace
107
- RTEST uses by RVAL2CBOOL
108
-
109
- 2007-07-13 Guillaume Cottenceau
110
-
111
- * rbgdk-pixbuf-loader.c: "? Qtrue : QFalse" => CBOOL2RVAL cleanup
112
-
113
- 2007-07-12 Masao Mutoh <mutoh@highway.ne.jp>
114
-
115
- * rbgdk-pixbuf.c: Revert the Gdk::Pixbuf#scale change.
116
-
117
- 2007-07-07 Guillaume Cottenceau
118
-
119
- * rbgdk-pixbuf.c: fix multiple memory leaks
120
-
121
- 2007-07-07 Guillaume Cottenceau
122
-
123
- * rbgdk-pixbuf.c: thse can return NULL
124
-
125
- 2007-07-07 Guillaume Cottenceau
126
-
127
- * rbgdk-pixbuf.c: fix wrong order of arguments in using
128
- gdk_pixbuf_scale
129
-
130
- 2007-07-07 Guillaume Cottenceau
131
-
132
- * rbgdk-pixbuf.c: negative value for width or height in
133
- gdk_pixbuf_new_from_file_at_scale only supported in gtk 2.8
134
-
135
- 2007-07-07 Guillaume Cottenceau
136
-
137
- * rbgdk-pixbuf.c: slightly more general warning messages
138
-
139
- 2006-12-28 Masao Mutoh <mutoh@highway.ne.jp>
140
-
141
- * rbgdk-pixbuf.c: Add a comment the change below.
142
-
143
- 2006-12-17 Kouhei Sutou <kou@cozmixng.org>
144
-
145
- * extconf.rb, rbgdk-pixbuf.c, lib/gdk_pixbuf2.rb: moved
146
- integration API of Gdk::Pixbuf and Cairo::Context from Ruby/GTK2.
147
-
148
- 2006-06-22 Guillaume Cottenceau
149
-
150
- * rbgdk-pixbuf-loader.c: simplify code
151
-
152
- 2006-06-17 Masao Mutoh <mutoh@highway.ne.jp>
153
-
154
- * sample/*.rb: Remove Gtk.init, Code cleanup.
155
-
156
- 2006-04-23 NISHI Takao
157
-
158
- * rbgdk-pixdata.c: Gdk::Pixdata#length returns the size of pixel_data.
159
- (length - GDK_PIXDATA_HEADER_LENGTH).
160
- Gdk::Pixdata#pixel_data returns the data size of length -
161
- GDK_PIXDATA_HEADER_LENGTH. [Patch#1473708]
162
-
163
- 2005-09-24 Guillaume Cottenceau
164
-
165
- * rbgdk-pixbuf.c, rbgdk-pixbuf.h, rbgdk-pixbufsimpleanim.c,
166
- sample/simpleanim.rb: 2.8: add Gdk::PixbufSimpleAnim with #new
167
- and #add_frame
168
-
169
- 2005-09-18 Kouhei Sutou <kou@cozmixng.org>
170
-
171
- * rbgdk-pixbuf.c (get_pixels): Fix pixels size.
172
-
173
- 2005-07-23 Masao Mutoh <mutoh@highway.ne.jp>
174
-
175
- * rbgdk-pixbuf.c, rbgdk-pixbuf-loader.c, rbgdk-pixbuf-format.c:
176
- Fix a compiling warning.
177
-
178
- 2005-03-22 Mirko Maischberger <mirko@lilik.it>
179
-
180
- * sample/*.rb: sh-bang (!#) normalization.
181
- Reported by Mezz
182
-
183
- 2005-03-06 Masao Mutoh <mutoh@highway.ne.jp>
184
-
185
- * rbgdk-pixbuf-format.c: Fix a compilation problemn on GTK+-2.0.x.
186
- * README: Revised.
187
-
188
- 2005-02-13 Masao Mutoh <mutoh@highway.ne.jp>
189
-
190
- * rbgdk-pixbuf.c: Implement gdk_pixbuf_new_from_file_at_scale
191
- as Gdk::Pixbuf.new.
192
- * rbgdk-pixbuf-format.c: Added Gdk::PixbufFormat#scalable?,
193
- #disable?, #set_disabled, #license.
194
- * rbgdk-pixbuf.c: Added Gdk::Pixbuf#rotate, #flip for GTK+-2.6.
195
- * sample/flip.rb, rotate.rb: Added.
196
-
197
- 2005-02-01 Masao Mutoh <mutoh@highway.ne.jp>
198
-
199
- * extconf.rb: Use create_makefile_at_srcdir.
200
-
201
- 2005-01-30 Masao Mutoh <mutoh@highway.ne.jp>
202
-
203
- * extconf.rb: Follow mkmf-gnome2.rb changes.
204
-
205
- 2004-12-16 leon breedt <bitserf@gmail.com>
206
-
207
- * rbgdk-pixbuf-format.c, rbgdkpixbuf.h: Fix compilation problems.
208
-
209
- 2004-12-01 Masao Mutoh <mutoh@highway.ne.jp>
210
-
211
- * rbgdk-pixbufanimation.c: Fix a wrong number of arguments for
212
- Gdk::PixbufAnimationIter#advance.
213
- * rbgdk-pixbuf.c: Fix memoryleak for Gdk::Pixbuf#add_alpha.
214
- * rbgdk-pixbuf-loader.c: Undef Gdk::PixbufLoader#dup.
215
- * rbgdk-pixbuf.c: Fix a compilation warning.
216
-
217
- 2004-11-30 Masao Mutoh <mutoh@highway.ne.jp>
218
-
219
- * rbgdk-pixbuf-loader.c: Fix an error message.
220
-
221
- 2004-11-14 Masao Mutoh <mutoh@highway.ne.jp>
222
-
223
- * rbgdk-pixbuf.c, rbgdk-pixbuf-format.c:
224
- Fix compiling warning/error under GTK+-2.2.4.
225
- * rbgdk-pixbuf-loader.c, extconf.rb: Support GTK+-2.0.x again.
226
-
227
- 2004-11-06 Geoff Youngs <g@intersect-uk.co.uk>
228
-
229
- * rbgdk-pixbuf.c: Gdk::Pixbuf.get_file_info()
230
- Return image width and height as well as the GdkPixbufFormat
231
-
232
- 2004-09-23 Masao Mutoh <mutoh@highway.ne.jp>
233
-
234
- * lib/gdk_pixbuf2.rb: Improved log handling.
235
- Added Gdk::Pixbuf::LOG_DOMAIN.
236
- Rename GLib::Log.set_error_domain to GLib::Log.set_log_domain.
237
-
238
- 2004-08-29 Masao Mutoh <mutoh@highway.ne.jp>
239
-
240
- * lib/gdk_pixbuf2.rb: Added Gdk::PixbufLoader.open.
241
- * rbgdk-pixbuf-loader.c: Added Gdk::PixbufLoader#format, #set_size
242
- for GTK+-2.2.
243
- * rbgdk-pixbuf.c: Added Gdk::Pixbuf#save_to_buffer.
244
-
245
- 2004-08-28 Masao Mutoh <mutoh@highway.ne.jp>
246
-
247
- * rbgdk-pixbuf.c: Added Gdk::Pixbuf.formats, Gdk::Pixbuf#set_option for GTK+-2.2.
248
- * rbgdk-pixbuf-format.c, sample/format.rb: Added for GTK+-2.2.
249
- * rbgdk-pixbuf.c: Added Gdk::Pixbuf.new(filename, width, height),
250
- Gdk::Pixbuf.get_file_info for GTK+-2.4.
251
-
252
- 2004-08-19 Masao Mutoh <mutoh@highway.ne.jp>
253
-
254
- * rbgdk-pixbuf.c: Improve error handling.
255
-
256
- 2004-08-14 Masao Mutoh <mutoh@highway.ne.jp>
257
-
258
- * rbgdk-pixbufanimation.c: parameters of Gdk::PixbufAnimation#get_iter,
259
- Gdk::PixbufAnimationIter#advance are changed.
260
- * rbgdk-pixbuf.c: Remove Gdk::Pixbuf.new_subpixbuf and merge it to
261
- Gdk::Pixbuf.new.
262
- * sample/inline.rb, pixdata.rb: Added.
263
-
264
- 2004-08-13 Masao Mutoh <mutoh@highway.ne.jp>
265
-
266
- * rbgdk-pixdata.c: Rename Gdk::Pixdata#pixbuf to Gdk::Pixdata#to_pixbuf.
267
- Fix a bug of Gdk::Pixdata.deserialize, Gdk::Pixdata#pixel_data.
268
- Fix a memory leak of Gdk::Pixdata.from_pixbuf.
269
-
270
- 2004-07-03 Masao Mutoh <mutoh@highway.ne.jp>
271
-
272
- * rbgdk-pixbuf.c: Remove Gdk::Pixbuf::VERSION which causes a segfault
273
- on Win32 and tml's GTK+-2.4.0. Pointed out by Laurent.
274
-
275
- 2003-12-20 Masao Mutoh <mutoh@highway.ne.jp>
276
-
277
- * rbgdk-pixbuf.c: Fix lack of the data in Gdk::Pixbuf.pixels.
278
- (Bugs [857123])
279
-
280
- 2003-10-14 KATO Kazuyoshi <kzys@users.sf.net>
281
-
282
- * rbgdk-pixbuf.c: Add Gdk::Pixbuf#pixels.
283
-
284
- 2003-10-10 Masao Mutoh <mutoh@highway.ne.jp>
285
-
286
- * rbgdk-pixbuf.c: Fix memory leaks of Gdk::Pixbuf#scale, #composite.
287
- (Bugs [814787])
288
-
289
- 2003-10-07 Masao Mutoh <mutoh@highway.ne.jp>
290
-
291
- * rbgdk-pixbuf.c: Retry once if Gdk::Pixbuf.new is failed.
292
-
293
- 2003-09-01 Masao Mutoh <mutoh@highway.ne.jp>
294
-
295
- * rbgdk-pixbuf.c: Apply enum/flags.
296
-
297
- 2003-08-28 Masao Mutoh <mutoh@highway.ne.jp>
298
-
299
- * extconf.rb: Exit with 1 when the package is not found.
300
-
301
- 2003-08-21 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
302
-
303
- * rbgdk-pixbuf.c: use G_DEF_CONSTANTS() and define enum/flags classes.
304
-
305
- 2003-07-12 Masao Mutoh <mutoh@highway.ne.jp>
306
-
307
- * rbgdk-pixbuf.c: Seprate Gdk::Pixbuf#scale to #scale and #scale!.
308
- Separate Gdk::Pixbuf#composite to #composite and #composite!.
309
- * sample/scale.rb, composite.rb: Follow changes.
310
- * ChangeLog: Revise date format.
311
-
312
- 2003-07-10 Mikael Magnusson <mikma@users.sourceforge.net>
313
-
314
- * rbgdk-pixbuf.c, sample/scale.rb, composite.rb:
315
- Gdk::Pixbuf#scale and #composite accept destination pixbuf instead of nil.
316
-
317
- 2003-05-27 Masao Mutoh <mutoh@highway.ne.jp>
318
-
319
- * extconf.rb: Follow mkmf-gnome2.rb position changes.
320
-
321
- 2003-05-02 Geoff Youngs <g@intersect-uk.co.uk>
322
-
323
- * rbgdk-pixbuf.c: Bugfix for Gdk::Pixbuf#composite
324
-
325
- 2003-03-07 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
326
-
327
- * rbgdk-pixbuf-loader.c: rename write and close to
328
- loader_write and loader_close respectively for avoiding crash with
329
- system's definitions of these names
330
-
331
- * extconf.rb: check if gdk_pixbuf_version is available or not.
332
- Because tml's libgdk_pixbuf-2.0-0.dll doesn't export this.
333
- * rbgdk-pixbuf.c: ditto
334
-
335
- 2003-02-17 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
336
-
337
- * rbgdk-pixbufanimation.c: change tvsec and tvusec to static variable.
338
-
339
- 2003-02-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
340
-
341
- * extconf.rb: Use ../mkmf-gnome.rb
342
-
343
- 2003-02-13 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
344
-
345
- * rbgdk-pixbufanimation.c,rbgdk-pixdata.c: Suppress warnings.
346
-
347
- 2003-01-18 Masao Mutoh <mutoh@highway.ne.jp>
348
-
349
- * *.[ch]: Update Copyright.
350
- * sample/*: Update Copyright. Require 'gtk2'.
351
- * sample/loader.rb: Added.
352
-
353
- 2003-01-18 Geoff Youngs <g@intersect-uk.co.uk>
354
-
355
- * rbgdk-pixbuf-loader.c: Added.
356
-
357
- 2002-12-30 Masao Mutoh <mutoh@highway.ne.jp>
358
-
359
- * rbgdk-pixbuf.c: Move GTK+'s functions to Ruby/GTK.
360
- * lib/gdk_pixbuf2.rb: Remove "require 'gtk2'". Now, Ruby/GdkPixbuf doesn't depend on
361
- Ruby/GTK.
362
- * sample/.rb: Require 'gtk2' instead of 'gdk_pixbuf2'.
363
- * sample/to_drawable: Move to gtk/sample/misc/.
364
- * rbgdkpixbuf.h: Add a file.
365
- * *.c: Include rbgdkpixbuf.h.
366
- * README, COPYING.LIB: Change license term from "the GNU LIBRARY General Public
367
- License version 2." to "the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.".
368
-
369
- 2002-12-13 Hiroshi IGARASHI <iga@ruby-lang.org>
370
-
371
- * extconf.rb: add space before include directory option to $CFLAGS.
372
-
373
- 2002-12-07 Masao Mutoh <mutoh@highway.ne.jp>
374
-
375
- * *.c: Change headers like as Ruby/GTK.
376
- * rbgdk-pixdata.c: Add a file.
377
-
378
- 2002-11-27 Masao Mutoh <mutoh@highway.ne.jp>
379
-
380
- * rbgdk-pixbuf.c: Follow Ruby/GLib changes.
381
- Reported by Michael C. Libby <m_libby@andsoforth.com>.
382
-
383
- 2002-11-22 Masao Mutoh <mutoh@highway.ne.jp>
384
-
385
- * rbgdk-pixbufanimation.c: Add a file.
386
- * rbgdk-pixbuf.c: Rename Gdk::Pixbuf#option to Gdk::Pixbuf#get_option.
387
- Add Gdk::Pixbuf#composite, #add_alpha, #copy_area,
388
- #saturate_and_pixelate, #fill!.
389
- BugFix for wrong arguments of Gdk::Pixbuf#initialize.
390
- BugFix for Gdk::Pixbuf::VERSION.
391
- * sample/composite.rb, utils.rb, floppybuddy.gif, anim.rb: Add samples.
392
-
393
- 2002-11-21 Masao Mutoh <mutoh@highway.ne.jp>
394
-
395
- * rbgdk-pixbuf.c: Gdk::Pixbuf.new accept xpm data and colorspace.
396
- Add Gdk::Pixbuf#get_subpixbuf, #dup.
397
- * sample/xpm.rb: Add a sample.
398
- * sample/scale.rb: Code cleanup.
399
-
400
- 2002-11-19 Masao Mutoh <mutoh@ejp1177linux.jpn.hp.com>
401
-
402
- * rbgdk-pixbuf.c: Implement Gdk::Pixbuf#save.
403
- Improve an error handling of Gdk::Pixbuf#initialize.
404
- Change default interp_type of Gdk::Pixbuf#scale.
405
- * sample/save.rb: Add a file.
406
-
407
- 2002-11-10 Masao Mutoh <mutoh@highway.ne.jp>
408
-
409
- * README: Revised.
410
- * COPYING: Removed.
411
-
412
- 2002-11-05 Masao Mutoh <mutoh@ejp1177linux.jpn.hp.com>
413
-
414
- * rbgdk-pixbuf.c: Bugfix for "undefined symbol: DBL2INT", "CSTR2STR",
415
- "STR2CSTR".
416
- (pointed out by KUBO Takehiro <kubo@jiubao.org>)
417
- * README: Add copyright.
418
-
419
- 2002-11-05 Masao Mutoh <mutoh@ejp1177linux.jpn.hp.com>
420
-
421
- * rbgdk-pixbuf.c: Apply Ruby-GNOME2 rules.Code cleanup.Some modified.
422
- * sample/test.rb: Removed.
423
- * sample/*.rb: Follow Ruby/GTK2, rbgdk-pixbuf.c changes.
424
-
425
- 2002-09-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
426
-
427
- * extconf.rb: Append -fnative-struct to $CFLAGS when G_OS_WIN32 is
428
- defined
429
- * lib/gdk_pixbuf2.rb: rename from lib/gdk_pixbuf.rb
430
- * sample/*.rb: ditto
431
-
432
- 2002-08-03 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
433
-
434
- * extconf.rb, rbgdk-pixbuf.c, lib/gdk_pixbuf.rb, sample/*.rb:
435
- port to Ruby/GNOME2
436
-
437
- 2002-05-29 Masao Mutoh <mutoh@highway.ne.jp>
438
-
439
- * README: Modified.
440
-
441
- 2001-11-24 Neil Conway <neilconway@rogers.com>
442
-
443
- * MANIFEST: File removed.
444
-
445
- 2001-11-22 Akinori MUSHA <knu@iDaemons.org>
446
-
447
- * extconf.rb: allow the user to specify where to find
448
- glib-config and gdk-pixbuf-config.
449
-
450
- 2001-10-08 Neil Conway <neilconway@rogers.com>
451
-
452
- * README: improve documentation, add contact info.
453
- * ChangeLog: remove duplicate entries.
454
-
455
- 2001-10-05 Neil Conway <neilconway@rogers.com>
456
-
457
- * extconf.rb: Fix typo.
458
-
459
- 2001-03-28 Hiroshi IGARASHI <iga@ruby-lang.org>
460
-
461
- * rbgdk-pixbuf.c (new_from_file): check whether return value is NULL.
462
-
463
- 2001-02-25 Hiroshi IGARASHI <iga@ruby-lang.org>
464
-
465
- * rbgdk-pixbuf.c (get_height): width and height were jumbled.
466
-
467
- 2001-01-13 Hiroshi IGARASHI <iga@ruby-lang.org>
468
-
469
- * lib/gdk_pixbuf.rb: add wrapper library for loading depedencies.
470
-
471
- 2000-09-20 Hiroshi IGARASHI <iga@ruby-lang.org>
472
-
473
- * rbgdk-pixbuf.c (scale):
474
- now use GdkInterpType instead of ArtFilterLevel.
475
-
476
- 2000-03-30 Hiroshi IGARASHI <iga@ruby-lang.org>
477
-
478
- * extconf.rb: use `gdk-pixbuf-config --libs'.
479
-
480
- 2000-03-30 Hiroshi IGARASHI <iga@ruby-lang.org>
481
-
482
- * MANIFEST: create a file.