glib2 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/ChangeLog +3023 -0
  2. data/README +28 -0
  3. data/Rakefile +87 -0
  4. data/extconf.rb +61 -0
  5. data/sample/bookmarkfile.rb +66 -0
  6. data/sample/completion.rb +45 -0
  7. data/sample/idle.rb +41 -0
  8. data/sample/iochannel.rb +44 -0
  9. data/sample/keyfile.rb +62 -0
  10. data/sample/shell.rb +36 -0
  11. data/sample/spawn.rb +25 -0
  12. data/sample/timeout.rb +28 -0
  13. data/sample/timeout2.rb +35 -0
  14. data/sample/timer.rb +40 -0
  15. data/sample/type-register.rb +103 -0
  16. data/sample/type-register2.rb +104 -0
  17. data/sample/utils.rb +54 -0
  18. data/src/glib-enum-types.c +1032 -0
  19. data/src/glib-enum-types.h +140 -0
  20. data/src/lib/glib-mkenums.rb +199 -0
  21. data/src/lib/glib2.rb +220 -0
  22. data/src/lib/mkmf-gnome2.rb +390 -0
  23. data/src/lib/pkg-config.rb +137 -0
  24. data/src/rbgcompat.h +30 -0
  25. data/src/rbglib.c +320 -0
  26. data/src/rbglib.h +96 -0
  27. data/src/rbglib_bookmarkfile.c +595 -0
  28. data/src/rbglib_completion.c +192 -0
  29. data/src/rbglib_convert.c +195 -0
  30. data/src/rbglib_error.c +95 -0
  31. data/src/rbglib_fileutils.c +83 -0
  32. data/src/rbglib_i18n.c +44 -0
  33. data/src/rbglib_int64.c +157 -0
  34. data/src/rbglib_iochannel.c +883 -0
  35. data/src/rbglib_keyfile.c +846 -0
  36. data/src/rbglib_maincontext.c +917 -0
  37. data/src/rbglib_mainloop.c +87 -0
  38. data/src/rbglib_messages.c +150 -0
  39. data/src/rbglib_pollfd.c +111 -0
  40. data/src/rbglib_shell.c +68 -0
  41. data/src/rbglib_source.c +190 -0
  42. data/src/rbglib_spawn.c +345 -0
  43. data/src/rbglib_threads.c +51 -0
  44. data/src/rbglib_timer.c +127 -0
  45. data/src/rbglib_unicode.c +611 -0
  46. data/src/rbglib_utils.c +386 -0
  47. data/src/rbglib_win32.c +136 -0
  48. data/src/rbgobj_boxed.c +251 -0
  49. data/src/rbgobj_closure.c +337 -0
  50. data/src/rbgobj_convert.c +167 -0
  51. data/src/rbgobj_enums.c +961 -0
  52. data/src/rbgobj_fundamental.c +30 -0
  53. data/src/rbgobj_object.c +892 -0
  54. data/src/rbgobj_param.c +390 -0
  55. data/src/rbgobj_paramspecs.c +305 -0
  56. data/src/rbgobj_signal.c +963 -0
  57. data/src/rbgobj_strv.c +61 -0
  58. data/src/rbgobj_type.c +851 -0
  59. data/src/rbgobj_typeinstance.c +121 -0
  60. data/src/rbgobj_typeinterface.c +148 -0
  61. data/src/rbgobj_typemodule.c +66 -0
  62. data/src/rbgobj_typeplugin.c +49 -0
  63. data/src/rbgobj_value.c +313 -0
  64. data/src/rbgobj_valuearray.c +59 -0
  65. data/src/rbgobj_valuetypes.c +298 -0
  66. data/src/rbgobject.c +406 -0
  67. data/src/rbgobject.h +265 -0
  68. data/src/rbgprivate.h +88 -0
  69. data/src/rbgutil.c +222 -0
  70. data/src/rbgutil.h +82 -0
  71. data/src/rbgutil_callback.c +231 -0
  72. data/test/glib-test-init.rb +6 -0
  73. data/test/glib-test-utils.rb +12 -0
  74. data/test/run-test.rb +25 -0
  75. data/test/test_enum.rb +99 -0
  76. data/test/test_file_utils.rb +15 -0
  77. data/test/test_glib2.rb +120 -0
  78. data/test/test_iochannel.rb +275 -0
  79. data/test/test_key_file.rb +38 -0
  80. data/test/test_mkenums.rb +25 -0
  81. data/test/test_signal.rb +20 -0
  82. data/test/test_timeout.rb +28 -0
  83. data/test/test_unicode.rb +369 -0
  84. data/test/test_utils.rb +37 -0
  85. data/test/test_win32.rb +13 -0
  86. metadata +165 -0
data/ChangeLog ADDED
@@ -0,0 +1,3023 @@
1
+ 2010-04-17 Kouhei Sutou <kou@cozmixng.org>
2
+
3
+ * src/rbglib.h: 0.19.4 -> 0.20.0.
4
+
5
+ 2010-04-07 Kouhei Sutou <kou@cozmixng.org>
6
+
7
+ * src/rbgobj_typeinstance.c (each_cinfo): fix a memory leak.
8
+
9
+ 2010-02-28 Kouhei Sutou <kou@cozmixng.org>
10
+
11
+ * src/lib/mkmf-gnome2.rb, src/lib/glib-mkenums.rb: add
12
+ {:force_flags => [pattern1, ...]} options to glib_mkenums to force
13
+ treating detected enum as flags.
14
+
15
+ 2010-02-12 Kouhei Sutou <kou@cozmixng.org>
16
+
17
+ * src/rbgutil.[ch], src/glib2.def: add
18
+ rbgutil_string_set_utf8_encoding() for Ruby 1.9.
19
+ * extconf.rb: detect rb_enc_associate().
20
+
21
+ 2010-02-06 Kouhei Sutou <kou@cozmixng.org>
22
+
23
+ * src/rbgobj_closure.c, src/rbgobj_signal.c, src/rbgobject.h,
24
+ srb/glib2.def: set tag to GRClosure for debugging.
25
+
26
+ 2009-10-11 Kouhei Sutou <kou@cozmixng.org>
27
+
28
+ * src/rbgobj_object.c: fix type_register on Ruby 1.9.
29
+ don't use each_with_index in C because
30
+ rb_iterate() API seems changed in Ruby 1.9.
31
+ Reported by Simon Arnaud. Thanks!!!
32
+
33
+ 2009-09-24 Kouhei Sutou <kou@cozmixng.org>
34
+
35
+ * src/rbglib.h (RBGLIB_MICRO_VERSION): 0.19.3 -> 0.19.4.
36
+
37
+ * src/lib/mkmf-gnome2.rb: add missing nil check.
38
+ Reported by Simon Arnaud. Thanks!!!
39
+
40
+ * src/lib/mkmf-gnome2.rb: use INCFLAGS instead of CPPFLAGS.
41
+
42
+ 2009-09-23 Kouhei Sutou <kou@cozmixng.org>
43
+
44
+ * src/rbglib.h (RBGLIB_MICRO_VERSION): 0.19.2 -> 0.19.3.
45
+
46
+ * src/rbglib_maincontext.c: follow the recent Ruby thread priority
47
+ changes.
48
+
49
+ 2009-09-22 Kouhei Sutou <kou@cozmixng.org>
50
+
51
+ * src/rbglib_maincontext.c: work Ruby thread with GTK+.
52
+ [Debian #502262]
53
+ Reported by Johan Walles. Thanks!!!
54
+
55
+ * src/rbglib_maincontext.c: fix multi thread blocking with Ruby
56
+ 1.8.6-p368 or later and 1.8.7-p173 or later. [#2862022]
57
+ Reported by Andrea Dallera. Thanks!!!
58
+
59
+ * src/lib/mkmf-gnome2.rb: don't add nonexistent path to include paths.
60
+
61
+ 2009-08-15 Kouhei Sutou <kou@cozmixng.org>
62
+
63
+ * src/lib/mkmf-gnome2.rb: check $(vendorarchdir) availability.
64
+ Reported by Toshiyuki Suzumura. Thanks!!!
65
+
66
+ 2009-08-10 Kouhei Sutou <kou@cozmixng.org>
67
+
68
+ * extconf.rb, src/lib/mkmf-gnome2.rb: cleanup.
69
+
70
+ * src/lib/mkmf-gnome2.rb: cleanup.
71
+
72
+ 2009-07-26 Kouhei Sutou <kou@cozmixng.org>
73
+
74
+ * src/rbglib.h (RBGLIB_MICRO_VERSION): 0.19.1 -> 0.19.2.
75
+
76
+ 2009-05-31 Kouhei Sutou <kou@cozmixng.org>
77
+
78
+ * src/lib/mkmf-gnome2.rb: add also "-I$(vendorarchdir)" to CPPFLAGS.
79
+
80
+ * src/depend: use RUBYARCHDIR.
81
+ Patch by OBATA Akio. Thanks!!!
82
+
83
+ 2009-05-30 Kouhei Sutou <kou@cozmixng.org>
84
+
85
+ * src/rbgobj_type.c: use GHashTable instead of Ruby's Hash to
86
+ avoid object creation while GC.
87
+ Reported by OBATA Akio. Thanks!!!
88
+
89
+ * src/rbgobj_boxed.c (boxed_free): don't create new object on free.
90
+
91
+ * src/rbglib.h (RBGLIB_MICRO_VERSION): 0.19.0 -> 0.19.1.
92
+
93
+ 2009-05-27 Pascal Terjan <pterjan@linuxfr.org>
94
+
95
+ * src/rbglib.c: fix limits of basic types
96
+
97
+ 2009-04-04 Kouhei Sutou <kou@cozmixng.org>
98
+
99
+ * src/rbglib.h, src/rbglib_error.c (rbgerr_define_gerror): add
100
+ const.
101
+ Suggested by Nikolai Weibull. Thanks!!!
102
+
103
+ 2009-03-27 Kouhei Sutou <kou@cozmixng.org>
104
+
105
+ * src/lib/pkg-config.rb: use license statement in www.gnu.org.
106
+ Suggested by Samuel Tesla. Thanks!!!
107
+
108
+ 2009-03-21 Kouhei Sutou <kou@cozmixng.org>
109
+
110
+ * src/rbglib_maincontext.c, test/test_timeout.rb: fix inverted
111
+ type conversion.
112
+ Reported by Nikolai Weibull. Thanks!!!
113
+
114
+ 2009-02-23 Kouhei Sutou <kou@cozmixng.org>
115
+
116
+ * src/rbglib_convert.c: remove duplicated GLib.charset method.
117
+
118
+ * src/rbgobj_object.c (Init_gobject_gobject): undef automatically
119
+ notify method defined for GObject::notify signal.
120
+
121
+ * test/test_iochannel.rb: suppress warnings for Ruby 1.9.2dev.
122
+
123
+ 2009-01-11 Kouhei Sutou <kou@cozmixng.org>
124
+
125
+ * src/rbglib_maincontext.c: add workaround for ruby 1.9.0. Should
126
+ we try to support 1.9.0? [#2493874]
127
+ Reported by boo. Thanks!!!
128
+
129
+ 2008-12-12 Kouhei Sutou <kou@cozmixng.org>
130
+
131
+ * src/depend (install): glib-enum-types.h exists in $(builddir)
132
+ not $(srcdir). [#2420281]
133
+ Reported by troels knak-nielsen. Thanks!!!
134
+
135
+ * TODO: add an entry:
136
+ make log message handler set by Ruby/GLib removable.
137
+
138
+ 2008-12-10 Kouhei Sutou <kou@cozmixng.org>
139
+
140
+ * src/rbgobj_type.c: use Mutex instead of rb_thread_critical.
141
+ * src/rbgobj_boxed.c, src/rbgobj_enums.c,
142
+ src/rbgobj_typeinterface.c, src/lib/glib2.rb: follow the above change.
143
+
144
+ 2008-11-19 Kouhei Sutou <kou@cozmixng.org>
145
+
146
+ * src/rbgobj_enums.c, test/test_enum.rb: GLib::Flags#| accepts
147
+ empty array.
148
+
149
+ * test/test_glib2.rb: move a test that depends of Ruby/GTK2 to
150
+ Ruby/GTK2.
151
+
152
+ 2008-11-01 Kouhei Sutou <kou@cozmixng.org>
153
+
154
+ * src/rbglib.h (DBL2NUM): define.
155
+
156
+ * src/: use RARRAY_PTR(), RARRAY_LEN() and RSTRING_LEN().
157
+
158
+ 2008-10-25 Kouhei Sutou <kou@cozmixng.org>
159
+
160
+ * test/test_signal.rb: use assert_const_defined.
161
+
162
+ 2008-10-16 Kouhei Sutou <kou@cozmixng.org>
163
+
164
+ * TODO: add.
165
+
166
+ 2008-10-03 Kouhei Sutou <kou@cozmixng.org>
167
+
168
+ * src/rbglib.h: 0.18.0 -> 0.19.0.
169
+
170
+ 2008-09-30 Andy Spencer
171
+
172
+ * src/depend (install): install glib-enum-types.h. [#2106938]
173
+
174
+ 2008-09-30 Kouhei Sutou <kou@cozmixng.org>
175
+
176
+ * src/rbglib.h (g_key_file_get_type): move to ...
177
+ * src/rbgobject.h: ... here.
178
+
179
+ 2008-09-18 Kouhei Sutou <kou@cozmixng.org>
180
+
181
+ * src/rbglib_maincontext.c: use VALUE not guint to
182
+ rb_set_end_proc()'s data. This will fix Debian bug [#490305].
183
+
184
+ 2008-09-14 Kouhei Sutou <kou@cozmixng.org>
185
+
186
+ * src/rbgobj_object.c (holder_free): fix memory leak.
187
+
188
+ 2008-09-13 Kouhei Sutou <kou@cozmixng.org>
189
+
190
+ * src/lib/mkmf-gnome2.rb (check_cairo): support rcairo in gem.
191
+ Suggested by OBATA Akio. Thanks!!!
192
+
193
+ 2008-09-07 Kouhei Sutou <kou@cozmixng.org>
194
+
195
+ * src/rbglib.h: 0.17.0 -> 0.18.0.
196
+
197
+ 2008-09-06 Kouhei Sutou <kou@cozmixng.org>
198
+
199
+ * src/rbgobj_object.c: cleanup.
200
+
201
+ * src/rbgobj_object.c: destroy object on weak notify. [Bug #2060606]
202
+ Reported by Arnaud Cornet. Thanks!!!
203
+
204
+ 2008-07-27 Sjoerd Simons <sjoerd@luon.net>
205
+
206
+ * src/rbgobj_closure.c: Only use G_REMOVE_RELATIVE when a closure is
207
+ directly invalidated. This prevents object creation when freeing the
208
+ closure from the garbage collector.
209
+
210
+ 2008-07-09 Kouhei Sutou <kou@cozmixng.org>
211
+
212
+ * src/rbgobj_object.c (gobj_get_property): fix a bug introduced in
213
+ r2740. (Gtk::Image#stock returns String not Symbol)
214
+
215
+ 2008-06-23 Kouhei Sutou <kou@cozmixng.org>
216
+
217
+ * src/lib/mkmf-gnome2.rb (create_makefile_at_srcdir): allow source
218
+ directory that isn't absolute path.
219
+ Reported by Guillaume Cottenceau. Thanks!!!
220
+
221
+ 2008-06-19 Kouhei Sutou <kou@cozmixng.org>
222
+
223
+ * src/rbgobj_type.c (rbgobj_lookup_class_by_gtype_body): add
224
+ create_class option.
225
+
226
+ * src/rbgobject.h (GTYPE2CINFO_NO_CREATE): add.
227
+
228
+ * src/rbgobject.h, src/rbgobj_type.c
229
+ (rbgobj_lookup_class_by_gtype_full): add.
230
+
231
+ * src/rbgobj_typeinstance.c (each_cinfo): don't create object
232
+ during GC to work with ruby 1.8.7.
233
+ Reported by Kazuhiro NISHIYAMA. Thanks!!!
234
+
235
+ 2008-06-14 Kouhei Sutou <kou@cozmixng.org>
236
+
237
+ * ./: use test-unit not test-unit-ext.
238
+ * test/glib-test-init.rb: add.
239
+ * test/run-test.rb: use test/glib-test-init.
240
+
241
+ 2008-06-11 Kouhei Sutou <kou@cozmixng.org>
242
+
243
+ * src/lib/mkmf-gnome2.rb (check_ruby_func): include ruby.h in
244
+ have_func test.
245
+
246
+ * src/rbgobj_object.c (gobj_inspect): add const.
247
+
248
+ * extconf.rb: include glib.h or ruby.h in have_func test.
249
+
250
+ 2008-06-08 Kouhei Sutou <kou@cozmixng.org>
251
+
252
+ * src/lib/mkmf-gnome2.rb (create_top_makefile): cleanup.
253
+
254
+ 2008-05-23 Kouhei Sutou <kou@cozmixng.org>
255
+
256
+ * test/run-test.rb: use which not --version to detect make.
257
+
258
+ 2008-05-14 Kouhei Sutou <kou@cozmixng.org>
259
+
260
+ * test/test_unicode.rb:
261
+ - add uconv check.
262
+ - add GLib version check.
263
+
264
+ 2008-05-13 Kouhei Sutou <kou@cozmixng.org>
265
+
266
+ * src/rbglib_keyfile.c (keyfile_load_from_dirs): fix index.
267
+
268
+ 2008-05-02 Kouhei Sutou <kou@cozmixng.org>
269
+
270
+ * src/rbgobj_type.c: fix style.
271
+
272
+ 2008-05-02 Sjoerd Simons <sjoerd@luon.net>
273
+
274
+ * src/rbgobj_type.c: Make rbgobj_lookup_class_by_gtype a thread critical
275
+ section. Prevents issues if two ruby threads want to convert an unknown
276
+ GObject class at the same time.
277
+
278
+ 2008-05-02 Kouhei Sutou <kou@cozmixng.org>
279
+
280
+ * src/rbglib.h (GERROR2RVAL): define.
281
+
282
+ 2008-04-26 Kouhei Sutou <kou@cozmixng.org>
283
+
284
+ * src/rbgutil.c (rbgutil_glist2ary_string)
285
+ (rbgutil_gslist2ary_and_free, rbgutil_gslist2ary_boxed_and_free):
286
+ fix not freed bug.
287
+
288
+ * src/rbgutil.h (GLIST2ARY_STR, GLIST2ARY_STR_FREE): add.
289
+
290
+ * src/glib2.def, src/rbgutil.c (rbgutil_glist2ary_string,
291
+ rbgutil_glist2ary_string_and_free): add.
292
+
293
+ * src/rbglib.h (RBG_INSPECT): add.
294
+
295
+ * src/glib2.def: src/rbglib.c (rbg_rval_inspect): add.
296
+
297
+ * src/rbglib.h (RVAL2CSTR_ACCEPT_NIL): use function instead of
298
+ macro to avoid double evaluation.
299
+
300
+ * src/glib2.def, src/rbglib.c (rbg_rval2cstr_accept_nil): add.
301
+
302
+ 2008-04-22 Sjoerd Simons <sjoerd@luon.net>
303
+
304
+ * src/rbglib_maincontext: Handle both thread->wait_for WAIT_FD and
305
+ WAIT_SELECT properly.
306
+
307
+ 2008-04-20 Sjoerd Simons <sjoerd@luon.net>
308
+
309
+ * src/rbglib_maincontext: Properly handle the case where the poll setup
310
+ function returns early.
311
+
312
+ 2008-04-20 Kouhei Sutou <kou@cozmixng.org>
313
+
314
+ * src/rbglib_maincontext.c: free old FDs.
315
+
316
+ 2008-04-17 Sjoerd Simons <sjoerd@luon.net>
317
+
318
+ * src/rbglib_maincontext.c: When preparing our source only add pollfds if we
319
+ were not already polling for it. Fixes 100% cpu usage as soon as another
320
+ ruby thread is blocked on a file descriptor.
321
+
322
+ 2008-04-16 Sjoerd Simons <sjoerd@luon.net>
323
+
324
+ * src/rbgobject.c: When initializing look at the complete inheritance tree to
325
+ see if any superclass defined a specialized initialize function
326
+
327
+ 2008-04-15 Kouhei Sutou <kou@cozmixng.org>
328
+
329
+ * src/rbgutil.h:
330
+ - GLIST2ARY_WITH_FREE -> GLIST2ARY_FREE.
331
+ - GSLIST2ARY_WITH_FREE -> GSLIST2ARY_FREE.
332
+
333
+ 2008-04-14 Kouhei Sutou <kou@cozmixng.org>
334
+
335
+ * test/glib-test-utils.rb (GLibTestUtils#only_win32): use GLib.os_win32?.
336
+
337
+ * src/rbglib_win32.c: implement
338
+ g_win32_get_package_installation_directory_of_module() defined in
339
+ 2.16. Maybe work...
340
+
341
+ * test/glib-test-utils.rb: add only_win32.
342
+
343
+ * test/test_win32.rb: add.
344
+
345
+ * src/rbglib_fileutils.c: implement g_format_size_for_display()
346
+ defined in 2.16.
347
+
348
+ * test/test_file_utils.rb: add.
349
+
350
+ * src/rbglib_keyfile.c:
351
+ - implement g_key_file_load_from_dirs() defined in 2.14.
352
+ - define G_KEY_FILE_DESKTOP_* defined in 2.14.
353
+
354
+ * test/test_key_file.rb: add.
355
+
356
+ * src/rbglib_utils.c:
357
+ - implement g_get_user_XXX_dir() and g_get_system_XXX_dirs().
358
+ - implement g_get_user_special_dir() defined in 2.14.
359
+
360
+ * test/test_utils.rb: add.
361
+
362
+ * src/lib/glib2.rb (GLib::UserDirectory): remove DIRECTORY_ prefix.
363
+
364
+ * src/rbglib.c: Init_glib_utils() use G_DEF_CLASS().
365
+
366
+ 2008-04-13 Kouhei Sutou <kou@cozmixng.org>
367
+
368
+ * src/rbglib_unicode.c, test/test_unicode.rb: bind Unicode related
369
+ functions added in GLib 2.14.
370
+
371
+ * test/run-test.rb: use glib-test-utils.rb.
372
+
373
+ * test/glib-test-utils.rb: add.
374
+
375
+ * src/rbgobj_value.c (rbgobj_initialize_gvalue): support more
376
+ objects.
377
+
378
+ * src/rbgobj_object.c, src/rbgobj_boxed.c, src/rbgobj_param.c,
379
+ src/rbgobj_enums.c, src/rbgobj_typeinterface.c, src/rbgprivate.h:
380
+ export Ruby classes/modules associated fundamental GType privately.
381
+
382
+ 2008-04-10 Kouhei Sutou <kou@cozmixng.org>
383
+
384
+ * src/rbgobject.h: G_DEF_CLASS2 -> G_DEF_CLASS_WITH_GC_FUNC.
385
+
386
+ * src/glib2.def: export g_connect_flags_get_type().
387
+
388
+ * extconf.rb, src/rbgobj_signal.c: make GSignalFlags,
389
+ GConnectFlags and GSignalMatchType GLib::Enum or GLib::Flags.
390
+
391
+ * test/test_signal.rb: add.
392
+
393
+ * src/rbgobj_type.c, src/glib2.def (rbgobj_define_class): add.
394
+
395
+ * src/rbgobject.h (GTYPE2CLASS), src/rbgobj_type.c
396
+ (rbgobj_lookup_class_by_gtype): accept G_TYPE_INVALID.
397
+
398
+ * src/rbgutil.h:
399
+ - GLIST2ARYF -> GLIST2ARY_WITH_FREE.
400
+ - GSLIST2ARYF -> GSLIST2ARY_WITH_FREE.
401
+
402
+ * src/rbgobject.h: remove nonexistent
403
+ rbg_{set,remote}_internal_poll_func.
404
+
405
+ 2008-04-05 Sjoerd Simons <sjoerd@luon.net>
406
+
407
+ * src/rbgutil_callback.c: Create the pipe inside
408
+ rbgutil_start_callback_dispatch_thread to ensure it's created in a race-free
409
+ way
410
+
411
+ 2008-04-04 Kouhei Sutou <kou@cozmixng.org>
412
+
413
+ * src/glib2.def: follow the recent changes.
414
+
415
+ * extconf.rb, src/rbgutil_callback.c: use pipe() for communicating
416
+ threads.
417
+
418
+ * src/rbglib_bookmarkfile.c (bf_load_from_data): don't declare
419
+ variable after some expression.
420
+
421
+ 2008-04-01 Kouhei Sutou <kou@cozmixng.org>
422
+
423
+ * src/rbglib.h (CSTR2RVAL2), src/lib/glib2.rb: cleanup.
424
+
425
+ 2008-03-31 Kouhei Sutou <kou@cozmixng.org>
426
+
427
+ * src/rbglib.h (RVAL2CSTR_ACCEPT_NIL): renamed from RVAL2CSTR2.
428
+
429
+ * src/glib2.def: exported rbgobj_get_ruby_object_from_gobject.
430
+
431
+ 2008-03-30 Kouhei Sutou <kou@cozmixng.org>
432
+
433
+ * src/rbgobject.h (GOBJ2RVAL_UNREF): renamed from GOBJ2RVALU().
434
+
435
+ * src/rbgobj_object.c, src/rbgobj_param.c, src/rbgprivate.h:
436
+ get_value -> get_ruby_object.
437
+
438
+ * src/rbgobject.c: followed the above changes.
439
+
440
+ * src/rbgobject.h: exported rbgobj_get_ruby_object_from_gobject().
441
+
442
+ 2008-03-23 Kouhei Sutou <kou@cozmixng.org>
443
+
444
+ * src/rbglib.h (CSTR2RVAL_FREE): renamed from CSTR2RVAL2.
445
+
446
+ 2008-03-22 Kouhei Sutou <kou@cozmixng.org>
447
+
448
+ * src/rbgutil_callback.c (rbgutil_protect):
449
+ - passed exception.
450
+ - fixed missing type conversion.
451
+
452
+ * src/lib/glib2.rb (GLib.exit_application): received exception.
453
+
454
+ 2008-03-20 Kouhei Sutou <kou@cozmixng.org>
455
+
456
+ * test/test_unicode.rb: fixed duplicated name.
457
+
458
+ * test/run-test.rb: $VERBOSE = true.
459
+
460
+ * src/rbgobj_enums.c, src/rbglib_error.c: used g_ascii_toupper()
461
+ instead of toupper() to be locale independent. [Bug #1901843]
462
+ Reported by Joseph Method. Thanks!!!
463
+
464
+ 2008-03-15 Kouhei Sutou <kou@cozmixng.org>
465
+
466
+ * src/lib/glib-mkenums.rb: used constants instead of consts.
467
+ * test/test_mkenums.rb: added.
468
+ * test/run-test.rb: required 'glib2'.
469
+
470
+ * src/lib/glib-mkenums.rb: used $Id$ instead of $Rev$.
471
+
472
+ * src/lib/glib-mkenums.rb: GLib::Enum -> GLib::EnumDefinition to
473
+ avoid name conflict.
474
+
475
+ * src/lib/glib-mkenums.rb: supported glib 2.16.1.
476
+ [Bug #1886689] [Bug #1913301]
477
+ Reported by Mikael Hallendal and mezz. Thanks!!!
478
+
479
+ * ./, test/run-test.rb: used TestUnitExt.
480
+
481
+ * test/run-test.rb: renamed from test/runner.rb.
482
+
483
+ * test/: renamed from tests/.
484
+
485
+ 2008-03-04 Kouhei Sutou <kou@cozmixng.org>
486
+
487
+ * src/rbgobj_closure.c: used G_RELATIVE2 and "closures" ID for
488
+ keeping GRClosure reference instead of G_ADD_CHILD to protect
489
+ GRClosures from G_CHILD_REMOVE_ALL.
490
+
491
+ 2008-02-21 Kouhei Sutou <kou@cozmixng.org>
492
+
493
+ * src/rbgutil_callback.c:
494
+ - used GAsyncQueue instead of pipe() because pipe() isn't
495
+ portable.
496
+ - rbgutil_{start,stop}_callback_handle_thread ->
497
+ rbgutil_{start,stop}_callback_dispatch_thread.
498
+
499
+ 2008-02-17 Kouhei Sutou <kou@cozmixng.org>
500
+
501
+ * src/rbgutil_callback.c: initialized callback_handle_thread
502
+ variable as nil.
503
+
504
+ 2008-02-14 Kouhei Sutou <kou@cozmixng.org>
505
+
506
+ * src/rbgutil_callback.c: callback handle thread isn't started
507
+ automatically. Call rbgutil_start_callback_handle_thread() before
508
+ some callbacks invoked. This change breaks Sjoerd's GStreamer
509
+ bindings. Sorry.
510
+
511
+ * src/rbglib_maincontext.c: don't use rb_thread_critical because
512
+ we don't create a thread now.
513
+
514
+ * src/rbgutil.h, src/glib2.def: exported
515
+ rbgutil_{start,stop}_callback_handle_thread().
516
+
517
+ 2008-01-07 Kouhei Sutou <kou@cozmixng.org>
518
+
519
+ * src/rbgobject.c (rbgobj_define_property_accessors),
520
+ src/rbgobj_signal.c (rbgobj_define_action_methods): don't eval
521
+ empty string because that crashes ruby 1.9.0.
522
+
523
+ 2008-01-06 Kouhei Sutou <kou@cozmixng.org>
524
+
525
+ * src/rbgobj_enums.c (rbgobj_init_flags_class): added "_" prefix
526
+ to fix invalid predicate method name that starts with
527
+ digits. e.g. 4mv? -> _4mv?. Or just ignore?
528
+
529
+ * src/rbgobj_convert.c (rbgobj_convert_rvalue2gtype): implemented.
530
+
531
+ 2008-01-04 Kouhei Sutou <kou@cozmixng.org>
532
+
533
+ * src/rbglib.h (RARRAY_PTR, RARRAY_LEN): defined.
534
+
535
+ * src/rbgobject.h (GPTR2RVAL, RVAL2GPTR): added.
536
+
537
+ 2008-01-03 Kouhei Sutou <kou@cozmixng.org>
538
+
539
+ * src/depend: don't use ftools.
540
+ Reported by Carlo E. Prelz. Thanks!!!
541
+
542
+ 2008-01-02 Kouhei Sutou <kou@cozmixng.org>
543
+
544
+ * src/rbgobj_value.c, src/rbgobject.h, src/glib2.def
545
+ (rbgobj_initialize_gvalue): added. (experimental)
546
+
547
+ * src/rbgobj_convert.c, src/rbgprivate.h
548
+ (rbgobj_convert_rvalue2gtype): should be implemented.
549
+
550
+ 2007-12-31 Kouhei Sutou <kou@cozmixng.org>
551
+
552
+ * src/rbgutil_callback.c: fixed ruby's thread check.
553
+
554
+ * src/rbgutil_callback.c: fixed a wrong select() argument.
555
+ Reported by Carlo E. Prelz. Thanks!!!
556
+
557
+ 2007-12-29 Kouhei Sutou <kou@cozmixng.org>
558
+
559
+ * src/rbglib_mainloop.c: moved poll related functions to ...
560
+ * src/rbglib_maincontext.c: ... here.
561
+
562
+ * src/rbglib_mainloop.c: supported ruby 1.9.0 thread model.
563
+
564
+ * extconf.rb: removed a needless check.
565
+
566
+ 2007-12-28 Kouhei Sutou <kou@cozmixng.org>
567
+
568
+ * src/rbgobj_object.c: rb_hash_aset()'s key should be VALUE not ID.
569
+
570
+ 2007-11-28 Kouhei Sutou <kou@cozmixng.org>
571
+
572
+ * src/rbglib_mainloop.c (source_prepare_add_poll_fd): treated
573
+ G_IO_HUP as except case not read case.
574
+
575
+ 2007-11-27 Kouhei Sutou <kou@cozmixng.org>
576
+
577
+ * src/rbglib_mainloop.c: don't use g_source_is_destroyed().
578
+
579
+ * extconf.rb: detected curr_thread.
580
+
581
+ * src/rbglib_mainloop.c: supported ruby 1.8.6 p0.
582
+
583
+ 2007-11-26 Kouhei Sutou <kou@cozmixng.org>
584
+
585
+ * src/rbgutil_callback.c: used rb_thread_select() instead of
586
+ rb_thread_wait_fd().
587
+
588
+ * src/rbglib_mainloop.c: used G_IO_IN as initial events.
589
+
590
+ * src/utils_callback.c: renamed to ...
591
+ * src/rbgutil_callback.c: ... this.
592
+ * src/utils_int64.c: renamed to ...
593
+ * src/rbglib_int64.c: ... this.
594
+ * src/rbglib.c: followed the above changes.
595
+
596
+ * src/rbglib_mainloop.c (source_check): fixed a typo.
597
+
598
+ 2007-11-25 Kouhei Sutou <kou@cozmixng.org>
599
+
600
+ * src/rbglib_mainloop.c: used GPollFD.
601
+
602
+ 2007-11-23 Kouhei Sutou <kou@cozmixng.org>
603
+
604
+ * tests/test_glib2.rb: added GC.start.
605
+
606
+ 2007-11-21 Kouhei Sutou <kou@cozmixng.org>
607
+
608
+ * src/rbglib_mainloop.c (source_prepare): checked pending signals.
609
+
610
+ 2007-11-17 Kouhei Sutou <kou@cozmixng.org>
611
+
612
+ * src/rbglib_mainloop.c: used GSource not poll func overriding.
613
+
614
+ 2007-11-11 Kouhei Sutou <kou@cozmixng.org>
615
+
616
+ * src/rbgobj_fundamental.c: re-added for making more flexible
617
+ backward compatibility layer.
618
+ * src/glib2.def, src/rbgcompat.h: followed the above change.
619
+
620
+ * src/rbgobject.h (RG_DEF_CONVERSION), src/rbgcompat.h: used RG_
621
+ prefix not G_ prefix.
622
+
623
+ * src/rbgobject.c: made GOBJ2RVAL overridable for non-fundamental
624
+ type.
625
+
626
+ * src/global.h: merged to src/rbgprivate.h and removed.
627
+ * src/: followed the above changes.
628
+
629
+ * src/glib2.def, src/depend: followed the below changes.
630
+
631
+ * src/rbgobj_fundamental.c, src/rbgobj_convert.c,
632
+ src/rbgobj_value.c, src/rbgobject.[ch], src/rbgobj_type.c: renamed
633
+ to rbgobj_convert_* from rbgobj_fund_*. The previous API is still
634
+ available but need to rebuild.
635
+ * src/rbgprivate.h, src/rbgcompat.h: added.
636
+
637
+ 2007-11-10 Kouhei Sutou <kou@cozmixng.org>
638
+
639
+ * src/rbgobject.[ch], src/rbgobj_fundamental.c: made RVAL2GOBJU
640
+ customizable.
641
+
642
+ 2007-10-04 Kouhei Sutou <kou@cozmixng.org>
643
+
644
+ * src/lib/mkmf-gnome2.rb: fixed build failure with top-level
645
+ extconf.rb. Reported by andy. Thanks!
646
+
647
+ 2007-10-03 Kouhei Sutou <kou@cozmixng.org>
648
+
649
+ * src/rbgobject.c (rbgobj_ruby_object_from_instance2): don't use
650
+ functions of Ruby for GTypeInstance.
651
+
652
+ * src/rbglib_mainloop.c (ml_initialize): all arguments of
653
+ GLib::MainLoop.new are optional.
654
+
655
+ 2007-09-29 Kouhei Sutou <kou@cozmixng.org>
656
+
657
+ * src/lib/mkmf-gnome2.rb (create_makefile_at_srcdir): don't use TOPDIR.
658
+
659
+ 2007-08-30 Kouhei Sutou <kou@cozmixng.org>
660
+
661
+ * src/rbglib_unicode.c (rbglib_m_unichar_get_script):
662
+ G_TYPE_UNICODE_SCRIPT_TYPE -> G_TYPE_UNICODE_SCRIPT.
663
+
664
+ * src/rbglib_maincontext.c (timeout_add_seconds): used
665
+ g_timeout_add_seconds_full() not g_timeout_add_seconds().
666
+
667
+ * src/lib/mkmf-gnome2.rb: cleanup.
668
+
669
+ 2007-08-30 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
670
+
671
+ * src/lib/mkmf-gnome2.rb: re-supported build in no-source
672
+ directory.
673
+
674
+ 2007-08-14 Vincent Isambart <vincent.isambart@gmail.com>
675
+ * src/utils_int64.c: included rbglib.h instead of ruby.h
676
+ because utils_int64.c uses the RVAL2CBOOL macro that is declared
677
+ in rbglib.h and thus resulted in a dynamic link error on Mac
678
+ that the system could not find a RVAL2CBOOL function.
679
+
680
+ 2007-08-08 Kouhei Sutou <kou@cozmixng.org>
681
+
682
+ * src/rbgobj_enums.c: supported convenience GEnum and GFlags
683
+ notation. e.g.:
684
+ GLib::UTF8.normalize(utf8, GLib::NormalizeMode::NFD)
685
+ ->
686
+ GLib::UTF8.normalize(utf8, :nfd)
687
+
688
+ key_file.load_from_data(data,
689
+ GLib::KeyFile::KEEP_COMMENTS |
690
+ GLib::KeyFile::KEEP_TRANSLATIONS)
691
+ ->
692
+ key_file.load_from_data(data, [:keep_contents, :keep_translations])
693
+
694
+ * tests/test_enum.rb: added tests for the above feature.
695
+
696
+ 2007-07-25 Sjoerd Simons <sjoerd@luon.net>
697
+ * src/rbgobj_signal.c: Properly use the GValueArray api in emit_body.
698
+ Causes all values in the parameter array to be unset after emission.
699
+ Fixing some reference leaks.
700
+
701
+ 2007-07-20 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
702
+
703
+ * src/rbgobj_object.c, src/rbgobject.h: deperecate
704
+ rbgobj_add_abstract_but_create_instance_class() and
705
+ move abstract-type check from .allocate to dummy #initialize.
706
+
707
+ 2007-07-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
708
+
709
+ * src/rbgobj_type.c: use rbgobj_init_object_class() to initialize
710
+ object class.
711
+ * src/rbgobj_object.c, src/global.h: add new function
712
+ rbgobj_init_object_class().
713
+
714
+ * src/rbgobj_object.c (rbgobj_gobject_new): check returned value of
715
+ g_object_newv().
716
+
717
+ 2007-07-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
718
+
719
+ * src/rbgobject.h: remove unused/undefined functions
720
+ rbgobj_boxed_ref() and rbgobj_boxed_unref().
721
+
722
+ * src/rbgobject.c: new function rbgobj_invalidate_relatives().
723
+ * src/rbgobject.c: move GObject stuffs to rbgobj_object.c again.
724
+ * src/rbgobj_object.c: deprecate rbgobj_object_create().
725
+ * src/rbgobj_boxed.c: deprecate rbgobj_boxed_create().
726
+
727
+ * src/utils_callback.c: brush up.
728
+
729
+ 2007-07-13 Guillaume Cottenceau
730
+
731
+ * src/rbglib_iochannel.c, src/rbglib_maincontext.c,
732
+ src/rbglib_mainloop.c, src/rbglib_source.c, src/rbglib_utils.c,
733
+ src/rbgobj_boxed.c, src/rbgobj_object.c, src/rbgobj_param.c,
734
+ src/rbgobj_paramspecs.c, src/rbgobj_signal.c, src/rbgobj_type.c,
735
+ src/rbgobj_typeinterface.c, src/rbgobj_value.c, src/rbgobject.c,
736
+ src/utils_int64.c: replace RTEST uses by RVAL2CBOOL
737
+
738
+ 2007-07-13 Guillaume Cottenceau
739
+
740
+ * src/rbgobj_closure.c, src/rbgobj_enums.c, src/rbgobj_object.c,
741
+ src/rbgobj_param.c, src/rbgobj_signal.c, src/rbgobj_type.c,
742
+ src/rbgobj_typemodule.c, src/rbgobj_value.c,
743
+ src/rbgobj_valuetypes.c: "? Qtrue : QFalse" => CBOOL2RVAL cleanup
744
+
745
+ 2007-07-10 Guillaume Cottenceau
746
+
747
+ * src/rbgobj_boxed.c: support passing nil to RVAL2BOXED, in order
748
+ to pass NULL to glib/gtk
749
+
750
+ 2007-07-10 Guillaume Cottenceau
751
+
752
+ * src/rbgobject.c: kou says we should use NIL_P(foo) not foo ==
753
+ Qnil
754
+
755
+ 2007-07-08 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
756
+
757
+ * src/rbgutil.h: mark G_BLOCK_PROC() as deprecated.
758
+ * src/*.c: use rb_block_proc() directly instead of using G_BLOCK_PROC().
759
+
760
+ * src/utils_callback.c (callback_info_run): use rbgutil_protect().
761
+ * src/utils_callback.c (listen_callback_pipe): call
762
+ rb_thread_schedule() to activate newly created thread.
763
+ * src/utils_callback.c (invoke_callback_in_ruby_thread):
764
+ g_mutex_lock(info.done_mutex) should be done before writing
765
+ data to pipe.
766
+
767
+ 2007-07-07 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
768
+
769
+ * src/extconf.rb, src/rbglib_messages.c: call ruby_set_current_source()
770
+ only if it exists. Current ruby 1.9 doesn't have it.
771
+
772
+ * src/extconf.rb, src/utils_callback.c: don't use is_ruby_native_thread
773
+ on ruby 1.9.
774
+
775
+ * src/rbglib_messages.c, extconf.rb: fix to compile on ruby 1.9:
776
+ ruby_sourcefile -> rb_sourcefile()
777
+ ruby_sourceline -> rb_sourceline()
778
+
779
+ * src/rbglib_message.c, rbglib_completion.c: remove ruby 1.6 support.
780
+
781
+ * src/rbgobj_strv.c (strv_from_ruby): fix not to double free.
782
+
783
+ * src/rbglib_bookmarkfile.c: fix to compile on ruby 1.9:
784
+ RSTRING(v)->ptr -> RSTRING_PTR(v),
785
+ RSTRING(v)->len -> RSTRING_LEN(v).
786
+
787
+ * test/test_glib2.rb: add some tests.
788
+
789
+ * src/rbbutil.h: change G_PROTECT_CALLBACK() to support calling
790
+ from non-ruby thread.
791
+
792
+ * src/rbgutil.c: move rbgutil_protect() into utils_callback.c.
793
+
794
+ * src/rbgobj_closure.c: separate stuffs that relate to thread into
795
+ utils_callback.c.
796
+
797
+ * src/utils_callback.c: new file for callback invocation.
798
+
799
+ 2007-07-06 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
800
+
801
+ * src/rbgobj_boxed.c (rbgobj_boxed_get): type check should be done
802
+ before doing Data_Get_Struct().
803
+
804
+ 2007-07-06 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
805
+
806
+ * src/rbgobj_boxed.c (rbgobj_boxed_get): fix argument type to match
807
+ with its prototype. Repored by Guillaume Cottenceau.
808
+ [ruby-gnome2-devel-en] HEAD doesn't build
809
+
810
+ 2007-07-04 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
811
+
812
+ * src/global.h, src/rbglib.h, src/rbgobj_boxed.c, src/rbgobj_closure.c,
813
+ src/rbgobj_enums.c, src/rbgobj_object.c, src/rbgobj_param.c,
814
+ src/rbgobj_typeinstance.c, src/rbgutil.c, src/rbgutil.h, extconf.rb:
815
+ remove ruby-1.6.x support and old yarv support.
816
+
817
+ 2007-07-02 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
818
+
819
+ * src/rbglib_spawn.c, src/rbgobj_object.c, src/rbgobj_signal.c,
820
+ src/rbgobj_type.c, src/rbgobj_typemodule.c, src/rbgobject.c:
821
+ remove unnecessary StringValue() invocations.
822
+
823
+ 2007-07-01 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
824
+
825
+ * src/rbgobj_typeinterface.c: brush up and should not call
826
+ g_type_default_interface_ref(G_TYPE_INTERFACE) which causes SEGV.
827
+
828
+ 2007-06-28 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
829
+
830
+ * tests/test_glib2.rb (TestGLib#test_signal_handler_disconnect_and_gc):
831
+ new test.
832
+
833
+ 2007-06-23 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
834
+
835
+ * src/rbgobj_closure.c: detach closure->rb_holder from GObject
836
+ when the closure is invalidated.
837
+ [ruby-gnome2-devel-en] Signal handling causes memory leaks
838
+
839
+ 2007-06-20 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
840
+
841
+ * src/rbgobj_typeinterface.c: Make interfaces not to be decendants
842
+ of GLib::MetaInterface. This change makes Mutoh-san's change at
843
+ 2007-06-16 unnecessary.
844
+
845
+ * src/rbgobj_typeinterface.c: fix GLib::MetaInterface#gtype;
846
+ generic_gtype() -> generic_s_gtype().
847
+
848
+ * src/rbglib_mainloop.c: use rbglib_poll() if possible, regardless of
849
+ ruby version. (ruby 1.5.4 is no longer considerd.)
850
+
851
+ * src/rbgobj_closure.c: fixed a segfault which is caused by accessing freed
852
+ GRClosure.
853
+
854
+ 2007-06-16 Masao Mutoh <mutoh@highway.ne.jp>
855
+
856
+ * src/rbgobj_signal.c: Fixed a segfault using Glade.
857
+ By syscrash2k Bug#1709389.
858
+
859
+ 2007-06-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
860
+
861
+ * extconf.rb, src/rbglib.h, src/rbglib.c, src/rbglib_convert.c,
862
+ src/rbglib_iochannel.c, src/rbglib_keyfile.c, src/rbglib_mainloop.c,
863
+ src/rbglib_spawn.c, src/rbglib_unicode.c, src/rbgobj_object.c, src/rbgutil.c:
864
+ fix to compile on ruby 1.9;
865
+ RSTRING(v)->ptr -> RSTRING_PTR(v),
866
+ RSTRING(v)->len -> RSTRING_LEN(v),
867
+ ruby_errinfo -> rb_errinfo(),
868
+ and so on.
869
+
870
+ 2007-06-16 Masao Mutoh <mutoh@highway.ne.jp>
871
+
872
+ * src/rbgobj_typeinterface.c: GLib::Interface.property, .install_property,
873
+ .properties raises a NoMethodError when they call as the instance method.
874
+
875
+ 2007-06-13 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
876
+
877
+ * src/rbgobj_closure.c: Simplify GRClosure data structure by removing
878
+ GRClosureHolder.
879
+
880
+ 2006-12-29 Masao Mutoh <mutoh@highway.ne.jp>
881
+
882
+ * src/lib/mkmf-gnome2.rb: Work ruby-1.8.4 or earlier again.
883
+ by Kouhei Sutou.
884
+ * src/rbglib.h: Increment minor version.
885
+
886
+ 2006-12-28 Masao Mutoh <mutoh@highway.ne.jp>
887
+
888
+ * src/lib/glib2.rb: Remove to support dropline GTK2-Runtime DLL.
889
+ * src/lib/glib-mkenums.rb: Fixed a parse error on GLib-2.6.
890
+
891
+ 2006-12-26 Kouhei Sutou <kou@cozmixng.org>
892
+
893
+ * src/lib/glib-mkenums.rb: added a space before comment end mark.
894
+
895
+ 2006-12-26 Masao Mutoh <mutoh@highway.ne.jp>
896
+
897
+ * extconf.rb: Code cleanup.
898
+ * src/lib/glib-mkenums.rb: Reimplement as a pure ruby library.
899
+ * src/lib/mkmf-gnome2.rb: Work MinGW again.
900
+ * src/rbglib_win32.c: Fix to compile problems.
901
+
902
+ 2006-12-25 Kouhei Sutou <kou@cozmixng.org>
903
+
904
+ * src/lib/glib2.rb (GLib.utf8_validate): removed needless code.
905
+
906
+ 2006-12-24 Masao Mutoh <mutoh@highway.ne.jp>
907
+
908
+ * src/rbglib_convert.c: GLib.utf8_validate becomes deprecated.
909
+ Use GLib::UTF8.validate instead.
910
+ * sample/bookmarkfile.rb: Add for GLib::BookmarkFile sample.
911
+
912
+ 2006-12-23 Masao Mutoh <mutoh@highway.ne.jp>
913
+
914
+ * src/rbglib_bookmarkfile.c: Add GLib::BookmarkFile
915
+ * src/rbglib_win32.c: Code cleanup. Imprement all functions.
916
+
917
+ 2006-12-21 Masao Mutoh <mutoh@highway.ne.jp>
918
+
919
+ * src/rbglib_keyfile.c: Add GLib::Keyfile.
920
+ * sample/keyfile.rb: Add a sample for GLib::KeyFile.
921
+
922
+ 2006-12-16 Masao Mutoh <mutoh@highway.ne.jp>
923
+
924
+ * src/rbgobj_closure.c: Fix warnings on x86_64.
925
+ * src/rbglib_unicode.c: Code cleanup.
926
+ * src/lib/glib-mkenums.rb: Make GLib::MkEnums.
927
+ * src/lib/mkmf-gnome2.rb: Follow above change.
928
+
929
+ 2006-12-11 Masao Mutoh <mutoh@highway.ne.jp>
930
+
931
+ * src/rbglib_maincontext.c: Add GLib::Source.current for GLib-2.12.
932
+ Add GLib::MainContext#owner? for GLib-2.10.
933
+ GLib::Timeout#add_seconds, #source_new_seconds for GLib-2.14.
934
+
935
+ 2006-12-10 Kouhei Sutou <kou@cozmixng.org>
936
+
937
+ * src/rbglib_unicode.c:
938
+ - GLib::Unicode::XXX -> GLib::Unicode::Type::XXX.
939
+ - GLib::UnicodeBreak::XXX -> GLib::Unicode::BreakType::XXX.
940
+ - GLib::UnicodeScript::XXX -> GLib::Unicode::Script::XXX.
941
+ * tests/test_unicode.rb: followed the changes.
942
+
943
+ * src/lib/glib2.rb: GLib.utf8_validate is deprecated. Use
944
+ GLib::UTF8.validate instead.
945
+ * src/rbglib_unicode.c:
946
+ - moved GLib.unichar_* to GLib::UniChar.*.
947
+ - moved GLib.unicode_* to GLib::Unicode.*.
948
+ - moved GLib.utf8_* to GLib::UTF8.*.
949
+ - moved GLib.utf16_* to GLib::UTF16.*.
950
+ - moved GLib.ucs4_* to GLib::UCS4.*.
951
+ - removed GLib::UNICODE_*.
952
+ - removed GLib::UNICODE_BREAK_*.
953
+ - removed GLib::NORMALIZE_*.
954
+ * tests/test_unicode.rb: followed the changes.
955
+
956
+ 2006-12-09 Kouhei Sutou <kou@cozmixng.org>
957
+
958
+ * src/rbglib_unicode.c:
959
+ - merged GLib.utf8_get_char_validate to GLib.utf8_get_char.
960
+ - GLib.unichar_control? -> GLib.unichar.cntrl?
961
+ - added GLib.utf8_reverse.
962
+ * tests/test_unicode.rb: followed the changes.
963
+
964
+ * src/rbglib_unicode.c, tests/test_unicode.rb: completed.
965
+
966
+ 2006-12-08 Kouhei Sutou <kou@cozmixng.org>
967
+
968
+ * src/rbglib_unicode.c: added. not completed yet.
969
+ * src/rbglib.c: added Init_glib_unicode().
970
+ * tests/test_unicode.rb: added tests for Unicode related bindings.
971
+
972
+ 2006-12-07 Kouhei Sutou <kou@cozmixng.org>
973
+
974
+ * src/rbgobj_closure.c (rclosure_unref): set Qnil to
975
+ disposed rclosure->rb_holder.
976
+
977
+ 2006-12-07 Guillaume Cottenceau <gcottenc@gmail.com>
978
+
979
+ * src/rbgobj_closure.c (rclosure_invalidate): don't check
980
+ rclosure->rb_holder because the check isn't necessary.
981
+
982
+ 2006-12-06 Kouhei Sutou <kou@cozmixng.org>
983
+
984
+ * src/lib/glib-mkenums.rb: removed garbages.
985
+
986
+ 2006-12-05 Kouhei Sutou <kou@cozmixng.org>
987
+
988
+ * src/lib/glib-mkenums.rb: added.
989
+ * src/lib/mkmf-gnome2.rb (glib_mkenums): added.
990
+ * extconf.rb: used glib_mkenums.
991
+
992
+ 2006-12-04 Kouhei Sutou <kou@cozmixng.org>
993
+
994
+ * tests/runner.rb: used Test::Unit::Autorunner.run.
995
+ * tests/test-glib2, tests/test-iocahnnel.rb: renamed to ...
996
+ * tests/test_glib2, tests/test_iochannel.rb: ... them for adapting
997
+ Test::Unit's default configurations.
998
+
999
+ * tests/test-iochannel.txt, tests/test-iochannel-sjis.txt: removed
1000
+ needless files.
1001
+
1002
+ * tests/runner.rb: setup $LOAD_PATH for test environment.
1003
+
1004
+ * tests/test-iochannel.rb: rewrote with Tempfile. I want to
1005
+ suppress GLib-WARNING and GLib-CRITICAL messages but I don't know
1006
+ how to do the thing...
1007
+
1008
+ * src/rbglib_iochannel.c: made "U" each time for avoiding GC
1009
+ problem.
1010
+
1011
+ 2006-11-22 Masao Mutoh <mutoh@highway.ne.jp>
1012
+
1013
+ * src/rbgobj_typeinterface.c: Fixed a bug when accessing the properties
1014
+ of GLib::Instantiatable.
1015
+
1016
+ 2006-11-05 Masao Mutoh <mutoh@highway.ne.jp>
1017
+
1018
+ * src/lib/mkmf-gnome2.rb: Set "0" to micro version of version
1019
+ header if pkg-config --modversion doesn't have micro version.
1020
+ Bug #1590573.
1021
+
1022
+ 2006-10-12 Kouhei Sutou <kou@cozmixng.org>
1023
+
1024
+ * src/rbgobj_closure.c: improved alive check.
1025
+
1026
+ 2006-09-26 Kouhei Sutou <kou@cozmixng.org>
1027
+
1028
+ * src/lib/mkmf-gnome2.rb: used $INCFLAGS instead of $CFLAGS.
1029
+
1030
+ 2006-09-25 Kouhei Sutou <kou@cozmixng.org>
1031
+
1032
+ * src/rbgobj_closure.c: improved closure handling. I hope this
1033
+ change fixes a closure related segmentation fault bug.
1034
+ - added available data marks and checked that marks.
1035
+
1036
+ 2006-09-21 kangabroo
1037
+
1038
+ * src/rbgobj_enums.c: fixed typo. bug #1561675.
1039
+
1040
+ 2006-08-17 Masao Mutoh <mutoh@highway.ne.jp>
1041
+
1042
+ * src/rbgobj_object.c: Compiled on GLib-2.8.x again.
1043
+
1044
+ 2006-07-09 Kouhei Sutou <kou@cozmixng.org>
1045
+
1046
+ * src/glib2.def, src/rbgobject.c, src/rbgobject.h
1047
+ (rbgobj_ruby_object_from_instance_with_unref):
1048
+ added convenience function.
1049
+ * src/rbglib.h (GOBJ2RVALU): added convenience macro.
1050
+
1051
+ * src/rbgobj_object.c: implemented GLib::InitiallyUnowned.
1052
+
1053
+ * src/rbglib.h (RVAL2CSTR2): added convenience macro.
1054
+
1055
+ 2006-06-30 Masao Mutoh <mutoh@highway.ne.jp>
1056
+
1057
+ * src/rbglib_mainloop.c, rbgobject.h, glib2.def: Improve to support
1058
+ Win32. rbg_(set|remove)_internal_poll_func are externed.
1059
+
1060
+ 2006-06-28 Masao Mutoh <mutoh@highway.ne.jp>
1061
+
1062
+ * src/lib/mkmf-gnome2.rb: Fixed wrong include path.
1063
+ * src/rbglib.h: Increment version info.
1064
+
1065
+ 2006-06-18 Masao Mutoh <mutoh@highway.ne.jp>
1066
+
1067
+ * src/rbgobj_type.c: Fixed a problem when the object which extends Module
1068
+ can't access the instance methods. Reported by Laurent Sansonetti and Bug #1496185.
1069
+
1070
+ 2006-06-17 Masao Mutoh <mutoh@highway.ne.jp>
1071
+
1072
+ * sample/type-register?.rb: Remove Gtk.init.
1073
+ * src/lib/glib2.rb: Added GLib.exit_application. This is called when it raises
1074
+ the exception in a callback proc and it isn't catched in the proc.
1075
+ * src/rbgutil.c: Added G_PROTECT_CALLBACK. You need to wrap the functions which
1076
+ run in the mainloop with this. This is based on rclosure_marshal_do() in
1077
+ src/rbgobj_closure.c.
1078
+ * src/rbgobj_closure.c: Apply above G_PROTECT_CALLBACK.
1079
+ * src/rbgutil.[ch]: Added GLIST2ARYF, GLIST2ARY2F, GSLIST2ARYF, GLIST2ARY2F.
1080
+ They free the list with g_list_free() or g_slist_free() internal.
1081
+ * src/glib2.def: Follow above changes.
1082
+
1083
+ 2006-06-09 Sjoerd Simons <sjoerd@luon.net>
1084
+
1085
+ * src/rbgobj_object.c: Only let the GObject mark function retrieve
1086
+ object properties that it will actually mark. Which is currently just
1087
+ other GObjects
1088
+
1089
+ 2006-06-05 Masao Mutoh <mutoh@highway.ne.jp>
1090
+
1091
+ * src/rbgobj_closure.c, glib2.def: Works on Windows again.
1092
+
1093
+ 2006-05-29 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1094
+
1095
+ * src/rbgobjvalue.c: Use g_type_set_qdata and g_type_get_qdata instead
1096
+ of ruby's hash table.
1097
+
1098
+ * src/rbgobj_singal.c: new function gobj_sig_connect_impl
1099
+ extracted from gobj_sig_connect and gobj_sig_connect_after.
1100
+
1101
+ * src/rbgobj_signal.c: Make eNoSignal and _signal_list to be static.
1102
+
1103
+ 2006-05-27 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1104
+
1105
+ * src/rbgobj_object.c: Remove GLib::Object#singleton_method_added.
1106
+ Now we can't define signal handlers by defining singleton methods.
1107
+
1108
+ * src/rbgobj_typeinstance.c (each_cinfo): Fix to traverse ancestor's cinfo.
1109
+
1110
+ * src/rbgobj_paramspecs.c, src/rbgobj_value.c: Use RVAL2GOBJ instead of
1111
+ rbgobj_param_spec_get_struct().
1112
+ * src/rbgobj_param.c: Rename rbgobj_param_spec_get_struct() to
1113
+ rbgobj_get_param_spec().
1114
+
1115
+ * src/rbgobject.c: Remove rbgobj_ruby_object_from_instance_if_exist
1116
+ and add rbgobj_ruby_object_from_instance2.
1117
+ * src/rbgobject.c: Remove rbgobj_get_value_from_gobject_if_exist
1118
+ and extend rbgobj_get_value_from_gobject by adding one argument.
1119
+ * src/rbgobj_param.c: Remove rbgobj_get_value_from_param_spec_if_exist
1120
+ and extend rbgobj_get_value_from_param_spec by adding one argument.
1121
+ * src/rbgobject.h, src/global.h, src/glib2.def,
1122
+ src/rbgobj_typeinstance.c: Follow above changes.
1123
+
1124
+ * src/rbgobj_typeinterface.c: New file.
1125
+ * src/rbgobj_type.c, src/rbgobject.c: separate some interface stuffs
1126
+ into src/rbgobj_typeinterface.c.
1127
+
1128
+ * src/rbgobj_typeinstance.c: New file.
1129
+ * src/rbgobj_type.c, src/rbgobject.c, rbgobj_param.c: separate
1130
+ some cInstantiatable stuffs into rbgobj_typeinstance.c.
1131
+ * src/global.h: ditto.
1132
+
1133
+ * src/rbgobj_closure.c: Revert changes of 2006-04-15.
1134
+ We shouldn't use Data_Make_Struct in rclosure_marshal since
1135
+ this function could be called from arbitrary threads.
1136
+ * src/rbgobj_closure.c: simplify codes a bit.
1137
+
1138
+ * src/rbgobject.c, src/rbgobj_value.c, rbgobject.h, src/glib2.def:
1139
+ Add new APIs:
1140
+ void rbgobj_gc_mark_instance(gpointer instance) and
1141
+ void rbgobj_gc_mark_gvalue(GValue* value).
1142
+
1143
+ * src/rbgobject.c: Change to call `mark` and `free` functions of all
1144
+ associated cinfo (not only direct one).
1145
+
1146
+ * src/rbgobj_object.c: Register mark procedure which marks
1147
+ each property value. So that each property value is protected from GC
1148
+ whenever the owner is alive.
1149
+
1150
+ * src/rbgobj_param.c:
1151
+ Add rbgobj_get_value_from_param_spec_if_exist.
1152
+
1153
+ * tests/test-glib2.rb (test_inheritance_and_gc): call GC.start.
1154
+
1155
+ 2006-05-27 Kouhei Sutou <kou@cozmixng.org>
1156
+
1157
+ * src/rbglib_maincontext.c: fixed idle/timeout callback memory leak.
1158
+
1159
+ * src/rbgobject.c: added rbgobj_get_relative_removable.
1160
+ * src/rbgobject.h: ditto.
1161
+ * src/glib2.def: ditto.
1162
+
1163
+ * src/rbglib_source.c: moved GLib::Source.remove to
1164
+ rbglib_maincontext.c
1165
+
1166
+ * src/rbglib.c: initialize source before main_context.
1167
+
1168
+ 2006-05-26 Sjoerd Simons <sjoerd@luon.net>
1169
+
1170
+ * src/rbgobj_closure.c: Ensure that a signal handler in ruby is always run in
1171
+ a ruby native thread. This allows signals coming from non-ruby native threads
1172
+ to be handled correctly. Needs ruby configured with --enable-pthread to work
1173
+ (otherwise the behaviour isn't changed)
1174
+
1175
+ 2006-05-26 Sjoerd Simons <sjoerd@luon.net>
1176
+
1177
+ * src/rbglib.h, src/global.h: Move the 64 bit integer
1178
+ util functions to the public header
1179
+
1180
+ 2006-05-27 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1181
+
1182
+ * src/rbgobj_signal.c: Fix the format string of rb_raise to match with
1183
+ actual arguments.
1184
+
1185
+ 2006-05-26 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1186
+
1187
+ * extconf.rb, src/rbgobj_rbgobj_closure.c: fix compilation error on YARV.
1188
+
1189
+ 2006-05-23 Sjoerd Simons
1190
+
1191
+ * src/rbgobj_fundamental.c: Fixed typo.
1192
+
1193
+ 2006-05-18 Kouhei Sutou <kou@cozmixng.org>
1194
+
1195
+ * src/lib/pkg-config.rb (PKGConfig#have_package): accepted 0.X.X
1196
+ version as check target version.
1197
+
1198
+ 2006-05-17 Masao Mutoh <mutoh@highway.ne.jp>
1199
+
1200
+ * src/rbgobj_strv.c: Removed GLib::Strv because they are useless.
1201
+ * src/rbgobj_valuearray.c: Removed GLib::ValueArray.
1202
+
1203
+ 2006-05-17 Sjoerd Simons
1204
+
1205
+ * src/rbgobj_valuearray.c: Added.
1206
+ * src/rbgobj_closure.c: Fixed crash when handling exception coming
1207
+ from an signal handler.
1208
+
1209
+ 2006-05-14 Sjoerd Simons
1210
+
1211
+ * src/rbgobj_enums.c: Don't crash if a genum's nick is uninitialized.
1212
+ * src/rbglib_completion.c: Fixed GLib::Completion#remove_items.
1213
+ * src/glib2.def, global.h, rbgobj_type.c, rbgobj_value.c,
1214
+ rbgobject.[ch], rbgobj_fundamental.c: Added to be able to
1215
+ add new fundamental object to Ruby/GLib2 such as GLib::Object,
1216
+ GLib::Boxed.
1217
+
1218
+ 2006-04-20 Kouhei Sutou <kou@cozmixng.org>
1219
+
1220
+ * src/rbgobj_closure.c (g_rclosure_attach): Fixed a bug
1221
+ GLib::Object.type_register doesn't work.
1222
+ * src/rbgobj_type.c: Fixed a bug GLib::MetaInterface#gtype doesn't
1223
+ work.
1224
+
1225
+ * src/rbgobj_closure.c: Fixed a closure reference count bug.
1226
+
1227
+ 2006-04-19 Kouhei Sutou <kou@cozmixng.org>
1228
+
1229
+ * src/rbgobj_type.c (rbgobj_lookup_class): fixed typo.
1230
+
1231
+ 2006-04-15 Kouhei Sutou <kou@cozmixng.org>
1232
+
1233
+ * src/rbgobj_closure.c (rclosure_marshal, rclosure_marshal_body):
1234
+ Changed an argument type to VALUE from struct marshal_arg *.
1235
+
1236
+ 2006-03-18 Kouhei Sutou <kou@cozmixng.org>
1237
+
1238
+ * src/rbgobj_closure.c: Fixed memory leak. Held closure in each
1239
+ object instead of using global table to protect GRClosure from
1240
+ Ruby's GC. Each function using GRClosure needs to call
1241
+ g_rclosure_attach to protect GRClosure from Ruby's GC.
1242
+
1243
+ * src/glib2.def: Added g_rclosure_attach.
1244
+ * src/rbgobject.h: ditto.
1245
+
1246
+ * src/rbgobj_object.c: Called g_rclosure_attach.
1247
+ * src/rbgobj_signal.c: ditto.
1248
+
1249
+ 2006-03-11 Joao Pedrosa
1250
+
1251
+ * src/rbglib_win32.c: Fix a typo on win32.
1252
+
1253
+ 2006-02-08 Kouhei Sutou <kou@cozmixng.org>
1254
+
1255
+ * src/rbglib_win32.c: Supported GLib.win32_locale and
1256
+ GLib.win32_locale_filename_from_utf8.
1257
+
1258
+ * src/rbglib_i18n.c: Supported GLib.language_names.
1259
+
1260
+ 2006-01-14 Kouhei Sutou <kou@cozmixng.org>
1261
+
1262
+ * src/rbglib_source.c: GLib::Source#remove -> GLib::Soruce.remove.
1263
+
1264
+ 2005-12-17 Masao Mutoh <mutoh@highway.ne.jp>
1265
+
1266
+ * src/rbgobj_signal.c: Fixed to use G_BLOCK_PROC.
1267
+
1268
+ 2005-11-23 Masao Mutoh <mutoh@highway.ne.jp>
1269
+
1270
+ * src/rbglib_timer.c: Fix to compile on Cygwin.
1271
+
1272
+ 2005-11-14 Masao Mutoh <mutoh@highway.ne.jp>
1273
+
1274
+ * src/rbglib.h: Increment micro version.
1275
+ * src/rbgobject.h, glib2.def: Fixed problems on Win32.
1276
+
1277
+ 2005-11-05 Masao Mutoh <mutoh@highway.ne.jp>
1278
+
1279
+ * src/rbgobject.[ch]: Added G_CHILD_REMOVE_ALL.
1280
+
1281
+ 2005-11-03 Masao Mutoh <mutoh@highway.ne.jp>
1282
+
1283
+ * src/rbglib_mainloop.c: rb_thread_wait_for waits 10ms instead of 100ms
1284
+ to avoid to lose any signals for Win32. Report by MIYAMUKO Katsuyuki.
1285
+ * src/rbgobject.[ch]: Added G_CHILD_SET, _UNSET, _ADD, _REMOVE.
1286
+ * src/rbgobj_object.c: Keeps ruby objects as instance variables
1287
+ of the object not to be GCed(GLib::Object#(set|get)_property).
1288
+ * src/rbgobject.c: Fixed memory leaks. Bug #1341573. Retrieve
1289
+ the code from 0.13.0. So, other libs need to support G_CHILD_*
1290
+ to avoid Tomasz's problem(2005-09-15).
1291
+
1292
+ 2005-10-16 Masao Mutoh <mutoh@highway.ne.jp>
1293
+
1294
+ * src/rbglib.h: Increment version information.
1295
+ * src/rbglib_mainloop.c: Fixed to compile on Win32.
1296
+
1297
+ 2005-10-15 Masao Mutoh <mutoh@highway.ne.jp>
1298
+
1299
+ * src/rbgobj_type.c, rbglib_timer.c, rbglib_completion.c,
1300
+ rbgobject.c, rbgobj_type.c, rbglib_messages.c:
1301
+ Fixed a compilation errors/warnings under GTK+-2.0/Ruby-1.6.
1302
+ * src/rbglib.c, src/rbglib_timer.c: Added GLib::Timer.
1303
+ * sample/timer.rb: Added.
1304
+ * src/rbglib_completion.c: Added GLib::Completion.
1305
+ * sample/completion.rb: Added.
1306
+
1307
+ 2005-10-10 Masao Mutoh <mutoh@highway.ne.jp>
1308
+
1309
+ * src/rbglib.c: Added constants from "Limits of Basic Types",
1310
+ "Numerical Definitions".
1311
+ * src/rbglib_shell.c: Added GLib::Shell.
1312
+ * sample/shell.rb: Added.
1313
+
1314
+ 2005-10-08 Masao Mutoh <mutoh@highway.ne.jp>
1315
+
1316
+ * src/lib/mkmf-gnome2.rb: Added make_version_header.
1317
+
1318
+ 2005-10-07 Masao Mutoh <mutoh@highway.ne.jp>
1319
+
1320
+ * src/rbglib_mainloop.c: Works with ruby threads and signal handlers.
1321
+ Reported by Bram Senders.
1322
+
1323
+ 2005-10-05 Masao Mutoh <mutoh@highway.ne.jp>
1324
+
1325
+ * src/rbgobj_enums.c: Supports spaces in nick names.
1326
+ Reported by Detlef Reichl.
1327
+
1328
+ 2005-10-04 Masao Mutoh <mutoh@highway.ne.jp>
1329
+
1330
+ * src/lib/mkmf-gnome2.rb: Fix a bug to compile
1331
+ Ruby-GNOME2 with Ruby/Cairo on Win32.
1332
+ * src/rbglib_utils.c: Fix a linking error on Win32.
1333
+ * extconf.rb: ditto.
1334
+
1335
+ 2005-09-29 Masao Mutoh <mutoh@highway.ne.jp>
1336
+
1337
+ * src/rbglib.c: Added GLib::BUILD_VERSION.
1338
+
1339
+ 2005-09-18 Masao Mutoh <mutoh@highway.ne.jp>
1340
+
1341
+ * src/rbgobj_type.c: Add GLib::MetaInterface#install_property, #property,
1342
+ #properties.
1343
+ * src/rbgobject.c: Doesn't wrap the set_foo functions
1344
+ for construct only properties by Sven Herzberg [Bug #1192975]
1345
+
1346
+ 2005-09-15 Masao Mutoh <mutoh@highway.ne.jp>
1347
+
1348
+ * src/lib/glib2.rb: Supports Ruby-GetText-Package.
1349
+ You can use GetText methods unless "require 'gettext'".
1350
+ And it works in English if the users don't have Ruby-GetText-Package.
1351
+ * src/rbgobject.c: Keep the ruby object when the GObject is removed by C side.
1352
+ Tomasz Wegrzanowski.
1353
+
1354
+ 2005-09-13 Masao Mutoh <mutoh@highway.ne.jp>
1355
+
1356
+ * src/rbglib_messages.c: Show Warning messages unless -d option.
1357
+ Pointed out by Guillaume Cottenceau.
1358
+
1359
+ 2005-09-12 Masao Mutoh <mutoh@highway.ne.jp>
1360
+
1361
+ * src/rbgobject.c (rbgobj_instance_from_ruby_object): Fixed the error messages
1362
+ "TypeError: fundamental type glong isn't supported" to
1363
+ "TypeError:Fixnum isn't supported". Pointed out by Guillaume Cottenceau.
1364
+
1365
+ 2005-09-08 Kouhei Sutou <kou@cozmixng.org>
1366
+
1367
+ * src/rbgobj_boxed.c (rbgobj_make_boxed): Return nil if boxed
1368
+ object is NULL.
1369
+
1370
+ 2005608-21 Pascal Terjan <pterjan@linuxfr.org>
1371
+
1372
+ * src/rbglib_utils.c: Added GLib.listenv and .host_name (2.8)
1373
+
1374
+ 2005-07-30 Masao Mutoh <mutoh@highway.ne.jp>
1375
+
1376
+ * src/rbglib.h: Increment version.
1377
+ * sample/type-register.rb: Fix a bug.
1378
+
1379
+ 2005-07-27 Masao Mutoh <mutoh@highway.ne.jp>
1380
+
1381
+ * src/lib/pkg-config.rb: Added PKGConfig.name, .description,
1382
+ .provides, .requires.
1383
+
1384
+ 2005-07-26 Masao Mutoh <mutoh@highway.ne.jp>
1385
+
1386
+ * src/rbglib_iochannel.c, rbglib_maincontext.c: Works on Win32 again.
1387
+
1388
+ 2005-07-24 Masao Mutoh <mutoh@highway.ne.jp>
1389
+
1390
+ * src/lib/pkg-config.rb: Added PKGConfig.list_all.
1391
+
1392
+ 2005-07-23 Masao Mutoh <mutoh@highway.ne.jp>
1393
+
1394
+ * extconf.rb, src/rbglib_maincontext.c, rbglib_iochannel.c:
1395
+ Fix to work on ruby-1.6.8, GTK+-2.0.6.
1396
+ * src/rbglib_iochannel.c, rbgobj_object.c: Fix a compiling warning.
1397
+
1398
+ 2005-07-15 Masao Mutoh <mutoh@highway.ne.jp>
1399
+
1400
+ * sample/iochannel.rb, timeout.rb: Modified header comments.
1401
+
1402
+ 2005-07-10 Masao Mutoh <mutoh@highway.ne.jp>
1403
+
1404
+ * sample/iochannel.rb: Added.
1405
+
1406
+ 2005-07-02 Masao Mutoh <mutoh@highway.ne.jp>
1407
+
1408
+ * tests/test-iochannel.*: Added tests for GLib::IOChannel.
1409
+
1410
+ 2005-06-30 Masao Mutoh <mutoh@highway.ne.jp>
1411
+
1412
+ * src/rbglib_iochannel.c: Rename GLib::IOChannel#fd => #fileno, #to_i.
1413
+ Improved #seek.
1414
+
1415
+ 2005-06-29 Masao Mutoh <mutoh@highway.ne.jp>
1416
+
1417
+ * src/rbglib_iochannel.c: Added GLib::IOChannel#each_char, #each, #each_line.
1418
+
1419
+ 2005-06-28 Masao Mutoh <mutoh@highway.ne.jp>
1420
+
1421
+ * src/rbglib_iochannel.c: Rename GLib::IOChannel#read_chars => #read.
1422
+ Unify GLib::IOChannel#read_to_end => #read.
1423
+
1424
+ 2005-06-26 Masao Mutoh <mutoh@highway.ne.jp>
1425
+
1426
+ * src/rbglib_iochannel.c: Rename GLib::IOChannel#read_unichar => #readchar.
1427
+ #read_line => #readline. Add #gets, #getc.
1428
+
1429
+ 2005-06-16 Masao Mutoh <mutoh@highway.ne.jp>
1430
+
1431
+ * src/rbgobj_strv.c: Fix double free error.
1432
+ * src/rbglib_iochannel.c: Added GLib::IOChannel.
1433
+ * src/rbglib.c, rbgobject.h: ditto.
1434
+
1435
+ 2005-03-24 Masao Mutoh <mutoh@highway.ne.jp>
1436
+
1437
+ * sample/spawn.rb: Add a comment. Bugs:1159417.
1438
+ * extconf.rb: Add require gtherad-2.0. Bugs: 1159413
1439
+
1440
+ 2005-03-21 Vincent Isambart <isambart@netcourrier.com>
1441
+
1442
+ * src/lib/pkg-config.rb: Renames the "libs" local variable to "libraries"
1443
+ to work ruby-1.9.x.
1444
+
1445
+ 2005-03-14 Masao Mutoh <mutoh@highway.ne.jp>
1446
+
1447
+ * src/rbglib.h, rbgobject.h: Move some macros/definitions to rbgobject.h
1448
+ Reported by Vincent Isambart.
1449
+ * src/rbglib_maincontext.c: Added GLib::MainContext#query.
1450
+
1451
+ 2005-03-13 Masao Mutoh <mutoh@highway.ne.jp>
1452
+
1453
+ * sample/idle.rb, timeout.rb, timeout2.rb: Added.
1454
+ * src/rbglib_pollfd.c: Added GLib::PollFD.
1455
+ * src/rbglib_source.c: Added GLib::Source.
1456
+ * src/rbglib_maincontext.c: Added GLib::MainContext#find_source,
1457
+ #add_poll, #remove_poll, GLib::Timeout, GLib::Idle, GLib::ChildWatch.
1458
+ * src/rbglib.[ch]: Support GLib::PollFD, GLib::Source.
1459
+
1460
+ 2005-03-12 Masao Mutoh <mutoh@highway.ne.jp>
1461
+
1462
+ * src/rbglib_mainloop.c: Added GLib::MainLoop.
1463
+ * src/rbglib_maincontext.c: Added GLib::MainContext.
1464
+ * src/rbglib.[ch]: Support GLib::MainLoop, GLib::MainContext.
1465
+
1466
+ 2005-03-06 Masao Mutoh <mutoh@highway.ne.jp>
1467
+
1468
+ * src/rbglib_threads.c, extconf.rb: Fix compiling problem on MSVC++.
1469
+
1470
+ 2005-03-05 Masao Mutoh <mutoh@highway.ne.jp>
1471
+
1472
+ * sample/spawn.rb: Added.
1473
+ * README: Revised.
1474
+
1475
+ 2005-02-26 Masao Mutoh <mutoh@highway.ne.jp>
1476
+
1477
+ * src/rbglib.c, rbglib_threads.c: Added GLib::Threads.
1478
+ * src/lib/pkg-config.rb: Added PKGConfig.cflags_only_I, .cflags_only_other.
1479
+ * src/rbglib.h: Increment version information.
1480
+
1481
+ 2005-02-26 KATO Kazuyoshi <kzys@8-p.info>
1482
+
1483
+ * src/rbgobj_type.c (rbgobj_lookup_class): Fixed a problem in Ruby 1.9.
1484
+ [ruby-list:40518] [ruby-dev:23690]
1485
+
1486
+ 2005-02-22 Masao Mutoh <mutoh@highway.ne.jp>
1487
+
1488
+ * src/lib/glib2.rb: Removed to call GLib::Log.cancel_handler.
1489
+
1490
+ 2005-02-17 Masao Mutoh <mutoh@highway.ne.jp>
1491
+
1492
+ * src/lib/mkmf-gnome2.rb: Don't remove Makefile with 'nmake clean'.
1493
+
1494
+ 2005-02-15 Masao Mutoh <mutoh@highway.ne.jp>
1495
+
1496
+ * README, COPYING.LIB: Replace "GNU LIBRARY GENERAL PUBLIC LICENSE"
1497
+ to "GNU LESSER GENERAL PUBLIC LICENSE".
1498
+
1499
+ 2005-02-09 Masao Mutoh <mutoh@highway.ne.jp>
1500
+
1501
+ * src/lib/glib2.rb: Fix the default error level.
1502
+
1503
+ 2005-02-02 Masao Mutoh <mutoh@highway.ne.jp>
1504
+
1505
+ * src/rbglib_messages.c: Fix a compiling warning on Cygwin.
1506
+
1507
+ 2005-02-01 Masao Mutoh <mutoh@highway.ne.jp>
1508
+
1509
+ * src/lib/mkmf-gnome2.rb: Change checking-rules order.
1510
+ Added GTK_BASE_PATH environment variable option for Win32.
1511
+ * src/rbglib.c, rbglib_convert.c, rbgutil.h, rbgobject.h:
1512
+ Remove to include glib.h directly.
1513
+
1514
+ 2005-01-31 Masao Mutoh <mutoh@highway.ne.jp>
1515
+
1516
+ * src/rbglib_messages.c: Fix segfault, and make it simple.
1517
+ Now it doesn't raise Exception, because of bad influence to
1518
+ other libs such as gnomeprint.
1519
+
1520
+ 2005-01-30 Masao Mutoh <mutoh@highway.ne.jp>
1521
+
1522
+ * extconf.rb: Follow mkmf-gnome2.rb changes.
1523
+ * src/lib/pkgconfig.rb: Separated from mkmf-gnome2.rb.
1524
+
1525
+ 2005-01-28 Masao Mutoh <mutoh@highway.ne.jp>
1526
+
1527
+ * src/rbglib_message.c, rbglib_spawn.c, rbgobject.c, rbgobj_boxed.c,
1528
+ rbgobj_closure.c,rbgobj_enums.c,rbgobj_object.c, rbgobj_type.c,
1529
+ src/lib/mkmf-gnome2.rb: Support MS VC++.
1530
+ * src/lib/mkmf-gnome2.rb: Added setup_win32, add_depend_package.
1531
+ * src/glib.def: Added rbgobj_register_class.
1532
+
1533
+ 2005-01-23 Masao Mutoh <mutoh@highway.ne.jp>
1534
+
1535
+ * src/lib/glib2.rb: Remove $KCODE="U". Reported by Dafydd Harries.
1536
+ Added header information.
1537
+
1538
+ 2005-01-09 Masao Mutoh <mutoh@highway.ne.jp>
1539
+
1540
+ * src/lib/glib2.rb: Improved error handling.
1541
+ * src/rbglib_messages.c: ditto.
1542
+ * src/rbgobj_strv.c: Added for GLib-2.4.x. Support GStrv as Array.
1543
+ * src/rbgobject.c: Support GStrv.
1544
+
1545
+ 2004-11-21 Masao Mutoh <mutoh@highway.ne.jp>
1546
+
1547
+ * src/rbglib_messages.c, src/lib/glib2.rb:
1548
+ Rewrite code to C for stablity.
1549
+
1550
+ 2004-11-14 Masao Mutoh <mutoh@highway.ne.jp>
1551
+
1552
+ * src/rbglib.h: Increment version information.
1553
+
1554
+ 2004-11-03 Masao Mutoh <mutoh@highway.ne.jp>
1555
+
1556
+ * src/rbglib_messages.c: Works again for ruby-1.8.x.
1557
+ Reported by Kohei Sutou.
1558
+
1559
+ 2004-10-31 Masao Mutoh <mutoh@highway.ne.jp>
1560
+
1561
+ * src/rbglib_messages.c: Check the paratmeter is Block or not.
1562
+
1563
+ 2004-10-22 Masao Mutoh <mutoh@highway.ne.jp>
1564
+
1565
+ * src/lib/glib2.rb: Added GLib.check_binding_version?
1566
+ * src/rbglib_utils.c: GLib.check_version: Use static variables
1567
+ instead of MACROS.
1568
+ GLib.check_version -> GLib.check_version?.
1569
+ * sample/utils.rb: ditto.
1570
+
1571
+ 2004-10-20 Masao Mutoh <mutoh@highway.ne.jp>
1572
+
1573
+ * src/rbglib_convert.c: Implemented GLib::ConvertError.
1574
+
1575
+ 2004-10-18 Masao Mutoh <mutoh@highway.ne.jp>
1576
+
1577
+ * src/lib/mkmf-gnome2.rb: Added PKGConfig.modversion, .check_version?.
1578
+ PKGConfig#have_package accept major, minor micro version to check
1579
+ the module version correctly.
1580
+ Pointed out by Kouhei Sutou.
1581
+
1582
+ 2004-10-17 Vincent Isambart <isambart@netcourrier.com>
1583
+
1584
+ * src/lib/mkmf-gnome2.rb: Renamed add_uniq_to_objs to add_obj.
1585
+
1586
+ 2004-10-17 Vincent Isambart <isambart@netcourrier.com>
1587
+
1588
+ * src/lib/mkmf-gnome2.rb: Added the add_uniq_to_objs function.
1589
+
1590
+ 2004-09-23 Masao Mutoh <mutoh@highway.ne.jp>
1591
+
1592
+ * src/lib/glib2.rb: Renamed GLib::Log.set_error_domain to
1593
+ GLib::Log.set_log_domain.
1594
+
1595
+ 2004-09-23 Masao Mutoh <mutoh@highway.ne.jp>
1596
+
1597
+ * src/lib/glib2.rb: Improved log handling.
1598
+ Define GLib::ERROR_DOMAIN, GLib::Object::LOG_DOMAIN,
1599
+ GLib::Thread::LOG_DOMAIN, GLib::Module::LOG_DOMAIN.
1600
+
1601
+ 2004-09-21 Masao Mutoh <mutoh@highway.ne.jp>
1602
+
1603
+ * src/lib/glib2.rb: Add GLib::Log.set_error_domain for improvement
1604
+ error handling.
1605
+
1606
+ 2004-09-03 Masao Mutoh <mutoh@highway.ne.jp>
1607
+
1608
+ * src/lib/glib2.rb: Set $KCODE to "U".
1609
+
1610
+ 2004-08-22 Masao Mutoh <mutoh@highway.ne.jp>
1611
+
1612
+ * src/rbgobj_enums.c: makes rbgobj_define_const to a global function.
1613
+ * src/rbglib_error.c: Fix bugs. Re-implement rbgerr_define_gerror.
1614
+
1615
+ 2004-08-19 Masao Mutoh <mutoh@highway.ne.jp>
1616
+
1617
+ * src/rbgobj_type.c: rbgobj_define_class() can define parent compulsorily.
1618
+ * src/rbgobj_param.c, rbgobj_object.c, rbgobj_boxed.c: Follow above change.
1619
+
1620
+ * src/rbgerror.c, rbglib.h: Added. Replace rbgutil_gerror2exception.
1621
+ * src/rbgutil.[ch]: Removed rbgutil_gerror2exception.
1622
+ * src/rbgfileutils.c: Added for GLib::FileError.
1623
+ * src/rbgutil.c: Improved RAISE_GERROR.
1624
+ * src/rbglib.c, glib2.def: Follow these changes.
1625
+
1626
+ 2004-08-15 Masao Mutoh <mutoh@highway.ne.jp>
1627
+
1628
+ * src/rbglib.h: Increment version number.
1629
+
1630
+ 2004-08-07 Masao Mutoh <mutoh@highway.ne.jp>
1631
+
1632
+ * src/rbglib_spawn.c: Fix warnings.
1633
+ * src/rbgobject.c: Fix a warning.
1634
+
1635
+ 2004-08-04 Masao Mutoh <mutoh@highway.ne.jp>
1636
+
1637
+ * src/rbglib.h: Define GPid when GLib < 2.4.0.
1638
+
1639
+ 2004-08-02 Masao Mutoh <mutoh@highway.ne.jp>
1640
+
1641
+ * src/rbglib_spawn.c: Change the parent of GLib::Spawn*Error to
1642
+ StandardError from SystemCallError.
1643
+ Added GLib::Spawn#async_with_pipes, #async, #sync.
1644
+ Make uniform of the return values of GLib::Spawn#command_line_sync
1645
+ to #sync.
1646
+
1647
+ 2004-08-01 Masao Mutoh <mutoh@highway.ne.jp>
1648
+
1649
+ * src/rbglib.h, glib2.def: Export rbglib_spawn_error()
1650
+ for Gdk::Screen#spawn_on_screen.
1651
+ Increment version.
1652
+
1653
+ 2004-07-31 Masao Mutoh <mutoh@highway.ne.jp>
1654
+
1655
+ * src/rbglib.c: setlocale parameter was changed.
1656
+ LC_CTYPE and LC_MESSAGES are set not LC_ALL.
1657
+
1658
+ 2004-07-24 Masao Mutoh <mutoh@highway.ne.jp>
1659
+
1660
+ * tests/test-glib2.rb: Removed ^M. Pointed out by Laurent Sansonetti.
1661
+ * src/rbglib.c: Version informations use variables not macros.
1662
+ Added GLib::INTERFACE_AGE, GLib::BINARY_AGE.
1663
+ Pointed out by Jeremy Henty
1664
+
1665
+ 2004-05-21 Masao Mutoh <mutoh@highway.ne.jp>
1666
+
1667
+ * src/rbglib.h. glib2.def: Fixed a problem with rbg_cstr2rval_with_free
1668
+ reported by Joao Pedrosa.
1669
+
1670
+ 2004-05-16 Masao Mutoh <mutoh@highway.ne.jp>
1671
+
1672
+ * src/rbgobject.c (rbgobj_define_property_accessor): Supports
1673
+ interface properties (Since 2.4).
1674
+ * src/rbgobj_type.c (rbgobj_init_interface): ditto.
1675
+
1676
+ 2004-05-15 Masao Mutoh <mutoh@highway.ne.jp>
1677
+
1678
+ * src/rbglib.[ch]: Add CSTR2RVAL2 which free given char* area.
1679
+
1680
+ 2004-05-05 Laurent Sansonetti <lrz@gnome.org>
1681
+
1682
+ * src/rbglib_spawn.c: Fixed a memory overflow bug in the
1683
+ spawn_error table.
1684
+
1685
+ 2004-05-01 Masao Mutoh <mutoh@highway.ne.jp>
1686
+
1687
+ * src/rbglib_spawn.c: Fix an initial error on some platforms
1688
+ to restrict errno to exist the environment.
1689
+ Reported by Laurent Sansonetti.
1690
+
1691
+ 2004-04-30 Masao Mutoh <mutoh@highway.ne.jp>
1692
+
1693
+ * sample/utils.rb: Add a sample.
1694
+ * src/rbglib_utils.c: Add/Modify some methods.
1695
+ * src/lib/glib2.rb: Fix a bug which GLib.__add_one_arg_setter(klass)
1696
+ doen't work for module function and moved from src/rbgutil.c.
1697
+
1698
+ 2004-04-30 Pascal Terjan <pterjan@linuxfr.org>
1699
+
1700
+ * src/rbglib_utils.c: Added.
1701
+ * src/rbglib.c: Follow rbglib_utils.c added.
1702
+
1703
+ 2004-04-27 Masao Mutoh <mutoh@highway.ne.jp>
1704
+
1705
+ * src/rbgobj_type.c: Accept a ruby class when GType[...] is required.
1706
+ * sample/type-register2.rb: Added.
1707
+ * src/rbglib_spawn.c: Improve error classes.
1708
+ Separate module from GLib to GLib::Spawn.
1709
+ Add GLib::Spawn.close_pid.
1710
+
1711
+ 2004-04-27 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
1712
+
1713
+ * src/rbglib_spawn.c: Added.
1714
+ * src/rbglib.c: Follow above changes.
1715
+
1716
+ 2004-04-20 Masao Mutoh <mutoh@highway.ne.jp>
1717
+
1718
+ * src/rbglib_messages.c: Fix bugs, Add GLib::Log.log, set_fatal_mask,
1719
+ set_always_fatal, some constants.
1720
+ * src/lib/glib2.rb: Add GLib::Log.error, message, critical, warning.
1721
+
1722
+ 2004-04-15 Masao Mutoh <mutoh@highway.ne.jp>
1723
+
1724
+ * src/rbglib_convert.c: Add GLib.utf8_validate.
1725
+ * src/rbglib.c: Commented out Init_mem(), because of "cross-thread violation"
1726
+ with Gst::Thread.
1727
+
1728
+ 2004-03-24 Masao Mutoh <mutoh@highway.ne.jp>
1729
+
1730
+ * src/rbgutil.c: RAISE_GERROR() returns error messages in UTF-8.
1731
+
1732
+ 2004-03-14 Masao Mutoh <mutoh@highway.ne.jp>
1733
+
1734
+ * src/rbglib.h: Increment version number.
1735
+
1736
+ 2004-03-10 Masao Mutoh <mutoh@highway.ne.jp>
1737
+
1738
+ * src/rbgobj_type.c: Fix a compilation error on MinGW.
1739
+
1740
+ 2004-03-07 Masao Mutoh <mutoh@highway.ne.jp>
1741
+
1742
+ * sample/type-register.rb: Omit a parameter for type_register.
1743
+
1744
+ 2004-03-06 Masao Mutoh <mutoh@highway.ne.jp>
1745
+
1746
+ * src/rbglib.h src/rbgobj_object.c src/rbgobj_paramspecs.c
1747
+ src/rbgobj_signal.c src/rbgobj_type.c src/rbgobject.c
1748
+ src/rbgobject.h src/rbgutil.c src/lib/mkmf-gnome2.rb: Update Copyright.
1749
+ * src/lib/mkmf-gnome2.rb: Work under ruby-1.8.1 or later on Cygwin.
1750
+
1751
+ 2004-03-05 Masao Mutoh <mutoh@highway.ne.jp>
1752
+
1753
+ * src/rbgobj_object.c: Fix a memleak for GLib::Object#properties.
1754
+ * src/rbgobj_signal.c: Fix a memleak for GLib::Object#signals.
1755
+
1756
+ 2004-03-04 Masao Mutoh <mutoh@highway.ne.jp>
1757
+
1758
+ * src/rbgutil.c: Work under ruby-1.6.8.
1759
+ The idea is from Sasada Koichi.
1760
+
1761
+ 2004-03-02 Masao Mutoh <mutoh@highway.ne.jp>
1762
+
1763
+ * src/rbglib.h: Increment version number.
1764
+
1765
+ 2004-02-24 Masao Mutoh <mutoh@highway.ne.jp>
1766
+
1767
+ * src/rbgobject.c: Remove id, send from prop_exclude_list.
1768
+
1769
+ 2004-02-23 Masao Mutoh <mutoh@highway.ne.jp>
1770
+
1771
+ * src/rbgobject.h: Add G_DEF_CLASS3(). This is for real-gtype
1772
+ but its foo_get_type() isn't public method such as GdkScreenX11.
1773
+ * src/rbgobj_type.c: Add RGObjClassInfoDynamic and G_DEF_CLASS3().
1774
+ * src/glib2.def: ditto.
1775
+
1776
+ 2004-02-22 Masao Mutoh <mutoh@highway.ne.jp>
1777
+
1778
+ * src/rbgobject.c: prop_exclude_list defined as a static hash.
1779
+
1780
+ 2004-02-14 Vincent Isambart <isambart@netcourrier.com>
1781
+
1782
+ * src/lib/mkmf-gnome2.rb: replaced PLATFORM with RUBY_PLATFORM
1783
+
1784
+ 2004-02-01 Masao Mutoh <mutoh@highway.ne.jp>
1785
+
1786
+ * src/rbgobj_paramspecs.c: Fix a bug for GLib::Param::Flags.new.
1787
+
1788
+ 2003-12-21 Masao Mutoh <mutoh@highway.ne.jp>
1789
+
1790
+ * src/rbgobj_object.c: Fix a typo. Pointed out by Kazuhiro NISHIYAMA.
1791
+
1792
+ 2003-12-21 Kenichi Komiya <kom@mail1.accsnet.ne.jp>
1793
+
1794
+ * src/rbgobj_object.c: Check when the first argument is nil or Hash.
1795
+
1796
+ 2003-11-22 Masao Mutoh <mutoh@highway.ne.jp>
1797
+
1798
+ * src/rbglib.h: increment RBGLIB_MICRO_VERSION.
1799
+
1800
+ 2003-11-15 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1801
+
1802
+ * src/rbgobj_enums.c: disable range checks.
1803
+
1804
+ * sample/type-register.rb: call GLib::Object#notify when a
1805
+ property is updated.
1806
+
1807
+ * src/rbgobj_signal.c: remove GLib::MetaInterface#signal_override
1808
+ and GLib::Instantiatable#signal_chain_from_overridden.
1809
+
1810
+ 2003-11-10 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1811
+
1812
+ * src/rbglib.c: remove duplication of #include <locale.h>.
1813
+
1814
+ 2003-11-10 Masao Mutoh <mutoh@highway.ne.jp>
1815
+
1816
+ * src/rbgobj_enums.c, rbgobject.h: Add G_RENAME_NICK.
1817
+
1818
+ 2003-11-07 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1819
+
1820
+ * sample/type-register.rb: remove Japanese comments.
1821
+
1822
+ * src/rbglib.h: increment RBGLIB_MINOR_VERSION.
1823
+
1824
+ * src/rbgobj_object.c: do not depend on C99, Thanks to Hiroshi
1825
+ IGARASHI.
1826
+
1827
+ * src/rbgobj_object.c: remove unnecessary #endif, Thanks to Nobuyoshi
1828
+ Nakada.
1829
+
1830
+ 2003-11-05 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1831
+
1832
+ * sample/type-register.rb: add new file.
1833
+
1834
+ * rename test/test-glib2.rb to tests/test-glib2.rb.
1835
+
1836
+ * src/rbgobj_object.c: rename GLib::Object.register_type to
1837
+ type_register and change its arguments.
1838
+
1839
+ * src/rbgobj_object.c, src/rbgobj_signal.c, src/global.h: enable
1840
+ subtyping codes by default.
1841
+
1842
+ 2003-10-29 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1843
+
1844
+ * src/global.h, src/rbgobj_object.c, src/rbgobj_signal.c: share a
1845
+ module which serves to hook 'super'.
1846
+
1847
+ * src/rbgobj_signal.c: change prefix of default handler of signals
1848
+ from 'do_' to 'signal_do_'.
1849
+
1850
+ * test/test-glib2.rb: new file.
1851
+
1852
+ 2003-10-26 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1853
+
1854
+ * src/rbgobj_object.c (get_prop_func, set_prop_func): replace '-' with
1855
+ '_' from method name.
1856
+
1857
+ * src/rbgobj_object.c (get_prop_func, set_prop_func): do not call
1858
+ #do_get_property and #do_set_property, but #foo and #foo=.
1859
+
1860
+ * src/rbgobj_signal.c (gobj_s_signal_new): change the arity of
1861
+ GLib::Instantiatable#signal_new.
1862
+
1863
+ 2003-10-24 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1864
+
1865
+ * src/rbgobj_signal.c (emit_body, chain_from_overridden_body):
1866
+ remove G_SIGNAL_TYPE_STATIC_SCOPE flag from parameters and
1867
+ return value.
1868
+
1869
+ 2003-10-23 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1870
+
1871
+ * src/rbgobj_enum.c (rbgobj_get_enum, rbgobj_get_flags): check if the
1872
+ argument GType is subtype of GEnum or GFlags.
1873
+
1874
+ * src/rbgobj_signal.c: new method
1875
+ GLib::Instantiatable#signal_has_handler_pending?.
1876
+
1877
+ * src/rbgobj_signal.c (g_signal_handler_block,
1878
+ gobj_sig_handler_unblock, gobj_sig_handler_disconnect):
1879
+ use NUM2ULONG instead of NUM2INT.
1880
+
1881
+ 2003-10-14 Masao Mutoh <mutoh@highway.ne.jp>
1882
+
1883
+ * src/rbgobj_signal.c: Fix a segfault when GLib::Object#signal_emit
1884
+ is called.
1885
+
1886
+ 2003-10-08 Laurent Sansonetti <lrz@gnome.org>
1887
+
1888
+ * src/rbgobj_param.c: Removed a compilation warning in function
1889
+ value_validate_ensure().
1890
+
1891
+ 2003-10-05 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1892
+
1893
+ * src/rbglib.c: call g_mem_set_vtable() to make glib to use
1894
+ ruby_xmalloc(), ruby_xrealloc(), ruby_xfree().
1895
+
1896
+ 2003-09-26 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1897
+
1898
+ * src/lib/mkmf-gnome2.rb: append "-I$(sitearchdir)" to $CPPFLAGS not
1899
+ $CFLAGS. and stop overriding create_makefile().
1900
+
1901
+ 2003-09-23 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1902
+
1903
+ * src/rbgobj_signal.c (gobj_s_signal_new): use #instance_method,
1904
+ UnboundMethod#bind and Method#call instead of #__send__.
1905
+
1906
+ * src/rbgobj_signal.c (gobj_s_method_added): check GType.
1907
+
1908
+ 2003-09-22 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1909
+
1910
+ * src/rbgobj_signal.c (gobj_s_sig_override): check if the class is
1911
+ registered.
1912
+
1913
+ * src/rbgobj_signal.c (gobj_s_method_added): when a method named
1914
+ 'do_<signal_name>' is defined then override default handler by the
1915
+ method.
1916
+
1917
+ 2003-09-20 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1918
+
1919
+ * src/rbgobj_type.c: override #append_features of interface modules to
1920
+ prevent including them into classes which is not subclass of
1921
+ GLib::Instantiatable.
1922
+
1923
+ 2003-09-18 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1924
+
1925
+ * src/rbgobj_closure.c: implement GLib::Closure#invalidate.
1926
+
1927
+ * src/rbgobj_closure.c: don't invoke Proc objects after ruby is
1928
+ terminated.
1929
+
1930
+ * src/rbgobj_signal.c: implement GLib::MetaInterface#signal_override
1931
+ and GLib::Instantiatable#signal_chain_from_overridden experimentaly.
1932
+
1933
+ 2003-09-06 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1934
+
1935
+ * src/rbglib.c: define GLib::BINDING_VERSION.
1936
+
1937
+ * src/lib/mkmf-gnome2.rb: use PKG_CONFIG environment variable.
1938
+
1939
+ 2003-09-06 Masao Mutoh <mutoh@highway.ne.jp>
1940
+
1941
+ * src/lib/mkmf_gnome2.rb: Pass "-l$(sitearchdir)" at last of $CFLAGS.
1942
+
1943
+ 2003-09-03 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1944
+
1945
+ * src/rbgobj_object.c (register_type): if the super type is not defined
1946
+ by ruby, then include a new module that defines #initialize.
1947
+
1948
+ * src/rbgobj_param.c (value_validate): use rb_ensure().
1949
+
1950
+ * src/rbgobj_param.c: disable GLib::Param#value_defaults? since the
1951
+ name is bad.
1952
+
1953
+ 2003-08-31 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1954
+
1955
+ * src/rbgobj_enum.c (enum_coerce): use NUM2INT not NUM2UINT.
1956
+
1957
+ * src/rbgobj_paramspecs.c: delete unnecessary StringValue invocation.
1958
+
1959
+ * src/rbgobj_paramspecs.c: use RVAL2GENUM and RVAL2GFLAGS.
1960
+
1961
+ 2003-08-30 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1962
+
1963
+ * src/lib/glib2.rb: rescue LoadError and Win32::Registry::Error
1964
+ separately.
1965
+
1966
+ * src/lib/glib2.rb: On mingw32 and mswin32 platform, require
1967
+ 'win32/registry' unconditionaly and rescue LoadError.
1968
+ (proposed by TAMURA.KENICHI <sgs02516@nifty.com>)
1969
+
1970
+ * src/rbgobj_enums.c: fixed rgbobj_get_enum - a VALUE was not
1971
+ converted to int before calling rbgobj_make_enum.
1972
+ (reported by Geoff Youngs <g@intersect-uk.co.uk>)
1973
+
1974
+ 2003-08-29 Vincent Isambart <isambart@netcourrier.com>
1975
+
1976
+ * src/rbgobj_enums.c: fixed rgbobj_get_flags - a VALUE was not
1977
+ converted to unsigned int before calling rbgobj_make_flags.
1978
+
1979
+ 2003-08-28 Masao Mutoh <mutoh@highway.ne.jp>
1980
+
1981
+ * extconf.rb: Exit with 1 when the package is not found.
1982
+
1983
+ 2003-08-25 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
1984
+
1985
+ * src/rbgobject.h: new macros RVAL2GENUM(), RVAL2GFLAGS(),
1986
+ GENUM2RVAL() and GFLAGS2RVAL().
1987
+
1988
+ * src/rbgobj_signal.c: new exception class GLib::NoSignalError.
1989
+
1990
+ * src/rbgobj_object.c: new exception class GLib::NoPropertyError.
1991
+
1992
+ * src/lib/glib2.rb: append Dropline GTK2-Runtime DLL path into PATH
1993
+ environmental variable. (proposed by TAMURA.KENICHI <sgs02516@nifty.com>)
1994
+
1995
+ * src/rbgobj_object.c: remove GLib::Object#property.
1996
+
1997
+ * src/rbgobj_enums.c (rbgobj_get_enum, rbgobj_get_flags):
1998
+ create temporary enum/flags object if the argument is an integer.
1999
+ this is to check if the integer is in the values avalable in the type.
2000
+ (proposed by Vincent Isambart <vincent.isambart@laposte.net>
2001
+
2002
+ * src/rbgobject.c (rbgobj_initialize_object): raise RuntimeError
2003
+ if the argument is NULL. (proposed by Vincent Isambart
2004
+ <vincent.isambart@laposte.net>)
2005
+
2006
+ 2003-08-21 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2007
+
2008
+ * src/rbgobj_boxed.c: define GLib::Boxed#initialize which simply raise
2009
+ TypeError.
2010
+
2011
+ * src/rbglib2.rb: fix format of GLib::Flags#inspect.
2012
+
2013
+ * src/glib2.def, src/global.h, src/rbgobj_enums.c, src/rbgobj_type.c,
2014
+ src/rbgobj_value.c, src/rbgobject.h, src/lib/glib2.rb: new classes
2015
+ GLib::Enum and GLib::Flags.
2016
+
2017
+ 2003-08-17 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2018
+
2019
+ * src/lib/glib2.rb: add new file.
2020
+
2021
+ * src/lib/mkmf-gnome2.rb (PKGConfig.have_package): don't use
2022
+ Array#quote. Because mkmf.rb of ruby-1.6 doesn't provide this method.
2023
+
2024
+ 2003-08-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2025
+
2026
+ * src/rbgobject.h, src/rbgobj_type.c, let rbgobj_define_class() to
2027
+ take `const gchar*', not `gchar*'.
2028
+
2029
+ 2003-08-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2030
+
2031
+ * src/lib/mkmf-gnome2.rb (PKGConfig.have_package): append linker
2032
+ flags other than -l and -L into $LDFLAGS.
2033
+
2034
+ 2003-08-09 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2035
+
2036
+ * src/rbgobj_signal.c (gobj_sig_emit): fix to setup arg.self.
2037
+
2038
+ 2003-08-09 Masao Mutoh <mutoh@highway.ne.jp>
2039
+
2040
+ * src/depend: use old style
2041
+ * src/glib2.def: Add rbgobj_constant_remap.
2042
+
2043
+ 2003-08-06 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2044
+
2045
+ * src/rbgobj_valuetypes.c: use GHashTable instead of Ruby's Hash
2046
+ for reference counting. Using Ruby's Hash may cause segmentaion fault
2047
+ when ruby exits.
2048
+
2049
+ * src/rbgobj_closure.c: use GHashTable instead of Ruby's Hash
2050
+ for the same reason as src/rbgobj_valuetypes.c.
2051
+
2052
+ * src/rbgobject.c (rbgobj_gobject_initialize): don't warn if the
2053
+ instance type is a subtype of the class type.
2054
+
2055
+ 2003-08-03 Masao Mutoh <mutoh@highway.ne.jp>
2056
+
2057
+ * src/rbgobj_valuetypes.c: Fix error for gcc 2.95.4.
2058
+ Reported by Hiroshi Igarashi.
2059
+
2060
+ 2003-08-02 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2061
+
2062
+ * src/lib/mkmf-gnome2.rb (PKGConfig.have_package): use --libs-only-l
2063
+ and --libs-only-L instead of --libs.
2064
+
2065
+ 2003-08-02 Masao Mutoh <mutoh@highway.ne.jp>
2066
+
2067
+ * src/lib/mkmf-gnome2.rb: fix for other libraries can't compile
2068
+ in other directories.
2069
+
2070
+ 2003-08-02 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2071
+
2072
+ * src/rbgobj_object.c (gobj_s_properties),
2073
+ src/rbgobj_signal.c (gobj_s_signals): recurse by default.
2074
+
2075
+ 2003-08-01 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2076
+
2077
+ * src/rbgobj_type.c: don't free RGObjClassInfo structure.
2078
+
2079
+ 2003-07-28 Geoff Youngs <g@intersect-uk.co.uk>
2080
+ * src/rbgobj_enums.c: add rbgobj_constant_* to allow renaming
2081
+ invalid constants.
2082
+ * src/rbgobject.h: add G_RENAME_CONSTANT
2083
+
2084
+ 2003-07-26 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2085
+
2086
+ * src/rbgobj_closure.c (rclosure_marshal): don't stop jumps.
2087
+ This is a temporary solution for the Ruby-GNOME2 0.6 release.
2088
+
2089
+ 2003-07-22 Masao Mutoh <mutoh@highway.ne.jp>
2090
+
2091
+ * src/rbglib.h: add CBOOL2RVAL, RVAL2CBOOL.
2092
+
2093
+ * src/lib/mkmf-gnome2.rb: Change include orders.
2094
+
2095
+ 2003-07-21 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2096
+
2097
+ * src/rbgobj_enums.c (rbgobj_flags_add_constants): use UINT2NUM()
2098
+ instaed of INT2NUM().
2099
+
2100
+ * src/rbgobj_object.c (gobj_smethod_added): use
2101
+ rbgobj_get_signal_func().
2102
+
2103
+ * src/rbgobj_signal.c (gobj_s_signal_new): fix to treat accumulator
2104
+ correctly.
2105
+
2106
+ * src/rbgobj_type.c: implement GLib::Type#<=>.
2107
+
2108
+ * src/rbgobj_type.c: change superclass of GLib::Boxed from Data to
2109
+ Object.
2110
+
2111
+ * src/global.h, rbgutil.c: add new functions generic_s_new(),
2112
+ generic_s_gtype() and generic_gtype().
2113
+
2114
+ * rbgobj_boxed.c, rbgobj_type.c: use generic_s_new(),
2115
+ generic_s_gtype() and generic_gtype().
2116
+
2117
+ 2003-07-21 Masao Mutoh <mutoh@highway.ne.jp>
2118
+
2119
+ * src/rbgobj_closure.c: enhance warning message of rclosure_marshal()
2120
+ which is used in GLib::Instantiatable#signal_connect().
2121
+
2122
+ 2003-07-20 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2123
+
2124
+ * src/rbgobj_signal.c, src/rbgobj_type.c, src/global.h: enable
2125
+ rbgobj_define_action_methods() by default.
2126
+ This function defines methods that emit action signals.
2127
+
2128
+ Action signals are signals that may freely be emitted on alive
2129
+ objects from user code via g_signal_emit() and friends, without
2130
+ the need of being embedded into extra code that performs pre or
2131
+ post emission adjustments on the object. They can also be thought
2132
+ of as by third-party code generically callable object methods.
2133
+
2134
+ * src/rbgobject.h, src/rbgobj_enum.c, src/glib2.def: add new function
2135
+ rbgobj_add_constants() and new macro G_DEF_CONSTANTS().
2136
+
2137
+ 2003-07-18 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2138
+
2139
+ * src/rbgobj_signal.c (signal_add_emission_hook): fix to treat `detail'
2140
+ argument correctly.
2141
+
2142
+ 2003-07-17 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2143
+
2144
+ * src/rbgobj_closure.c (rclosure_marshal): use rb_protect().
2145
+
2146
+ * src/rbgobj_valuetypes.c (value_transform_ruby_any): use rb_protect().
2147
+
2148
+ * src/rbgobject.c (rbgobj_gobject_new): use rb_ensure().
2149
+
2150
+ * src/rbgobj_signal.c (gobj_sig_emit): use rb_ensure().
2151
+
2152
+ * src/rbgobj_object.c (gobj_set_property):
2153
+ call rbgobj_rvalue_to_gvalue() even if the argument is nil.
2154
+
2155
+ * src/rbgobj_signal.c: remove Dispatch Closure stuff.
2156
+ use g_rclosure_new() instead.
2157
+
2158
+ * src/rbgobj_value.c (rbgobj_rvalue_to_gvalue): call #to_s only for
2159
+ Symbol->G_TYPE_STEING conversion.
2160
+
2161
+ * src/rbgobject.c (rbgobj_gobject_initialize): check if the argument
2162
+ has expected GType.
2163
+
2164
+ * src/rbgobject.c (rbgobj_get_gobject): raise TypeError instead of
2165
+ ArgumentError.
2166
+
2167
+ 2003-07-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2168
+
2169
+ * src/rbgobj_boxed.c (boxed_to_ruby): convert NULL to nil.
2170
+
2171
+ * src/rbgobj_object.c (register_type): change error message:
2172
+ "parent class" to "super class".
2173
+
2174
+ * src/rbgobj_param.c: remove Param#default=.
2175
+ rename Param#defaults to Param#value_defaults?.
2176
+ rename Paramcompare to Param#value_compare.
2177
+ implement Param#value_validate, #value_convert,
2178
+ (value_defaults) initialize tmp.
2179
+
2180
+ * src/rbgobj_paramspecs.c: remove *#default and *#default_value.
2181
+
2182
+ * src/rbgobj_type.c:
2183
+ (get_superclass): change to static function.
2184
+ (GLib::Type#initialize): check if the given integer is valid GType
2185
+ by using g_type_name().
2186
+ (GLib::Type#==, #<, #>, #<=, #>=): return nil when uncomparable.
2187
+
2188
+ 2003-07-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2189
+
2190
+ * src/depend: use $(srcdir) to allow building in different directories.
2191
+
2192
+ * src/rbgobj_param.c (inspect): change inspect format.
2193
+
2194
+ * src/rbgobj_param.c: new methods:
2195
+ GLib::Param#owner, GLib::Param#readable?,
2196
+ GLib::Param#writable?, GLib::Param#construct?,
2197
+ GLib::Param#construct_only?, GLib::Param#lax_validation?,
2198
+ GLib::Param#private?, GLib::Param#readwrite?
2199
+
2200
+ * src/rbgobj_paramspec.c: new methods:
2201
+ GLib::Param::Char#range, GLib::Param::UChar#range,
2202
+ GLib::Param::Int#range, GLib::Param::UInt#range,
2203
+ GLib::Param::Long#range, GLib::Param::ULong#range,
2204
+ GLib::Param::Int64#range, GLib::Param::UInt64#range,
2205
+ GLib::Param::Float#range, GLib::Param::Double#range
2206
+
2207
+ * src/rbgobj_boxed.c: implement GLib::Boxed#inspect and
2208
+ GLib::Boxed#initialize_copy.
2209
+ (boxed_from_ruby): accept nil and set NULL.
2210
+
2211
+ * src/rbgobj_signal.c: implement GLib::Signal#inspect and
2212
+ GLib::Signal#owner.
2213
+ (to_signal_id, to_gquark): removed.
2214
+ (gobj_s_signal_new, gobj_s_signal, gobj_sig_emit, gobj_sig_emit_stop):
2215
+ accept Symbol.
2216
+ (query_signal_id, query_signal_name, query_itype, query_return_type,
2217
+ query_signal_flags, query_param_types): fix argument declaration.
2218
+
2219
+ * src/rbgobj_valuetypes.c: implement GLib::Pointer#inspect,
2220
+ GLib::Pointer#==, GLib::Pointer#eql? and GLib::Pointer#hash.
2221
+
2222
+ 2003-07-13 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2223
+
2224
+ * src/rbgobj_value.c, rbgobj_type.c:
2225
+ Accept rb_cObject as RBGOBJ_TYPE_RUBY_VALUE not G_TYPE_POINTER.
2226
+
2227
+ 2003-07-10 Masao Mutoh <mutoh@highway.ne.jp>
2228
+
2229
+ * src/rbgobj_value.c, rbgobj_value_types.c, rbgobj_type.c:
2230
+ Accept rb_cObject as G_TYPE_POINTER.
2231
+
2232
+ 2003-06-26 Masao Mutoh <mutoh@highway.ne.jp>
2233
+
2234
+ * src/rbgutil.h: Define G_BLOCK_PROC for ruby-1.8.x.
2235
+ * src/*c: Use G_BLOCK_PROC instead of rb_f_lambda().
2236
+ * src/lib/mkmf-gnome2.rb: Check rb_block_proc().
2237
+
2238
+ 2003-06-23 Masao Mutoh <mutoh@highway.ne.jp>
2239
+
2240
+ * src/rbglib.c: Add GLib::PRIORITY_*.
2241
+
2242
+ 2003-06-22 Masao Mutoh <mutoh@highway.ne.jp>
2243
+
2244
+ * src/rbglib.c: Call setlocale(LC_NUMERIC, "C") for some locales
2245
+ which doesn't use "." as decimal-point.
2246
+ Pointed out by Joao Pedrosa.
2247
+
2248
+ 2003-05-27 Geoff Youngs <g@intersect-uk.co.uk>
2249
+
2250
+ * rbgobject.c - altered rbgobj_instance_from_ruby_object()
2251
+ and rbgobj_ruby_object_from_instance() to
2252
+ convert between NULL and nil automatically
2253
+
2254
+ 2003-05-27 Masao Mutoh <mutoh@highway.ne.jp>
2255
+
2256
+ * src/depend: Add a file.
2257
+ * src/lib/mkmf-gnome2.rb: Add a file(Move from ../).
2258
+ * extconf.rb: Follow above changes.
2259
+
2260
+ 2003-05-21 Masao Mutoh <mutoh@highway.ne.jp>
2261
+
2262
+ * src/rbgutil.c: klass.instance_methods to klass.instance_methods(false)
2263
+ for ruby-1.8.x.
2264
+ * src/rbgobject.h, rbgobj_type.c: Remove rbgobj_exist_class().
2265
+ Use rb_const_define_at() instead. Pointed out by Masahiro Sakai.
2266
+
2267
+ 2003-05-19 Masao Mutoh <mutoh@highway.ne.jp>
2268
+
2269
+ * src/rbgobj_type.c, rbgobject.h: Add rbgobj_exist_class().
2270
+
2271
+ 2003-04-13 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2272
+
2273
+ * src/rbgobj_type.c: fix so that GLib::Type#to_class can treat
2274
+ GEnum's descendants.
2275
+
2276
+ * src/rbgobj_object.c: enable GLib::Object.new! by default
2277
+
2278
+ * src/rbgobj_object.c (gobj_s_install_property): modify error message.
2279
+
2280
+ * src/rbgobj_signal.c (gobj_s_signal_new): check if the class has a
2281
+ registerd type.
2282
+
2283
+ * src/rbgobj_signal.c: implement GLib::Signal#{run_first?, run_last?,
2284
+ run_cleanup?, no_recurse?, detailed?, action?, no_hooks?}
2285
+
2286
+ 2003-04-12 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2287
+
2288
+ * src/rbgobj_object.c (GLib::Object.new!): check if the class has a
2289
+ registered type.
2290
+
2291
+ * src/rbgobj_object.c: implement GLib::Object.install_property
2292
+
2293
+ * src/rbgobj_object.c: improve type registeration system.
2294
+
2295
+ * src/rbgobj_paramspecs.c: fix to use appropriate GType.
2296
+
2297
+ * src/rbgobj_type.c, src/rbgobject.h: Add a new function
2298
+ rbgobj_register_class() and rewring
2299
+ _register_fundamental_klass_to_gtype() and
2300
+ _register_fundamental_gtype_to_klass() with it.
2301
+
2302
+ 2003-04-08 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2303
+
2304
+ * src/rbgobj_type.c: fix typo. ( interfaced? => interface? )
2305
+
2306
+ * src/rbgobj_type.c: implement GLib::Type#<, GLib::Type#>,
2307
+ GLib::Type#<= and GLib::Type#>=.
2308
+
2309
+ * src/rbgobj_signal.c: Extend GLib::Instantiatable#signal_handler_block
2310
+ to take a block.
2311
+
2312
+ * src/rbgobj_signal.c (gobj_s_signals): Fix memory leak.
2313
+
2314
+ * src/rbgobj_object.c: Use RVAL2GTYPE().
2315
+
2316
+ * src/rbgobj_type.c (interface_get_gtype): Use CLASS2GTYPE().
2317
+
2318
+ * src/rbgobject.c (rbgobj_define_property_accessors): ditto
2319
+
2320
+ 2003-04-07 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2321
+
2322
+ * src/rbgobj_signal.c: Implement a new function
2323
+ rbgobj_define_action_methods() experimentaly.
2324
+ This function defines methods that emit action signals.
2325
+
2326
+ Action signals are signals that may freely be emitted on alive
2327
+ objects from user code via g_signal_emit() and friends, without
2328
+ the need of being embedded into extra code that performs pre or
2329
+ post emission adjustments on the object. They can also be thought
2330
+ of as by third-party code generically callable object methods.
2331
+
2332
+ * src/rbgobj_signal.c: Extend GLib::Object.signals to
2333
+ GLib::Object.signals([inherited_too])
2334
+
2335
+ * src/rbgobj_object.c: Extend GLib::Object.properties to
2336
+ GLib::Object.properties([inherited_too])
2337
+
2338
+ * src/global.h, src/rbgobj_signal.c, rbgobj_type.c:
2339
+ gsub(/mInterfaceCommons/, 'mMetaInterface') and define
2340
+ GLib::MetaInterface.
2341
+
2342
+ * src/rbgobj_paramspecs.c (GLib::Param::String#default_value):
2343
+ use rbg_cstr2rval() instead of rb_str_new2(). Because we need to
2344
+ allow NULL.
2345
+
2346
+ * src/rbgobj_type.c: simplify the format of GLib::Type#inspect
2347
+
2348
+ 2003-04-06 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2349
+
2350
+ * src/rbgobj_signal.c: rename signal_emit_by_name and
2351
+ signal_emit_stop_by_name to signal_emit and signal_emit_stop
2352
+ respectively.
2353
+
2354
+ * src/rbgobj_signal.c: remove Signal#signal_id, Signal#signal_name,
2355
+ Signal#signal_flags.
2356
+
2357
+ 2003-04-05 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2358
+
2359
+ * extconf.rb: add --enable-experimental option
2360
+
2361
+ * src/rbgobj_signal.c (gobj_s_signal_new): implement accumulator stuff.
2362
+
2363
+ * src/rbgobj_signal.c: code cleanup
2364
+
2365
+ * src/rbgobj_signal.c: use signal_id as a key of signal_func_table.
2366
+
2367
+ * src/rbgobj_signal.c: change rbgobj_get_signal_func() to static
2368
+ function.
2369
+
2370
+ * src/rbgobj_signal.c: implement Signal#add_emission_hook and
2371
+ Signal#remove_emission_hook
2372
+
2373
+ 2003-04-04 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2374
+
2375
+ * src/rbgobj_object.c (gobject_class_new): implement the function
2376
+ experimentaly.
2377
+
2378
+ * src/rbgobj_object.c: abolish not_abstract_table and use
2379
+ RGObjClassInfo's `flags' field.
2380
+
2381
+ * src/rbgobj_boxed.c: abolish boxed_table and use RGObjClassInfo's
2382
+ `flags' field.
2383
+
2384
+ * src/rbgobject.c, src/rbgobject.h:
2385
+ add `flags' field to RGObjClassInfo.
2386
+
2387
+ * src/rbgobj_type.c (rbgobj_lookup_class_by_gtype): code cleanup
2388
+
2389
+ 2003-03-21 Masao Mutoh <mutoh@highway.ne.jp>
2390
+
2391
+ * src/rbgobj_object.c: Add GLib::Object.destroyed?
2392
+
2393
+ 2003-03-19 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2394
+
2395
+ * src/glib2.def: Add a file
2396
+
2397
+ 2003-03-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2398
+
2399
+ * src/rbglib_messages.c: change rbglib_log_handler_procs to static
2400
+ variable.
2401
+
2402
+ 2003-03-12 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2403
+
2404
+ * src/rbglib_convert.c: implement
2405
+ - uri = GLib.filename_to_uri(filename[, hostname])
2406
+ - filename, hostname = GLib.filename_from_uri(uri)
2407
+
2408
+ 2003-03-07 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2409
+
2410
+ * src/rbgutil.h: #include rbglib.h for RUBY_GLIB2_VAR.
2411
+
2412
+ * src/rbglib.h, rbgutil.h: define RUBY_GLIB2_VAR macro, and
2413
+ use RUBY_GLIB2_VAR for defining 'exported' variables.
2414
+
2415
+ * extconf.rb: append "-DRUBY_GLIB2_COMPILATION" to $defs.
2416
+
2417
+ 2003-02-20 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2418
+
2419
+ * extconf.rb: Check NODE_ATTRASGN only if try_compile is defined.
2420
+
2421
+ 2003-02-17 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2422
+
2423
+ * src/rbgobject.h: Add rbgobj_signal_wrap() declaration.
2424
+
2425
+ * src/rbgobject.h, src/global.h: Move declaration of
2426
+ rbgobj_define_property_accessors() from rbgobject.h to global.h
2427
+
2428
+ * src/rbgobject.h: Remove rbgobj_define_signal_constants() declaration.
2429
+ This function no longer exists.
2430
+
2431
+ 2003-02-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2432
+
2433
+ * extconf.rb, src/rbgutil.c:
2434
+ Check whether NODE_ATTRASGN is used in ruby. If NODE_ATTRASGN is
2435
+ used, G_DEF_SETTERS uses alias_method instead of generating wrapper
2436
+ methods.
2437
+ Patch from Nobuyoshi Nakada <nobu.nokada@softhome.net>
2438
+
2439
+ * src/rbgobject.c (rbgobj_define_property_accessors): ditto
2440
+
2441
+ 2003-02-15 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2442
+
2443
+ * src/rbgobject.c: make id_relatives be static variable.
2444
+
2445
+ 2003-02-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2446
+
2447
+ * src/rbglib.c, src/rbgutil.[ch]: code cleanups
2448
+
2449
+ * src/rbgobj_boxed.c: make some functions to be static.
2450
+
2451
+ * src/rbgobj_boxed.c: implement GLib::Boxed#{copy,clone}
2452
+ Suggested by KATO Kazuyoshi <kadu@zb.wakwak.com>
2453
+
2454
+ 2003-02-13 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2455
+
2456
+ * extconf.rb: follow changes of ../mkmf-gnome2.rb
2457
+
2458
+ 2003-02-13 Masao Mutoh <mutoh@highway.ne.jp>
2459
+
2460
+ * src/rbgobj_boxed.c: Don't free boxed object when it's not copied boxed object.
2461
+ * src/rbglib.c: Call setlocale() in Init_glib2().
2462
+
2463
+ 2003-02-12 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2464
+
2465
+ * extconf.rb: use ../mkmf-gnome2.rb
2466
+
2467
+ 2003-02-11 KUBO Takehiro <kubo@jiubao.org>
2468
+
2469
+ * src/rbglib_convert.c: Add a file. Support string character set conversion.
2470
+ * src/rbglib.c: Follow above changes.
2471
+
2472
+ 2003-02-09 Masao Mutoh <mutoh@highway.ne.jp>
2473
+
2474
+ * src/rbgobj_object.c, rbgobject.h: Add rbgobj_add_abstract_but_create_instance_class()
2475
+ for the classes which can create instance itself but define as an abstract
2476
+ class in GTK+-2.2. (e.g. GdkGC).
2477
+
2478
+ 2003-02-03 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2479
+
2480
+ * src/rbglib.[ch]: change CSTR2RVAL's body to be a new function
2481
+ rbg_cstr2rval() to avoid unexprected side-effect of macro.
2482
+
2483
+ 2003-02-03 Geoff Youngs <g@intersect-uk.co.uk>
2484
+
2485
+ * src/rbglib.h: a check for NULL strings in the CSTR2RVAL macro so that
2486
+ a NULL string translates to nil rather than raising an ArgumentError.
2487
+
2488
+ 2003-02-02 Masao Mutoh <mutoh@highway.ne.jp>
2489
+
2490
+ * src/*[ch], README: Update Copyright.
2491
+
2492
+ 2003-01-31 Masao Mutoh <mutoh@highway.ne.jp>
2493
+
2494
+ * src/rbgobj_boxed.c, rbgobject.h: Add rbgobj_boxed_not_copy_obj().
2495
+ Some boxed object shouldn't copy when gpoint convert to VALUE.
2496
+
2497
+ 2002-12-28 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2498
+
2499
+ * src/rbgobj_type.c (type_is_value_type): fix typo
2500
+
2501
+ 2002-12-28 Masao Mutoh <mutoh@highway.ne.jp>
2502
+
2503
+ * src/rbgobj_value.c rbgobj_gvalue_to_rvalue(), rbgobj_rvalue_to_gvalue():
2504
+ Change behavior of G_TYPE_INTERFACE(same as G_TYPE_OBJECT).
2505
+
2506
+ 2002-12-26 Masao Mutoh <mutoh@highway.ne.jp>
2507
+
2508
+ * src/rbgobj_boxed.c, rbgobj_type.c, rbgobj_param.c, rbgobj_object.c:
2509
+ Apply rb_define_alloc_func() of ruby-1.8.x.
2510
+
2511
+ 2002-12-21 Masao Mutoh <mutoh@highway.ne.jp>
2512
+
2513
+ * src/rbgutil.c: Check 2nd argument is hash.
2514
+
2515
+ 2002-12-10 Masao Mutoh <mutoh@highway.ne.jp>
2516
+
2517
+ * src/rbgutil.[ch]: Add G_SET_SYMBOL_PROPERTY(gtype, name).
2518
+
2519
+ 2002-12-06 Masao Mutoh <mutoh@highway.ne.jp>
2520
+
2521
+ * src/rbgobj_type.c: Add rb_cSymbol as G_TYPE_STRING.
2522
+
2523
+ 2002-11-27 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2524
+
2525
+ * rbgobj_closure.c (rclosure_marshal): check if return_value's type
2526
+ is valid. Reported by Joshua Keith <joshuakeith@linuxmail.org>.
2527
+
2528
+ 2002-11-24 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2529
+
2530
+ * src/rbgutil.c: remove rbgutil_val2cstr().
2531
+
2532
+ * src/rbglib.h: change StringValuePtr() definition to the same as
2533
+ ruby-1.7. and change RVAL2CSTR() to use the StringValuePtr().
2534
+
2535
+ 2002-11-23 Masao Mutoh <mutoh@highway.ne.jp>
2536
+
2537
+ * src/rbgobj_value.c: rbgobj_rvalue_to_gvalue() support Symbol value
2538
+ when G_TYPE_STRING is required.
2539
+
2540
+ 2002-11-22 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2541
+
2542
+ * src/rbgobj_object.c, src/rbgobj_signal.c: change
2543
+ GLib::Instantiatable.signals and GLib::Object.properties to return
2544
+ array of strings. (instead of array of specific objects)
2545
+ * rbgobj_signal.c: disable some experimental code.
2546
+
2547
+ 2002-11-20 Masao Mutoh <mutoh@highway.ne.jp>
2548
+
2549
+ * src/rbgobject.c: Fix typos in error messages(GLib::GObject to GLib::Object).
2550
+
2551
+ 2002-11-11 Masao Mutoh <mutoh@highway.ne.jp>
2552
+
2553
+ * src/rbgobj_signal.c: BugFix of rbgobj_set/get_signal_func.
2554
+
2555
+ 2002-11-10 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2556
+
2557
+ * extconf.rb: stop appending '-g' to $CFLAGS.
2558
+
2559
+ 2002-11-10 Masao Mutoh <mutoh@highway.ne.jp>
2560
+
2561
+ * README: Add file.
2562
+
2563
+ 2002-11-09 Masao Mutoh <mutoh@highway.ne.jp>
2564
+
2565
+ * src/rbglib_message.c: add file(Sorry I forgot it....)
2566
+
2567
+ 2002-11-08 Masao Mutoh <mutoh@highway.ne.jp>
2568
+
2569
+ * src/rbglib_messages.c: add file(methods are moved from Ruby/GTK).
2570
+ * src/rbgobj_signal.c, rbgobj_closure.c, rbgobj_object.c, rbgobject.h:
2571
+ add G_DEF_SIGNAL_FUNC.
2572
+
2573
+ 2002-11-06 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2574
+
2575
+ * src/rbglib.c (G_DEF_SETTERS): don't override existent methods.
2576
+
2577
+ 2002-11-02 KUBO Takehiro <kubo@jiubao.org>
2578
+
2579
+ * src/rbgutil.c, src/rbgutil.h: re-implement rbgutil_raise_gerror as
2580
+ macro and rename to RAISE_GERROR.
2581
+ add a new function rbgutil_gerror2exception()
2582
+
2583
+ 2002-11-01 Masao Mutoh <mutoh@highway.ne.jp>
2584
+
2585
+ * src/rbgobject.c, rbgobj_type.c: Remove rbgobj_define_signal_constants().
2586
+
2587
+ 2002-10-30 KUBO Takehiro <kubo@jiubao.org>
2588
+
2589
+ * src/rbgutil.c, src/rbgutil.h: add rbgutil_raise_gerror().
2590
+
2591
+ 2002-10-24 KUBO Takehiro <kubo@jiubao.org>
2592
+
2593
+ * src/rbgobj_signal.c (GLib::Instantiatable#signal_conect,
2594
+ #signal_connect_after): accept detailed signal.
2595
+
2596
+ 2002-10-20 Masahro Sakai <sakai@tom.sfc.keio.ac.jp>
2597
+
2598
+ * src/rbgobj_object.c: use canonical property name as hash key for the
2599
+ hash for a special getter and setter of the property.
2600
+
2601
+ 2002-10-18 Masahro Sakai <sakai@tom.sfc.keio.ac.jp>
2602
+
2603
+ * src/rbgobj_closure.c, src/rbgobj_valuetypes.c: use Hash#delete
2604
+ instead of assigning nil.
2605
+
2606
+ 2002-10-17 KUBO Takehiro <kubo@jiubao.org>
2607
+
2608
+ * rbgobj_object.c (gobj_set_property, gobj_get_property): fix a bug.
2609
+
2610
+ 2002-10-14 Masahro Sakai <sakai@tom.sfc.keio.ac.jp>
2611
+
2612
+ * src/rbgobj_object.c (GLib::Object.property): raise exception if the
2613
+ property doesn't exist.
2614
+ * src/rbgobj_param.c: rename GLib::ParamSpec to GLib::Param
2615
+ * src/rbgobj_signal.c (GLib::Instantiatable#signal_conect): accept
2616
+ symbol as signal name.
2617
+ * src/rbgobj_signal.c: rename
2618
+ GLib::Signal::Query to GLIb::Signal and
2619
+ GLib::Object.signal_list to GLIb::Object.signals and
2620
+ GLib::Object.signal_lookup to GLIb::Object.signal
2621
+ * src/rbgobj_object.c: rename
2622
+ GLib::Object.list_properties to GLIb::Object.properties and
2623
+ GLib::Object.find_property to GLIb::Object.property
2624
+
2625
+ 2002-10-13 Masahro Sakai <sakai@tom.sfc.keio.ac.jp>
2626
+
2627
+ * src/rbgobj_valuetypes.c (rbgobj_ptr2cptr): check argument type
2628
+ * src/rbgobj_valuetypes.c: don't register some transformation function
2629
+ which may raise exception
2630
+ * src/rbgobj_object.c: add rbgobj_register_property_getter() and
2631
+ rbgobj_register_property_setter() for overwriting VALUE<=>GValue
2632
+ converter for property.
2633
+
2634
+ 2002-10-10 Masao Mutoh <mutoh@highway.ne.jp>
2635
+
2636
+ * src/rbgutil.[ch], src/rbglib.c: add G_DEF_SETTERS macro.
2637
+
2638
+ 2002-10-07 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2639
+
2640
+ * src/rbgobj_value.c (rbgobj_gvalue_to_rvalue): return Qnil when the
2641
+ type of GValue is G_TYPE_STRING and the content is NULL.
2642
+
2643
+ 2002-10-05 KUBO Takehiro <kubo@jiubao.org>
2644
+
2645
+ * src/rbgutil.h: add G_DEF_SETTER macro.
2646
+
2647
+ 2002-10-02 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2648
+
2649
+ * src/rbgobj_boxed: implement GLib::Boxed::gtype & GLib::Boxed#gtype
2650
+
2651
+ 2002-10-02 Masao Mutoh <mutoh@highway.ne.jp>
2652
+
2653
+ * src/rbgobj_type.c: Add _register_fundamental_gtype_to_klass()/
2654
+ _register_fundamental_klass_to_gtype().
2655
+
2656
+ 2002-10-02 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2657
+
2658
+ * src/rbglib.h: define LONG2NUM and ULONG2NUM unless already defined.
2659
+
2660
+ 2002-09-30 Masao Mutoh <mutoh@highway.ne.jp>
2661
+
2662
+ * src/rbgutil.[ch]: File added.
2663
+ * src/rbgobject.h, src/rbglib.[ch]: Support rbgutil.c.
2664
+
2665
+ 2002-09-29 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2666
+
2667
+ * src/rbgobj_param.c (inspect): change format: including value type and
2668
+ owner type. excluding nick and blurb.
2669
+ * src/rbgobj_param.c (get_nick, get_blurb): return nil if the string
2670
+ is NULL.
2671
+ * src/rbgobj_signal.c: introduce GLIb::Signal::Query to wrap
2672
+ GSignalQuery.
2673
+ * src/rbgobj_type.c: define GLib::Interface and include it to each
2674
+ interface. This inclusion is intended to represent that interfaces
2675
+ are subtypes of GLib::Inteface.
2676
+ * src/rbgobj_object.c (gobj_s_find_property, gobj_set_property,
2677
+ gobj_get_property): accept Symbol as property name.
2678
+ * src/rbgobj_object.c: fix parameter number of GLib::Object.find_property
2679
+
2680
+ 2002-09-29 Masao Mutoh <mutoh@highway.ne.jp>
2681
+
2682
+ * src/rbgobj_closure.c, src/rbgobj_boxed.c, src/rbgobject.h:
2683
+ Change RVAL2BOXED(obj) to RVAL2BOXED(obj, gtype).
2684
+
2685
+ 2002-09-25 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2686
+
2687
+ * src/rbgobj_closure.c (marker_remove): fix a bug which can cause
2688
+ segmentation fault on following rb_gc_mark().
2689
+
2690
+ 2002-09-24 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2691
+
2692
+ * src/rbgobj_object.c: allow GLib::Object#freeze_notify to take block.
2693
+ * src/rbgobj_param.c (rbgobj_get_value_from_param_spec): fixed
2694
+ * src/rbgobj_param.c: implement GLib::ParamSpec#inspect
2695
+ * src/rbgobj_object.c: implement GLib::Object.list_properties and
2696
+ GLib::Object.find_property
2697
+ * src/rbgobj_signal.c: implement signal_handler_is_connected?
2698
+ * src/*.c: untabify
2699
+ * src/rbgobj_boxed.c (boxed_free): don't call g_boxed_free() if not
2700
+ initilized.
2701
+ * src/rbgobj_closure.c: implement GLib::Closure
2702
+
2703
+ 2002-09-23 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2704
+
2705
+ * src/*.c: introduce GLib::Instantiatable as a common superclass of
2706
+ GLib::Object and GLib::ParamSpec. GLib:Instantiatable corresponds to
2707
+ GTypeInstance structure in C.
2708
+ * src/*.c: arrange APIs
2709
+ * src/rbgobject.c (rbgobj_define_signal_constants): stop calling
2710
+ g_class_ref(). Now caller must ensure that the class is initialized.
2711
+
2712
+ 2002-09-23 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2713
+
2714
+ * src/*.c: introduce macro "RBGLIB_ENABLE_EXPERIMENTAL" to indicate
2715
+ experimental API.
2716
+ * src/rbgobj_signal.c: define constants
2717
+ * src/rbgobj_signal.c (signal_emit, signal_emit_stop): handles detail
2718
+ parameter.
2719
+ * src/rbgobject.c (rbgobj_gobject_new): check actual parameter size.
2720
+
2721
+ 2002-09-21 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2722
+
2723
+ * src/rbgobject.c (rbgobj_define_property_accessors): when property
2724
+ name begins with 'is_', remove 'is_' from getter/setter name.
2725
+ * src/rbgobject.c (rbgobj_define_property_accessors): append '?' to
2726
+ the name of getter method of gboolean valued property.
2727
+
2728
+ 2002-09-21 KUBO Takehiro <kubo@jiubao.org>
2729
+
2730
+ * src/rbgobj_object.c (gobj_set_property, gobj_get_property):
2731
+ accept nil as an argument of val. raise more kindly exception when
2732
+ property name was not found.
2733
+
2734
+ 2002-09-18 KUBO Takehiro <kubo@jiubao.org>
2735
+
2736
+ * src/rbgobject.c (rbgobj_gobject_new): fix size parameter of memset()
2737
+ * src/rbgobj_value.c (rbgobj_rvalue_to_gvalue): don't use
2738
+ g2r_func_table but r2g_func_table
2739
+
2740
+ 2002-09-17 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2741
+
2742
+ * src/rbgobject.c (rbgobj_define_property_accessors): optimize a bit
2743
+ by accumulating source string and call module_eval at once.
2744
+
2745
+ 2002-09-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2746
+
2747
+ * src/rbgobject.c (rbgobj_define_property_accessors):
2748
+ - Define not only 'hogehoge=' but alse 'set_hogehoge'
2749
+ - Exclude properties which name is conflict with method of 'Object'
2750
+ - Stop passing second and third argument of module_eval
2751
+
2752
+ 2002-09-14 Masao Mutoh <mutoh@highway.ne.jp>
2753
+
2754
+ * src/global.h, src/rbglib.h: Move StringValue, StringValuePtr
2755
+ to src/rbglib.h(Because it'll be used by other Ruby-GNOME libraries).
2756
+ Add RVAL2CSTR, CSTR2RVAL macro.
2757
+
2758
+ 2002-09-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2759
+
2760
+ * extconf.rb: Append -fnative-struct to $CFLAGS when G_OS_WIN32 is defined
2761
+
2762
+ 2002-09-13 Masao Mutoh <mutoh@highway.ne.jp>
2763
+
2764
+ * src/rbgobject.h, src/rbgobj_object.c: Rename RBGOBJ_INITIALIZE to G_INITIALIZE.
2765
+ * src/rbgobject.h: Add G_RELATIVE, G_RELATIVE2, G_REMOVE_RELATIVE.
2766
+
2767
+ 2002-09-13 Masao Mutoh <mutoh@highway.ne.jp>
2768
+
2769
+ * src/rbobjmanager.[ch]: remove files.
2770
+ * src/rbglib.[ch]: remove Init_objmanager().
2771
+
2772
+ 2002-09-03 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2773
+
2774
+ * src/rbgobj_signal.c: implement GLib::Object#signal_emit_by_name
2775
+
2776
+ 2002-09-01 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2777
+
2778
+ * src/rbgobj_signal.c: fix GLib::Object#signal_emit.
2779
+ * src/rbgobj_signal.c: implement GLib::Object.signal_lookup and
2780
+ GLib::Object.signal_list
2781
+ * src/rbgobj_signal.c: implement GLib::Object.signal_new.
2782
+ This is an experimental interface.
2783
+ * src/rbgobj_value.c (rbgobj_gvalue_to_rvalue, rbgobj_rvalue_to_gvalue):
2784
+ fix error messsage and use g_warning().
2785
+ * src/utils_int64.c: use 0xffffffffL instead of G_MAXUINT
2786
+ * src/utils_int64.c, src/global.h, src/rbgobj_paramspecs.c,
2787
+ src/rbgobj_value.c: change prefix of int64 functions from 'rbgobj_' to
2788
+ 'rbglib_'.
2789
+ * src/*.[ch]: add 'indent-tabs-mode: nil' to header
2790
+
2791
+ 2002-08-29 Masao Mutoh <mutoh@highway.ne.jp>
2792
+
2793
+ * src/rbgobj_boxed.c: Add GLib::Boxed.new, GLib::Boxed#allocate.
2794
+
2795
+ 2002-08-20 Masao Mutoh <mutoh@highway.ne.jp>
2796
+
2797
+ * src/rbgobj_boxed.c: Add rbgobj_boxed_initialize(), rbgobj_boxed_create().
2798
+ Modify rbgobj_boxed_get().
2799
+
2800
+ * src/rbgobject.[ch]: Support Boxed type in rbgobj_create_object(),
2801
+ rbgobj_initialize_object().
2802
+
2803
+ 2002-08-20 Masahiro Sakai <s01397ms@sfc.keio.ac.jp>
2804
+
2805
+ * src/utils_int64.c: rb_global_variable(&max_PRUint32)
2806
+ * src/rbgobj_param.c: rename rbgobj_get_value_from_paramspec to
2807
+ rbgobj_get_value_from_param_spec
2808
+ * src/rbgobj_param.c (gobj_get_gtype): use rbgobj_param_spec_get_struct
2809
+ instead of RVAL2GOBJ
2810
+
2811
+ 2002-08-18 Masao Mutoh <mutoh@highway.ne.jp>
2812
+
2813
+ * src/rbobjmanager.[ch]: Add file. Support RB_DEF_CLASS system.
2814
+
2815
+ 2002-08-14 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2816
+
2817
+ * extconf.rb: use $libs instead of $LDFLAGS
2818
+ * src/rbglib.c: define GLib::VERSION, GLib::(MAJOR|MINOR|MICRO)_VERSION
2819
+ * src/rbgobj_param.c: define GParamFlags constants
2820
+ * src/rbgobj_value.c (rbgobj_register_r2g_func): change argument.
2821
+ it now take GType as key instead of Ruby class.
2822
+ * src/rbgobject.c (rbgobj_add_relative, rbgobj_add_relative_removable,
2823
+ rbgobj_remove_relative): call rb_ivar_defined() before calling rb_ivar_get()
2824
+ * rbgobj_valuetypes.c, rbgobj_value.c: improve G_TYPE_POINTER handling
2825
+
2826
+ 2002-08-10 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2827
+
2828
+ * src/rbgobject.[ch]: move id_relative_callbacks to gtk
2829
+ * src/rbgobj_closure.c, src/rbgobj_object.c, src/rbgobj_signal.c:
2830
+ use GVAL2RVAL
2831
+ * src/rbgobj_valuetypes.c: add file. implement RBGOBJ_TYPE_RUBY_VALUE
2832
+ to box Ruby object into GValue.
2833
+ * src/rbgobj_type.c, src/rbgobj_value.c, src/rbgobj_valuetypes.c:
2834
+ support G_TYPE_POINTER. This is a tentative implementation.
2835
+ * src/global.h: move "extern void Init_hoge();" stuff to where these
2836
+ functions are actually called.
2837
+
2838
+ 2002-08-09 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2839
+
2840
+ * src/utils_int64.c (LL_L2UI): cast argument to guint32
2841
+ * src/utils_int64.c (RubyTo64BitInt): oops. convert max_PRUint32 to VALUE.
2842
+ * src/utils_int64.c: optimize
2843
+
2844
+ 2002-08-09 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2845
+
2846
+ * src/rbgobject.c: use GQuark
2847
+ * src/rbgobj_type.c: fix allocation problem in ruby-1.7
2848
+ rb_obj_alloc() was used though GLib::Type#allocate wasn't implemented.
2849
+ this problem is pointed out by Masao Mutoh <mutoh@highway.ne.jp>.
2850
+ * src/rbgobj_object.c: rename GLib::GObject to GLib::Object
2851
+ * src/utils_int64.c: add file. support gint64/guint64.
2852
+ code is ripped from rbXPCOM-0.0.3.
2853
+ <URL:http://www.ruby-lang.org/en/raa-list.rhtml?name=rbXPCOM>
2854
+ Thanks to Kenichi Komiya <kom@mail1.accsnet.ne.jp>
2855
+ * src/rbgobj_param.c (value_set_default): initialize GValue with {0,}.
2856
+ * src/rbgobj_param.c (ParamSpec#value_type): returns GLib::Type
2857
+ * src/rbgobj_param.c (ParamSpec#owner_type): ditto
2858
+ * src/rbgobj_paramspecs.c: implement more functions
2859
+ * src/rbgobj_boxed.c: use rbgobj_type.c for class managiment
2860
+ * src/rbgobj_value.c: hardcode most converters.
2861
+ Now table-lookup is used only for G_TYPE_POINTER and G_TYPE_BOXED.
2862
+ * src/rbgobj_object.c, src/rbgobj_enum.c, src/rbgobj_param.c: ditto
2863
+
2864
+ 2002-08-08 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2865
+
2866
+ * src/rbgobj_type.c: more ruby-ish method naming.
2867
+ ie: "hoge?" rather than "is_hoge"?
2868
+ * src/rbgobj_type.c (rbgobj_lookup_class_by_gtype): enhancement for
2869
+ G_TYPE_PARAM
2870
+ * src/rbgobj_param.c, src/rbgobj_paramspec.c: rewrite for using above
2871
+ enhancement.
2872
+
2873
+ 2002-08-07 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2874
+
2875
+ * src/rbgobject.c (rbgobj_gobject_new): take type argument as GType
2876
+ instead of VALUE.
2877
+ * src/rbgobject.c (rbgobj_gobject_new): allow nil for construct parameter
2878
+ * src/rbgobj_object.c (is_gtkobject): add function
2879
+ * src/rbgobj_object.c (GObject.allocate): check abstract class
2880
+ * src/rbgobj_object.c (GObject#initialize): rewrite
2881
+ * src/rbgobj_type.c (rbgobj_lookup_class): use independent hash instead
2882
+ of instance variable. and abolish id_class_info.
2883
+ * src/rbgobj_type.c (rbgobj_lookup_class): search ancestor classes.
2884
+ * src/rbgobj_type.c: implement GLib::Type.
2885
+
2886
+ 2002-08-06 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2887
+
2888
+ * src/rbgobj_type.c: extend rbgobj_lookup_class_by_gtype() to deal
2889
+ interfaces
2890
+ * src/rbgobject.h: define macros: G_DEF_INTERFACE and G_DEF_INTERFACE2
2891
+ * src/rbgobj_typeplugin.c: file added
2892
+ * extconf.rb: use --msvc-syntax option for pkg-config if the compiler
2893
+ is MSVC++.
2894
+
2895
+ 2002-08-06 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2896
+
2897
+ * src/rbgobject.h: remove declaration of id_class_info and id_delete
2898
+ * src/rbgobject.h, src/rbgobj_object.c, src/rbgobj_signal.c:
2899
+ remove global variable rbgobj_cGObject.
2900
+
2901
+ 2002-08-03 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2902
+
2903
+ * src/rbglib.[ch]: fix mGLib declaration and definition
2904
+
2905
+ 2002-08-02 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2906
+
2907
+ * src/rbgobj_type.c (rbgobj_lookup_class_by_gtype):
2908
+ enable calling of rbgobj_define_property_accessors() and
2909
+ rbgobj_define_signal_constants().
2910
+
2911
+ 2002-08-02 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2912
+
2913
+ * src/rbgobj_type.c: abolish rbgobj_register_class()
2914
+ * src/rbgobj_type.c (rbgobj_lookup_class_by_gtype):
2915
+ now this function create a new class on demand.
2916
+ * src/rbgobj_type.c: abolish rbgobj_lookup_rbclass()
2917
+ * src/rbgobject.c: fix typo
2918
+ * src/rbgobject.c: add rbgobj_define_signal_constants()
2919
+ which define constants for signal names.
2920
+
2921
+ 2002-08-01 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2922
+
2923
+ * src/rbgobj_object.c (_gobject_to_ruby): check NULL before calling
2924
+ GOBJ2RVAL().
2925
+ * src/rbgobj_signal.c (gobj_sig_connect): remove unused variable 'id'.
2926
+ * src/rbgobj_signal.c (gobj_sig_connect_after): ditto
2927
+ * src/rbgobj_object.c (gobj_smethod_added): fix bugs
2928
+
2929
+ 2002-07-31 Masao Mutoh <mutoh@highway.ne.jp>
2930
+
2931
+ * src/rbgobject.c: devide from rbgobj_objectc[ch].
2932
+ * src/rbgobj_object.c, src/rbgobject.h: abolish rbgobj_force_get_gobject().
2933
+ * src/rbgobject.h: add G_DEF_CLASS(), G_DEF_CLASS2(), GTYPE2CLASS().
2934
+ * src/rbgobj_type.c: add rbgobj_define_class()
2935
+
2936
+ 2002-07-31 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2937
+
2938
+ * src/rbgobj_closure.c: use g_closure_add_invalidate_notifier()
2939
+ instead of g_closure_add_finalize_notifier()
2940
+ * src/rbgobj_closure.c: fix g_closure_add_invalidate_notifier()'s
2941
+ argument order
2942
+ * src/rbgobj_signal.c: GObject#signal_connect now accept extra argument
2943
+ as Ruby/Gtk 1.
2944
+ * src/rbgobj_signal.c: implement GObject#signal_connect_after
2945
+
2946
+ 2002-07-28 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2947
+
2948
+ * src/rbgobj_object.c (gobj_s_gobject_new): refine GtkObject-specific
2949
+ stuff
2950
+ * src/rbgobj_object.c: implement GObject#freeze_notify, GObject#notify,
2951
+ GObject#thaw_notify
2952
+ * src/rbgobj_object.c (gobj_inspect): use g_strdup_printf() instead of
2953
+ ALLOCA_N() and sprintf()
2954
+ * src/rbgobj_type.c (rbgobj_register_class): add some check
2955
+ * src/*.c: replace rbgobj_get_value_from_gobject() with GOBJ2RVAL()
2956
+ * src/*.c: replace rbgobj_get_gobject() with RVAL2GOBJ()
2957
+ * src/rbgobj_object.c:
2958
+ void rbgobj_define_property_acccessors(VALUE klass);
2959
+ is added. This function defines accessor methods for properties.
2960
+ * src/rbgobj_signal.c (gobj_sig_emit): call g_value_init()
2961
+
2962
+ 2002-07-27 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2963
+
2964
+ * src/rbgobj_object.c: abolish rbgobj_make_gobject_auto_type() and
2965
+ rbgobj_make_gobject()
2966
+ * src/rbgobj_boxed.c, src/rbgobj_enums.c, src/rbgobj_typemodule.c,
2967
+ src/rbgobj_signal.c: created
2968
+ * src/rbgobj_object.c: move signal stuff to src/rbgobj_signal.c
2969
+
2970
+ 2002-07-27 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2971
+
2972
+ * src/rbgobj_object.c: implement GObject.gobject_new experimentaly.
2973
+ example:
2974
+ w = GLib::GObject.gobject_new("GtkWindow", "title" => "Hello World")
2975
+
2976
+ 2002-07-26 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
2977
+
2978
+ * extconf.rb: check allocation framework
2979
+ * src/rbgobj_object.c: introduce intermediate data structure (gobj_holder)
2980
+ for managing not only GObject*, but also class_info and ruby object itself.
2981
+ * src/rbgobj_object.c: abolish gobject_object_list_v and
2982
+ gobject_object_list
2983
+ * src/rbgobj_object.c: use gobject_weak_ref() to observe an explicit
2984
+ disposition. (e.g. by gtk_object_destroy())
2985
+ * src/rbgobj_object.c: implement GObject#set_property and
2986
+ GObject#get_property
2987
+ * src/rbgobj_paramspecs.c: created
2988
+
2989
+ 2002-06-23 Masahiro Sakai <s01397ms@sfc.keio.ac.jp>
2990
+
2991
+ * src/rbgobj_type.c (Init_gobject_gtype): call g_type_init().
2992
+ * src/rbgobj_object.c, src/gclosure.c: zero-fill GValue before
2993
+ using it.
2994
+
2995
+ 2002-06-23 Masao Mutoh <mutoh@highway.ne.jp>
2996
+
2997
+ * src/rbgobject.h: Fix parameter number of RBGOBJ_INITIALIZE().
2998
+
2999
+ 2002-06-23 Masao Mutoh <mutoh@highway.ne.jp>
3000
+
3001
+ * src/rbgobject.c: change rbgobj_set_gobject() to rbgobj_initialize_gobject().
3002
+ * src/rbgobject.h: create RBGOBJ_INITIALIZE().
3003
+
3004
+ 2002-06-22 Masahiro Sakai <s01397ms@sfc.keio.ac.jp>
3005
+
3006
+ * src/rbgobject.h: create two macros; RVAL2GOBJ() and GOBJ2RVAL().
3007
+ * src/rbgobject.h, rbgobj_object.c: make rbgobj_make_gobject() and
3008
+ rbgobj_make_gobject_auto_type() be private.
3009
+ * src/rbgobj_object.c: remove gobj_mark() and clear_gobject().
3010
+ * src/rbglib.c: remove gError.
3011
+
3012
+ 2002-06-20 Masahiro Sakai <s01397ms@sfc.keio.ac.jp>
3013
+
3014
+ * src/rbgobj_object.c, src/rbgobj_type.c, src/rbgobject.h:
3015
+ rename rbgobj_class_info to RGObjClassInfo.
3016
+
3017
+ 2002-06-18 Masahiro Sakai <s01397ms@sfc.keio.ac.jp>
3018
+
3019
+ * src/*.c: conform to Ruby/GNOME2 coding-style.
3020
+
3021
+ 2002-06-18 Masahiro Sakai <s01397ms@sfc.keio.ac.jp>
3022
+
3023
+ * extconf.rb: check whether package exists or not.