glib2 0.90.7-x86-mingw32 → 0.90.8-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. data/ChangeLog +68 -0
  2. data/ext/glib2/rbglib.c +51 -15
  3. data/ext/glib2/rbglib.h +10 -2
  4. data/ext/glib2/rbglib_bookmarkfile.c +37 -74
  5. data/ext/glib2/rbglib_completion.c +8 -16
  6. data/ext/glib2/rbglib_convert.c +8 -18
  7. data/ext/glib2/rbglib_error.c +2 -8
  8. data/ext/glib2/rbglib_i18n.c +1 -2
  9. data/ext/glib2/rbglib_iochannel.c +81 -127
  10. data/ext/glib2/rbglib_keyfile.c +38 -86
  11. data/ext/glib2/rbglib_maincontext.c +29 -64
  12. data/ext/glib2/rbglib_mainloop.c +4 -8
  13. data/ext/glib2/rbglib_messages.c +7 -17
  14. data/ext/glib2/rbglib_pollfd.c +7 -14
  15. data/ext/glib2/rbglib_shell.c +3 -6
  16. data/ext/glib2/rbglib_source.c +14 -28
  17. data/ext/glib2/rbglib_spawn.c +7 -14
  18. data/ext/glib2/rbglib_threads.c +2 -4
  19. data/ext/glib2/rbglib_timer.c +7 -14
  20. data/ext/glib2/rbglib_unicode.c +45 -16
  21. data/ext/glib2/rbglib_utils.c +25 -50
  22. data/ext/glib2/rbglib_win32.c +10 -17
  23. data/ext/glib2/rbgobj_boxed.c +9 -21
  24. data/ext/glib2/rbgobj_closure.c +5 -11
  25. data/ext/glib2/rbgobj_enums.c +1 -2
  26. data/ext/glib2/rbgobj_object.c +23 -59
  27. data/ext/glib2/rbgobj_param.c +7 -15
  28. data/ext/glib2/rbgobj_signal.c +25 -65
  29. data/ext/glib2/rbgobj_type.c +36 -81
  30. data/ext/glib2/rbgobj_typeinstance.c +3 -6
  31. data/ext/glib2/rbgobj_typeinterface.c +3 -6
  32. data/ext/glib2/rbgobj_typemodule.c +4 -8
  33. data/ext/glib2/rbgobj_typeplugin.c +2 -4
  34. data/ext/glib2/rbgobj_valuetypes.c +7 -15
  35. data/ext/glib2/rbgobject.c +8 -18
  36. data/ext/glib2/rbgobject.h +3 -0
  37. data/ext/glib2/rbgprivate.h +0 -1
  38. data/ext/glib2/rbgutil.c +3 -6
  39. data/lib/1.8/glib2.so +0 -0
  40. data/lib/1.9/glib2.so +0 -0
  41. data/lib/gnome2-raketask.rb +1 -0
  42. data/lib/mkmf-gnome2.rb +12 -9
  43. data/test-unit/History.txt +43 -1
  44. data/test-unit/Manifest.txt +1 -1
  45. data/test-unit/html/index.html +62 -24
  46. data/test-unit/html/index.html.ja +54 -25
  47. data/test-unit/html/test-unit.css +3 -3
  48. data/test-unit/lib/test/unit/assertions.rb +489 -36
  49. data/test-unit/lib/test/unit/autorunner.rb +40 -0
  50. data/test-unit/lib/test/unit/collector.rb +6 -4
  51. data/test-unit/lib/test/unit/collector/load.rb +48 -5
  52. data/test-unit/lib/test/unit/collector/xml.rb +250 -0
  53. data/test-unit/lib/test/unit/error.rb +4 -3
  54. data/test-unit/lib/test/unit/fixture.rb +12 -3
  55. data/test-unit/lib/test/unit/runner/xml.rb +15 -0
  56. data/test-unit/lib/test/unit/testcase.rb +48 -16
  57. data/test-unit/lib/test/unit/testresult.rb +6 -2
  58. data/test-unit/lib/test/unit/testsuite.rb +24 -2
  59. data/test-unit/lib/test/unit/ui/console/testrunner.rb +65 -28
  60. data/test-unit/lib/test/unit/ui/testrunnermediator.rb +11 -2
  61. data/test-unit/lib/test/unit/ui/xml/testrunner.rb +224 -0
  62. data/test-unit/lib/test/unit/version.rb +1 -1
  63. data/test-unit/test/run-test.rb +7 -0
  64. data/test-unit/test/{test_assertions.rb → test-assertions.rb} +708 -77
  65. data/test-unit/test/test-fixture.rb +37 -0
  66. data/test-unit/test/test-testcase.rb +24 -7
  67. data/test-unit/test/test_testsuite.rb +19 -11
  68. data/test/test_iochannel.rb +9 -9
  69. data/test/test_unicode.rb +44 -31
  70. metadata +8 -5
@@ -43,8 +43,7 @@ boxed_free(boxed_holder *holder)
43
43
  /**********************************************************************/
44
44
 
45
45
  static VALUE
46
- rbgobj_boxed_s_allocate(klass)
47
- VALUE klass;
46
+ rbgobj_boxed_s_allocate(VALUE klass)
48
47
  {
49
48
  const RGObjClassInfo* cinfo = rbgobj_lookup_class(klass);
50
49
  boxed_holder* holder;
@@ -63,16 +62,14 @@ rbgobj_boxed_s_allocate(klass)
63
62
  }
64
63
 
65
64
  static VALUE
66
- rbgobj_boxed_init(self)
67
- VALUE self;
65
+ rbgobj_boxed_init(VALUE self)
68
66
  {
69
67
  rb_raise(rb_eTypeError, "can't initialize %s",
70
68
  rb_class2name(CLASS_OF(self)));
71
69
  }
72
70
 
73
71
  static VALUE
74
- rbgobj_boxed_inspect(self)
75
- VALUE self;
72
+ rbgobj_boxed_inspect(VALUE self)
76
73
  {
77
74
  boxed_holder* holder;
78
75
  gchar* s;
@@ -93,8 +90,7 @@ rbgobj_boxed_inspect(self)
93
90
  }
94
91
 
95
92
  static VALUE
96
- rbgobj_boxed_init_copy(self, orig)
97
- VALUE self, orig;
93
+ rbgobj_boxed_init_copy(VALUE self, VALUE orig)
98
94
  {
99
95
  boxed_holder* holder1;
100
96
  boxed_holder* holder2;
@@ -119,8 +115,7 @@ rbgobj_boxed_init_copy(self, orig)
119
115
 
120
116
  /* deprecated */
121
117
  VALUE
122
- rbgobj_boxed_create(klass)
123
- VALUE klass;
118
+ rbgobj_boxed_create(VALUE klass)
124
119
  {
125
120
  return rbgobj_boxed_s_allocate(klass);
126
121
  }
@@ -128,9 +123,7 @@ rbgobj_boxed_create(klass)
128
123
  /**********************************************************************/
129
124
 
130
125
  void
131
- rbgobj_boxed_initialize(obj, boxed)
132
- VALUE obj;
133
- gpointer boxed;
126
+ rbgobj_boxed_initialize(VALUE obj, gpointer boxed)
134
127
  {
135
128
  boxed_holder* holder;
136
129
  Data_Get_Struct(obj, boxed_holder, holder);
@@ -139,9 +132,7 @@ rbgobj_boxed_initialize(obj, boxed)
139
132
  }
140
133
 
141
134
  gpointer
142
- rbgobj_boxed_get(obj, gtype)
143
- VALUE obj;
144
- GType gtype;
135
+ rbgobj_boxed_get(VALUE obj, GType gtype)
145
136
  {
146
137
  boxed_holder* holder;
147
138
 
@@ -161,9 +152,7 @@ rbgobj_boxed_get(obj, gtype)
161
152
  }
162
153
 
163
154
  VALUE
164
- rbgobj_make_boxed(p, gtype)
165
- gpointer p;
166
- GType gtype;
155
+ rbgobj_make_boxed(gpointer p, GType gtype)
167
156
  {
168
157
  const RGObjClassInfo* cinfo;
169
158
  VALUE result;
@@ -189,8 +178,7 @@ rbgobj_make_boxed(p, gtype)
189
178
  }
190
179
 
191
180
  void
192
- rbgobj_boxed_not_copy_obj(gtype)
193
- GType gtype;
181
+ rbgobj_boxed_not_copy_obj(GType gtype)
194
182
  {
195
183
  RGObjClassInfo* cinfo = (RGObjClassInfo*)GTYPE2CINFO(gtype);
196
184
  cinfo->flags |= RBGOBJ_BOXED_NOT_COPY;
@@ -31,9 +31,7 @@ struct _GRClosure
31
31
  };
32
32
 
33
33
  static VALUE
34
- rclosure_default_g2r_func(num, values)
35
- guint num;
36
- const GValue* values;
34
+ rclosure_default_g2r_func(guint num, const GValue *values)
37
35
  {
38
36
  int i;
39
37
  VALUE args = rb_ary_new2(num);
@@ -283,8 +281,7 @@ Init_rclosure()
283
281
  /**********************************************************************/
284
282
 
285
283
  static VALUE
286
- closure_initialize(self)
287
- VALUE self;
284
+ closure_initialize(VALUE self)
288
285
  {
289
286
  GClosure* closure = g_rclosure_new(rb_block_proc(), Qnil, NULL);
290
287
  G_INITIALIZE(self, closure);
@@ -293,24 +290,21 @@ closure_initialize(self)
293
290
  }
294
291
 
295
292
  static VALUE
296
- closure_in_marshal(self)
297
- VALUE self;
293
+ closure_in_marshal(VALUE self)
298
294
  {
299
295
  GClosure* closure = RVAL2BOXED(self, G_TYPE_CLOSURE);
300
296
  return CBOOL2RVAL(closure->in_marshal);
301
297
  }
302
298
 
303
299
  static VALUE
304
- closure_is_invalid(self)
305
- VALUE self;
300
+ closure_is_invalid(VALUE self)
306
301
  {
307
302
  GClosure* closure = RVAL2BOXED(self, G_TYPE_CLOSURE);
308
303
  return CBOOL2RVAL(closure->is_invalid);
309
304
  }
310
305
 
311
306
  static VALUE
312
- closure_invalidate(self)
313
- VALUE self;
307
+ closure_invalidate(VALUE self)
314
308
  {
315
309
  GClosure* closure = RVAL2BOXED(self, G_TYPE_CLOSURE);
316
310
  g_closure_invalidate(closure);
@@ -332,8 +332,7 @@ rbgobj_init_enum_class(VALUE klass)
332
332
  }
333
333
 
334
334
  static VALUE
335
- enum_s_range(self)
336
- VALUE self;
335
+ enum_s_range(VALUE self)
337
336
  {
338
337
  GEnumClass* gclass = g_type_class_ref(CLASS2GTYPE(self));
339
338
  VALUE result = rb_range_new(INT2NUM(gclass->minimum),
@@ -25,8 +25,7 @@ static GQuark RUBY_GOBJECT_OBJ_KEY;
25
25
 
26
26
  /* deperecated */
27
27
  void
28
- rbgobj_add_abstract_but_create_instance_class(gtype)
29
- GType gtype;
28
+ rbgobj_add_abstract_but_create_instance_class(GType gtype)
30
29
  {
31
30
  }
32
31
 
@@ -65,8 +64,7 @@ holder_free(gobj_holder *holder)
65
64
  }
66
65
 
67
66
  static VALUE
68
- gobj_s_allocate(klass)
69
- VALUE klass;
67
+ gobj_s_allocate(VALUE klass)
70
68
  {
71
69
  gobj_holder* holder;
72
70
  VALUE result;
@@ -82,16 +80,13 @@ gobj_s_allocate(klass)
82
80
 
83
81
  /* deprecated */
84
82
  VALUE
85
- rbgobj_create_object(klass)
86
- VALUE klass;
83
+ rbgobj_create_object(VALUE klass)
87
84
  {
88
85
  return gobj_s_allocate(klass);
89
86
  }
90
87
 
91
88
  void
92
- rbgobj_gobject_initialize(obj, cobj)
93
- VALUE obj;
94
- gpointer cobj;
89
+ rbgobj_gobject_initialize(VALUE obj, gpointer cobj)
95
90
  {
96
91
  gobj_holder* holder = g_object_get_qdata((GObject*)cobj, RUBY_GOBJECT_OBJ_KEY);
97
92
  if (holder)
@@ -136,8 +131,7 @@ rbgobj_get_ruby_object_from_gobject(GObject* gobj, gboolean alloc)
136
131
  }
137
132
 
138
133
  GObject*
139
- rbgobj_get_gobject(obj)
140
- VALUE obj;
134
+ rbgobj_get_gobject(VALUE obj)
141
135
  {
142
136
  gobj_holder* holder;
143
137
 
@@ -155,10 +149,7 @@ rbgobj_get_gobject(obj)
155
149
  }
156
150
 
157
151
  static VALUE
158
- dummy_init(argc, argv, self)
159
- int argc;
160
- VALUE *argv;
161
- VALUE self;
152
+ dummy_init(int argc, VALUE *argv, VALUE self)
162
153
  {
163
154
  GType gtype = CLASS2GTYPE(CLASS_OF(self));
164
155
  if (G_TYPE_IS_ABSTRACT(gtype))
@@ -168,8 +159,7 @@ dummy_init(argc, argv, self)
168
159
  }
169
160
 
170
161
  void
171
- rbgobj_init_object_class(klass)
172
- VALUE klass;
162
+ rbgobj_init_object_class(VALUE klass)
173
163
  {
174
164
  rbgobj_define_property_accessors(klass);
175
165
  if (G_TYPE_IS_ABSTRACT(CLASS2GTYPE(klass)))
@@ -179,8 +169,7 @@ rbgobj_init_object_class(klass)
179
169
  /**********************************************************************/
180
170
 
181
171
  static gboolean
182
- is_gtkobject(gobj)
183
- GObject* gobj;
172
+ is_gtkobject(GObject *gobj)
184
173
  {
185
174
  static GType gtype_gtkobject = G_TYPE_INVALID;
186
175
  if (!gtype_gtkobject)
@@ -218,10 +207,7 @@ gobj_mark(gpointer ptr)
218
207
  }
219
208
 
220
209
  static VALUE
221
- gobj_s_gobject_new(argc, argv, self)
222
- int argc;
223
- VALUE* argv;
224
- VALUE self;
210
+ gobj_s_gobject_new(int argc, VALUE *argv, VALUE self)
225
211
  {
226
212
  const RGObjClassInfo* cinfo = rbgobj_lookup_class(self);
227
213
  VALUE params_hash;
@@ -261,9 +247,7 @@ struct param_setup_arg {
261
247
  };
262
248
 
263
249
  static VALUE
264
- _params_setup(arg, param_setup_arg)
265
- VALUE arg;
266
- struct param_setup_arg* param_setup_arg;
250
+ _params_setup(VALUE arg, struct param_setup_arg *param_setup_arg)
267
251
  {
268
252
  guint index;
269
253
  VALUE name, val;
@@ -318,9 +302,7 @@ gobj_new_ensure(struct param_setup_arg* arg)
318
302
  }
319
303
 
320
304
  GObject*
321
- rbgobj_gobject_new(gtype, params_hash)
322
- GType gtype;
323
- VALUE params_hash;
305
+ rbgobj_gobject_new(GType gtype, VALUE params_hash)
324
306
  {
325
307
  GObject* result;
326
308
 
@@ -381,8 +363,7 @@ gobj_s_install_property(int argc, VALUE* argv, VALUE self)
381
363
  }
382
364
 
383
365
  static VALUE
384
- gobj_s_property(self, property_name)
385
- VALUE self, property_name;
366
+ gobj_s_property(VALUE self, VALUE property_name)
386
367
  {
387
368
  GObjectClass* oclass;
388
369
  const char* name;
@@ -437,10 +418,7 @@ static VALUE type_to_prop_setter_table;
437
418
  static VALUE type_to_prop_getter_table;
438
419
 
439
420
  void
440
- rbgobj_register_property_setter(gtype, name, func)
441
- GType gtype;
442
- const char* name;
443
- RValueToGValueFunc func;
421
+ rbgobj_register_property_setter(GType gtype, const char *name, RValueToGValueFunc func)
444
422
  {
445
423
  GObjectClass* oclass;
446
424
  GParamSpec* pspec;
@@ -461,10 +439,7 @@ rbgobj_register_property_setter(gtype, name, func)
461
439
  }
462
440
 
463
441
  void
464
- rbgobj_register_property_getter(gtype, name, func)
465
- GType gtype;
466
- const char* name;
467
- GValueToRValueFunc func;
442
+ rbgobj_register_property_getter(GType gtype, const char *name, GValueToRValueFunc func)
468
443
  {
469
444
  GObjectClass* oclass;
470
445
  GParamSpec* pspec;
@@ -483,8 +458,7 @@ rbgobj_register_property_getter(gtype, name, func)
483
458
  }
484
459
 
485
460
  static VALUE
486
- gobj_set_property(self, prop_name, val)
487
- VALUE self, prop_name, val;
461
+ gobj_set_property(VALUE self, VALUE prop_name, VALUE val)
488
462
  {
489
463
  GParamSpec* pspec;
490
464
  const char* name;
@@ -531,8 +505,7 @@ gobj_set_property(self, prop_name, val)
531
505
  }
532
506
 
533
507
  static VALUE
534
- gobj_get_property(self, prop_name)
535
- VALUE self, prop_name;
508
+ gobj_get_property(VALUE self, VALUE prop_name)
536
509
  {
537
510
  GParamSpec* pspec;
538
511
  const char* name;
@@ -578,8 +551,7 @@ gobj_get_property(self, prop_name)
578
551
  static VALUE gobj_thaw_notify(VALUE self);
579
552
 
580
553
  static VALUE
581
- gobj_freeze_notify(self)
582
- VALUE self;
554
+ gobj_freeze_notify(VALUE self)
583
555
  {
584
556
  g_object_freeze_notify(RVAL2GOBJ(self));
585
557
  if (rb_block_given_p()) {
@@ -589,24 +561,21 @@ gobj_freeze_notify(self)
589
561
  }
590
562
 
591
563
  static VALUE
592
- gobj_notify(self, property_name)
593
- VALUE self, property_name;
564
+ gobj_notify(VALUE self, VALUE property_name)
594
565
  {
595
566
  g_object_notify(RVAL2GOBJ(self), StringValuePtr(property_name));
596
567
  return self;
597
568
  }
598
569
 
599
570
  static VALUE
600
- gobj_thaw_notify(self)
601
- VALUE self;
571
+ gobj_thaw_notify(VALUE self)
602
572
  {
603
573
  g_object_thaw_notify(RVAL2GOBJ(self));
604
574
  return self;
605
575
  }
606
576
 
607
577
  static VALUE
608
- gobj_is_destroyed(self)
609
- VALUE self;
578
+ gobj_is_destroyed(VALUE self)
610
579
  {
611
580
  gobj_holder* holder;
612
581
 
@@ -619,8 +588,7 @@ gobj_is_destroyed(self)
619
588
  }
620
589
 
621
590
  static VALUE
622
- gobj_inspect(self)
623
- VALUE self;
591
+ gobj_inspect(VALUE self)
624
592
  {
625
593
  gobj_holder* holder;
626
594
  const char *class_name;
@@ -643,10 +611,7 @@ gobj_inspect(self)
643
611
  }
644
612
 
645
613
  static VALUE
646
- gobj_initialize(argc, argv, self)
647
- int argc;
648
- VALUE *argv;
649
- VALUE self;
614
+ gobj_initialize(int argc, VALUE *argv, VALUE self)
650
615
  {
651
616
  VALUE params_hash;
652
617
  GObject* gobj;
@@ -670,8 +635,7 @@ gobj_initialize(argc, argv, self)
670
635
  }
671
636
 
672
637
  static VALUE
673
- gobj_ref_count(self)
674
- VALUE self;
638
+ gobj_ref_count(VALUE self)
675
639
  {
676
640
  gobj_holder* holder;
677
641
  Data_Get_Struct(self, gobj_holder, holder);
@@ -24,16 +24,14 @@ typedef struct {
24
24
  } pspec_holder;
25
25
 
26
26
  static void
27
- pspec_mark(holder)
28
- pspec_holder* holder;
27
+ pspec_mark(pspec_holder *holder)
29
28
  {
30
29
  if (holder->instance)
31
30
  rbgobj_instance_call_cinfo_mark(holder->instance);
32
31
  }
33
32
 
34
33
  static void
35
- pspec_free(holder)
36
- pspec_holder* holder;
34
+ pspec_free(pspec_holder *holder)
37
35
  {
38
36
  if (holder->instance){
39
37
  rbgobj_instance_call_cinfo_free(holder->instance);
@@ -52,9 +50,7 @@ rbgobj_get_param_spec(VALUE obj)
52
50
  }
53
51
 
54
52
  void
55
- rbgobj_param_spec_initialize(self, pspec)
56
- VALUE self;
57
- GParamSpec* pspec;
53
+ rbgobj_param_spec_initialize(VALUE self, GParamSpec *pspec)
58
54
  {
59
55
  pspec_holder* holder;
60
56
  Data_Get_Struct(self, pspec_holder, holder);
@@ -221,8 +217,7 @@ value_validate_ensure(struct validate_arg* arg)
221
217
  }
222
218
 
223
219
  static VALUE
224
- value_validate(self, obj)
225
- VALUE self, obj;
220
+ value_validate(VALUE self, VALUE obj)
226
221
  {
227
222
  struct validate_arg arg;
228
223
  GValue value = {0,};
@@ -274,8 +269,7 @@ value_convert(int argc, VALUE* argv, VALUE self)
274
269
  }
275
270
 
276
271
  static VALUE
277
- values_compare(self, a, b)
278
- VALUE self, a, b;
272
+ values_compare(VALUE self, VALUE a, VALUE b)
279
273
  {
280
274
  GParamSpec* pspec = rbgobj_get_param_spec(self);
281
275
  GType type = G_PARAM_SPEC_VALUE_TYPE(pspec);
@@ -300,8 +294,7 @@ values_compare(self, a, b)
300
294
 
301
295
 
302
296
  static VALUE
303
- get_ref_count(self)
304
- VALUE self;
297
+ get_ref_count(VALUE self)
305
298
  {
306
299
  return INT2NUM(G_PARAM_SPEC(rbgobj_get_param_spec(self))->ref_count);
307
300
  }
@@ -309,8 +302,7 @@ get_ref_count(self)
309
302
 
310
303
  #define param_is_flag(flag) \
311
304
  static VALUE \
312
- param_is_##flag(self) \
313
- VALUE self; \
305
+ param_is_##flag(VALUE self) \
314
306
  { \
315
307
  GParamSpec* pspec = G_PARAM_SPEC(rbgobj_get_param_spec(self)); \
316
308
  return CBOOL2RVAL(pspec->flags & flag); \
@@ -24,10 +24,7 @@ VALUE rbgobj_signal_wrap(guint sig_id);
24
24
  static VALUE signal_func_table;
25
25
 
26
26
  void
27
- rbgobj_set_signal_func(klass, sig_name, func)
28
- VALUE klass;
29
- gchar* sig_name;
30
- GValToRValSignalFunc func;
27
+ rbgobj_set_signal_func(VALUE klass, gchar *sig_name, GValToRValSignalFunc func)
31
28
  {
32
29
  VALUE obj = Data_Wrap_Struct(rb_cData, NULL, NULL, func);
33
30
  guint signal_id = g_signal_lookup(sig_name, CLASS2GTYPE(klass));
@@ -203,10 +200,7 @@ gobj_s_signal(VALUE self, VALUE name)
203
200
  }
204
201
 
205
202
  static VALUE
206
- gobj_sig_has_handler_pending(argc, argv, self)
207
- int argc;
208
- VALUE *argv;
209
- VALUE self;
203
+ gobj_sig_has_handler_pending(int argc, VALUE *argv, VALUE self)
210
204
  {
211
205
  VALUE sig, may_be_blocked;
212
206
  const char* sig_name;
@@ -229,11 +223,7 @@ gobj_sig_has_handler_pending(argc, argv, self)
229
223
  }
230
224
 
231
225
  static VALUE
232
- gobj_sig_connect_impl(after, argc, argv, self)
233
- gboolean after;
234
- int argc;
235
- VALUE *argv;
236
- VALUE self;
226
+ gobj_sig_connect_impl(gboolean after, int argc, VALUE *argv, VALUE self)
237
227
  {
238
228
  VALUE sig, rest;
239
229
  int i;
@@ -273,27 +263,20 @@ gobj_sig_connect_impl(after, argc, argv, self)
273
263
  }
274
264
 
275
265
  static VALUE
276
- gobj_sig_connect(argc, argv, self)
277
- int argc;
278
- VALUE *argv;
279
- VALUE self;
266
+ gobj_sig_connect(int argc, VALUE *argv, VALUE self)
280
267
  {
281
268
  return gobj_sig_connect_impl(FALSE, argc, argv, self);
282
269
  }
283
270
 
284
271
  static VALUE
285
- gobj_sig_connect_after(argc, argv, self)
286
- int argc;
287
- VALUE *argv;
288
- VALUE self;
272
+ gobj_sig_connect_after(int argc, VALUE *argv, VALUE self)
289
273
  {
290
274
  return gobj_sig_connect_impl(TRUE, argc, argv, self);
291
275
  }
292
276
 
293
277
  #if 0
294
278
  static VALUE
295
- gobj_sig_get_invocation_hint(self)
296
- VALUE self;
279
+ gobj_sig_get_invocation_hint(VALUE self)
297
280
  {
298
281
  GSignalInvocationHint* hint;
299
282
  hint = g_signal_get_invocation_hint(RVAL2GOBJ(self));
@@ -366,10 +349,7 @@ emit_ensure(struct emit_arg* arg)
366
349
  }
367
350
 
368
351
  static VALUE
369
- gobj_sig_emit(argc, argv, self)
370
- int argc;
371
- VALUE *argv;
372
- VALUE self;
352
+ gobj_sig_emit(int argc, VALUE *argv, VALUE self)
373
353
  {
374
354
  VALUE sig;
375
355
  const char* sig_name;
@@ -402,8 +382,7 @@ gobj_sig_emit(argc, argv, self)
402
382
  }
403
383
 
404
384
  static VALUE
405
- gobj_sig_emit_stop(self, sig)
406
- VALUE self, sig;
385
+ gobj_sig_emit_stop(VALUE self, VALUE sig)
407
386
  {
408
387
  gpointer instance = RVAL2GOBJ(self);
409
388
  const char* sig_name;
@@ -427,8 +406,7 @@ gobj_sig_emit_stop(self, sig)
427
406
  static VALUE gobj_sig_handler_unblock(VALUE self, VALUE id);
428
407
 
429
408
  static VALUE
430
- _sig_handler_block_ensure(arg)
431
- VALUE arg;
409
+ _sig_handler_block_ensure(VALUE arg)
432
410
  {
433
411
  VALUE self = RARRAY_PTR(arg)[0];
434
412
  VALUE id = RARRAY_PTR(arg)[1];
@@ -437,8 +415,7 @@ _sig_handler_block_ensure(arg)
437
415
  }
438
416
 
439
417
  static VALUE
440
- gobj_sig_handler_block(self, id)
441
- VALUE self, id;
418
+ gobj_sig_handler_block(VALUE self, VALUE id)
442
419
  {
443
420
  g_signal_handler_block(RVAL2GOBJ(self), NUM2ULONG(id));
444
421
  if (rb_block_given_p())
@@ -448,24 +425,21 @@ gobj_sig_handler_block(self, id)
448
425
  }
449
426
 
450
427
  static VALUE
451
- gobj_sig_handler_unblock(self, id)
452
- VALUE self, id;
428
+ gobj_sig_handler_unblock(VALUE self, VALUE id)
453
429
  {
454
430
  g_signal_handler_unblock(RVAL2GOBJ(self), NUM2ULONG(id));
455
431
  return self;
456
432
  }
457
433
 
458
434
  static VALUE
459
- gobj_sig_handler_disconnect(self, id)
460
- VALUE self, id;
435
+ gobj_sig_handler_disconnect(VALUE self, VALUE id)
461
436
  {
462
437
  g_signal_handler_disconnect(RVAL2GOBJ(self), NUM2ULONG(id));
463
438
  return self;
464
439
  }
465
440
 
466
441
  static VALUE
467
- gobj_sig_handler_is_connected(self, id)
468
- VALUE self, id;
442
+ gobj_sig_handler_is_connected(VALUE self, VALUE id)
469
443
  {
470
444
  return CBOOL2RVAL(g_signal_handler_is_connected(RVAL2GOBJ(self), NUM2ULONG(id)));
471
445
  }
@@ -540,10 +514,7 @@ chain_from_overridden_body(struct emit_arg* arg)
540
514
  }
541
515
 
542
516
  static VALUE
543
- gobj_sig_chain_from_overridden(argc, argv, self)
544
- int argc;
545
- VALUE* argv;
546
- VALUE self;
517
+ gobj_sig_chain_from_overridden(int argc, VALUE *argv, VALUE self)
547
518
  {
548
519
  struct emit_arg arg;
549
520
 
@@ -568,8 +539,7 @@ gobj_sig_chain_from_overridden(argc, argv, self)
568
539
  }
569
540
 
570
541
  static VALUE
571
- gobj_s_method_added(klass, id)
572
- VALUE klass, id;
542
+ gobj_s_method_added(VALUE klass, VALUE id)
573
543
  {
574
544
  const RGObjClassInfo* cinfo = rbgobj_lookup_class(klass);
575
545
  const char* name = rb_id2name(SYM2ID(id));
@@ -654,8 +624,7 @@ Init_signal_misc()
654
624
  /**********************************************************************/
655
625
 
656
626
  VALUE
657
- rbgobj_signal_wrap(sig_id)
658
- guint sig_id;
627
+ rbgobj_signal_wrap(guint sig_id)
659
628
  {
660
629
  VALUE result;
661
630
  GSignalQuery* query;
@@ -666,8 +635,7 @@ rbgobj_signal_wrap(sig_id)
666
635
  }
667
636
 
668
637
  static VALUE
669
- query_signal_id(self)
670
- VALUE self;
638
+ query_signal_id(VALUE self)
671
639
  {
672
640
  GSignalQuery* query;
673
641
  Data_Get_Struct(self, GSignalQuery, query);
@@ -675,8 +643,7 @@ query_signal_id(self)
675
643
  }
676
644
 
677
645
  static VALUE
678
- query_signal_name(self)
679
- VALUE self;
646
+ query_signal_name(VALUE self)
680
647
  {
681
648
  GSignalQuery* query;
682
649
  Data_Get_Struct(self, GSignalQuery, query);
@@ -684,8 +651,7 @@ query_signal_name(self)
684
651
  }
685
652
 
686
653
  static VALUE
687
- query_itype(self)
688
- VALUE self;
654
+ query_itype(VALUE self)
689
655
  {
690
656
  GSignalQuery* query;
691
657
  Data_Get_Struct(self, GSignalQuery, query);
@@ -693,8 +659,7 @@ query_itype(self)
693
659
  }
694
660
 
695
661
  static VALUE
696
- query_owner(self)
697
- VALUE self;
662
+ query_owner(VALUE self)
698
663
  {
699
664
  GSignalQuery* query;
700
665
  Data_Get_Struct(self, GSignalQuery, query);
@@ -702,8 +667,7 @@ query_owner(self)
702
667
  }
703
668
 
704
669
  static VALUE
705
- query_return_type(self)
706
- VALUE self;
670
+ query_return_type(VALUE self)
707
671
  {
708
672
  GSignalQuery* query;
709
673
  Data_Get_Struct(self, GSignalQuery, query);
@@ -711,8 +675,7 @@ query_return_type(self)
711
675
  }
712
676
 
713
677
  static VALUE
714
- query_signal_flags(self)
715
- VALUE self;
678
+ query_signal_flags(VALUE self)
716
679
  {
717
680
  GSignalQuery* query;
718
681
  Data_Get_Struct(self, GSignalQuery, query);
@@ -720,8 +683,7 @@ query_signal_flags(self)
720
683
  }
721
684
 
722
685
  static VALUE
723
- query_param_types(self)
724
- VALUE self;
686
+ query_param_types(VALUE self)
725
687
  {
726
688
  GSignalQuery* query;
727
689
  VALUE result;
@@ -736,8 +698,7 @@ query_param_types(self)
736
698
  }
737
699
 
738
700
  static VALUE
739
- query_inspect(self)
740
- VALUE self;
701
+ query_inspect(VALUE self)
741
702
  {
742
703
  GSignalQuery* query;
743
704
  gchar* s;
@@ -759,8 +720,7 @@ query_inspect(self)
759
720
 
760
721
  #define query_is_flag(flag) \
761
722
  static VALUE \
762
- query_is_##flag(self) \
763
- VALUE self; \
723
+ query_is_##flag(VALUE self) \
764
724
  { \
765
725
  GSignalQuery* query; \
766
726
  Data_Get_Struct(self, GSignalQuery, query); \