atk 0.90.7-x86-mingw32 → 0.90.8-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +13 -0
- data/ext/atk/extconf.rb +0 -2
- data/ext/atk/rbatkaction.c +7 -14
- data/ext/atk/rbatkcomponent.c +15 -31
- data/ext/atk/rbatkdocument.c +6 -12
- data/ext/atk/rbatkeditabletext.c +7 -14
- data/ext/atk/rbatkgobjectaccessible.c +2 -4
- data/ext/atk/rbatkhyperlink.c +8 -16
- data/ext/atk/rbatkhypertext.c +3 -6
- data/ext/atk/rbatkimage.c +4 -8
- data/ext/atk/rbatkimplementor.c +1 -2
- data/ext/atk/rbatknoopobject.c +1 -2
- data/ext/atk/rbatknoopobjectfactory.c +1 -2
- data/ext/atk/rbatkobject.c +10 -20
- data/ext/atk/rbatkobjectfactory.c +3 -6
- data/ext/atk/rbatkregistry.c +4 -8
- data/ext/atk/rbatkrelation.c +6 -12
- data/ext/atk/rbatkrelationset.c +7 -14
- data/ext/atk/rbatkselection.c +7 -14
- data/ext/atk/rbatkstate.c +2 -4
- data/ext/atk/rbatkstateset.c +11 -22
- data/ext/atk/rbatkstreamablecontent.c +3 -6
- data/ext/atk/rbatktable.c +29 -58
- data/ext/atk/rbatktext.c +22 -44
- data/ext/atk/rbatktextrange.c +4 -8
- data/ext/atk/rbatktextrectangle.c +10 -20
- data/ext/atk/rbatkutil.c +7 -14
- data/ext/atk/rbatkvalue.c +4 -8
- data/lib/1.8/atk.so +0 -0
- data/lib/1.9/atk.so +0 -0
- metadata +7 -7
data/ChangeLog
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
2011-02-26 Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
|
3
|
+
* ext/atk/extconf.rb: remove needless add_distcleanfile.
|
4
|
+
Patch by Vincent Carmona. Thanks!!!
|
5
|
+
|
6
|
+
2011-02-05 Masaaki Aoyagi
|
7
|
+
|
8
|
+
* ext/atk/*.c: change to ANSI C style.
|
9
|
+
|
10
|
+
2011-02-04 Masaaki Aoyagi
|
11
|
+
|
12
|
+
* ext/atk/rbatkstateset.c: fix declaration.
|
13
|
+
|
1
14
|
2011-01-30 Kouhei Sutou <kou@cozmixng.org>
|
2
15
|
|
3
16
|
* Rakefile, ext/atk/extconf.rb: share depended packages
|
data/ext/atk/extconf.rb
CHANGED
data/ext/atk/rbatkaction.c
CHANGED
@@ -14,52 +14,45 @@
|
|
14
14
|
#define _SELF(s) (ATK_ACTION(RVAL2GOBJ(s)))
|
15
15
|
|
16
16
|
static VALUE
|
17
|
-
rbatk_action_do_action(self, i)
|
18
|
-
VALUE self, i;
|
17
|
+
rbatk_action_do_action(VALUE self, VALUE i)
|
19
18
|
{
|
20
19
|
return CBOOL2RVAL(atk_action_do_action(_SELF(self), NUM2INT(i)));
|
21
20
|
}
|
22
21
|
|
23
22
|
static VALUE
|
24
|
-
rbatk_action_get_n_actions(self)
|
25
|
-
VALUE self;
|
23
|
+
rbatk_action_get_n_actions(VALUE self)
|
26
24
|
{
|
27
25
|
return INT2NUM(atk_action_get_n_actions(_SELF(self)));
|
28
26
|
}
|
29
27
|
|
30
28
|
static VALUE
|
31
|
-
rbatk_action_get_description(self, i)
|
32
|
-
VALUE self, i;
|
29
|
+
rbatk_action_get_description(VALUE self, VALUE i)
|
33
30
|
{
|
34
31
|
return CSTR2RVAL(atk_action_get_description(_SELF(self), NUM2INT(i)));
|
35
32
|
}
|
36
33
|
|
37
34
|
static VALUE
|
38
|
-
rbatk_action_get_name(self, i)
|
39
|
-
VALUE self, i;
|
35
|
+
rbatk_action_get_name(VALUE self, VALUE i)
|
40
36
|
{
|
41
37
|
return CSTR2RVAL(atk_action_get_name(_SELF(self), NUM2INT(i)));
|
42
38
|
}
|
43
39
|
|
44
40
|
#ifdef HAVE_ATK_ACTION_GET_LOCALIZED_NAME
|
45
41
|
static VALUE
|
46
|
-
rbatk_action_get_localized_name(self, i)
|
47
|
-
VALUE self, i;
|
42
|
+
rbatk_action_get_localized_name(VALUE self, VALUE i)
|
48
43
|
{
|
49
44
|
return CSTR2RVAL(atk_action_get_localized_name(_SELF(self), NUM2INT(i)));
|
50
45
|
}
|
51
46
|
#endif
|
52
47
|
|
53
48
|
static VALUE
|
54
|
-
rbatk_action_get_keybinding(self, i)
|
55
|
-
VALUE self, i;
|
49
|
+
rbatk_action_get_keybinding(VALUE self, VALUE i)
|
56
50
|
{
|
57
51
|
return CSTR2RVAL(atk_action_get_keybinding(_SELF(self), NUM2INT(i)));
|
58
52
|
}
|
59
53
|
|
60
54
|
static VALUE
|
61
|
-
rbatk_action_set_description(self, i, desc)
|
62
|
-
VALUE self, i, desc;
|
55
|
+
rbatk_action_set_description(VALUE self, VALUE i, VALUE desc)
|
63
56
|
{
|
64
57
|
return CBOOL2RVAL(atk_action_set_description(_SELF(self), NUM2INT(i), RVAL2CSTR(desc)));
|
65
58
|
}
|
data/ext/atk/rbatkcomponent.c
CHANGED
@@ -15,16 +15,13 @@
|
|
15
15
|
|
16
16
|
/*
|
17
17
|
static void
|
18
|
-
focus_handler(aobj, bool)
|
19
|
-
AtkObject* aobj;
|
20
|
-
gboolean bool;
|
18
|
+
focus_handler(AtkObject *aobj, gboolean bool)
|
21
19
|
{
|
22
20
|
VALUE ret = rb_funcall((VALUE)func, id_call, 2,
|
23
21
|
GOBJ2RVAL(aobj), CBOOL2RVAL(bool));
|
24
22
|
}
|
25
23
|
static VALUE
|
26
|
-
comp_add_focus_handler(self)
|
27
|
-
VALUE self;
|
24
|
+
comp_add_focus_handler(VALUE self)
|
28
25
|
{
|
29
26
|
VALUE func = rb_block_proc();
|
30
27
|
G_RELATIVE(self, func);
|
@@ -33,8 +30,7 @@ comp_add_focus_handler(self)
|
|
33
30
|
*/
|
34
31
|
|
35
32
|
static VALUE
|
36
|
-
comp_contains(self, x, y, coord_type)
|
37
|
-
VALUE self, x, y, coord_type;
|
33
|
+
comp_contains(VALUE self, VALUE x, VALUE y, VALUE coord_type)
|
38
34
|
{
|
39
35
|
return CBOOL2RVAL(atk_component_contains(_SELF(self),
|
40
36
|
NUM2INT(x), NUM2INT(y),
|
@@ -42,8 +38,7 @@ comp_contains(self, x, y, coord_type)
|
|
42
38
|
}
|
43
39
|
|
44
40
|
static VALUE
|
45
|
-
comp_get_extents(self, coord_type)
|
46
|
-
VALUE self, coord_type;
|
41
|
+
comp_get_extents(VALUE self, VALUE coord_type)
|
47
42
|
{
|
48
43
|
gint x, y, width, height;
|
49
44
|
atk_component_get_extents(_SELF(self), &x, &y, &width, &height,
|
@@ -53,8 +48,7 @@ comp_get_extents(self, coord_type)
|
|
53
48
|
|
54
49
|
#ifdef HAVE_ATK_COMPONENT_GET_LAYER
|
55
50
|
static VALUE
|
56
|
-
comp_get_layer(self)
|
57
|
-
VALUE self;
|
51
|
+
comp_get_layer(VALUE self)
|
58
52
|
{
|
59
53
|
return GENUM2RVAL(atk_component_get_layer(_SELF(self)), ATK_TYPE_LAYER);
|
60
54
|
}
|
@@ -62,16 +56,14 @@ comp_get_layer(self)
|
|
62
56
|
|
63
57
|
#ifdef HAVE_ATK_COMPONENT_GET_MDI_ZORDER
|
64
58
|
static VALUE
|
65
|
-
comp_get_mdi_zorder(self)
|
66
|
-
VALUE self;
|
59
|
+
comp_get_mdi_zorder(VALUE self)
|
67
60
|
{
|
68
61
|
return INT2NUM(atk_component_get_mdi_zorder(_SELF(self)));
|
69
62
|
}
|
70
63
|
|
71
64
|
#endif
|
72
65
|
static VALUE
|
73
|
-
comp_get_position(self, coord_type)
|
74
|
-
VALUE self, coord_type;
|
66
|
+
comp_get_position(VALUE self, VALUE coord_type)
|
75
67
|
{
|
76
68
|
gint x, y;
|
77
69
|
atk_component_get_position(_SELF(self), &x, &y,
|
@@ -80,8 +72,7 @@ comp_get_position(self, coord_type)
|
|
80
72
|
}
|
81
73
|
|
82
74
|
static VALUE
|
83
|
-
comp_get_size(self)
|
84
|
-
VALUE self;
|
75
|
+
comp_get_size(VALUE self)
|
85
76
|
{
|
86
77
|
gint width, height;
|
87
78
|
atk_component_get_size(_SELF(self), &width, &height);
|
@@ -89,15 +80,13 @@ comp_get_size(self)
|
|
89
80
|
}
|
90
81
|
|
91
82
|
static VALUE
|
92
|
-
comp_grab_focus(self)
|
93
|
-
VALUE self;
|
83
|
+
comp_grab_focus(VALUE self)
|
94
84
|
{
|
95
85
|
return CBOOL2RVAL(atk_component_grab_focus(_SELF(self)));
|
96
86
|
}
|
97
87
|
|
98
88
|
static VALUE
|
99
|
-
comp_ref_accessible_at_point(self, x, y, coord_type)
|
100
|
-
VALUE self, x, y, coord_type;
|
89
|
+
comp_ref_accessible_at_point(VALUE self, VALUE x, VALUE y, VALUE coord_type)
|
101
90
|
{
|
102
91
|
return GOBJ2RVAL(atk_component_ref_accessible_at_point(
|
103
92
|
_SELF(self),
|
@@ -106,16 +95,14 @@ comp_ref_accessible_at_point(self, x, y, coord_type)
|
|
106
95
|
}
|
107
96
|
|
108
97
|
static VALUE
|
109
|
-
comp_remove_focus_handler(self, handler_id)
|
110
|
-
VALUE self, handler_id;
|
98
|
+
comp_remove_focus_handler(VALUE self, VALUE handler_id)
|
111
99
|
{
|
112
100
|
atk_component_remove_focus_handler(_SELF(self), NUM2UINT(handler_id));
|
113
101
|
return self;
|
114
102
|
}
|
115
103
|
|
116
104
|
static VALUE
|
117
|
-
comp_set_extents(self, x, y, width, height, coord_type)
|
118
|
-
VALUE self, x, y, width, height, coord_type;
|
105
|
+
comp_set_extents(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height, VALUE coord_type)
|
119
106
|
{
|
120
107
|
gboolean ret = atk_component_set_extents(_SELF(self),
|
121
108
|
NUM2INT(x), NUM2INT(y),
|
@@ -126,8 +113,7 @@ comp_set_extents(self, x, y, width, height, coord_type)
|
|
126
113
|
}
|
127
114
|
|
128
115
|
static VALUE
|
129
|
-
comp_set_position(self, x, y, coord_type)
|
130
|
-
VALUE self, x, y, coord_type;
|
116
|
+
comp_set_position(VALUE self, VALUE x, VALUE y, VALUE coord_type)
|
131
117
|
{
|
132
118
|
gboolean ret = atk_component_set_position(_SELF(self),
|
133
119
|
NUM2INT(x), NUM2INT(y),
|
@@ -137,8 +123,7 @@ comp_set_position(self, x, y, coord_type)
|
|
137
123
|
}
|
138
124
|
|
139
125
|
static VALUE
|
140
|
-
comp_set_size(self, width, height)
|
141
|
-
VALUE self, width, height;
|
126
|
+
comp_set_size(VALUE self, VALUE width, VALUE height)
|
142
127
|
{
|
143
128
|
gboolean ret = atk_component_set_size(_SELF(self),
|
144
129
|
NUM2INT(width), NUM2INT(height));
|
@@ -148,8 +133,7 @@ comp_set_size(self, width, height)
|
|
148
133
|
|
149
134
|
#if ATK_CHECK_VERSION(1,12,0)
|
150
135
|
static VALUE
|
151
|
-
comp_get_alpha(self)
|
152
|
-
VALUE self;
|
136
|
+
comp_get_alpha(VALUE self)
|
153
137
|
{
|
154
138
|
return rb_float_new(atk_component_get_alpha(_SELF(self)));
|
155
139
|
}
|
data/ext/atk/rbatkdocument.c
CHANGED
@@ -14,8 +14,7 @@
|
|
14
14
|
#define _SELF(s) (ATK_DOCUMENT(RVAL2GOBJ(s)))
|
15
15
|
|
16
16
|
static VALUE
|
17
|
-
rbatk_document_get_document_type(self)
|
18
|
-
VALUE self;
|
17
|
+
rbatk_document_get_document_type(VALUE self)
|
19
18
|
{
|
20
19
|
return CSTR2RVAL(atk_document_get_document_type(_SELF(self)));
|
21
20
|
}
|
@@ -23,8 +22,7 @@ rbatk_document_get_document_type(self)
|
|
23
22
|
/*
|
24
23
|
How can I implement this?
|
25
24
|
static VALUE
|
26
|
-
rbatk_document_get_document(self)
|
27
|
-
VALUE self;
|
25
|
+
rbatk_document_get_document(VALUE self)
|
28
26
|
{
|
29
27
|
return GOBJ2RVAL(atk_document_get_document(_SELF(self)));
|
30
28
|
}
|
@@ -32,16 +30,14 @@ rbatk_document_get_document(self)
|
|
32
30
|
|
33
31
|
#if ATK_CHECK_VERSION(1,12,0)
|
34
32
|
static VALUE
|
35
|
-
rbatk_document_get_attribute_value(self, name)
|
36
|
-
VALUE self, name;
|
33
|
+
rbatk_document_get_attribute_value(VALUE self, VALUE name)
|
37
34
|
{
|
38
35
|
return CSTR2RVAL(atk_document_get_attribute_value(_SELF(self),
|
39
36
|
(const gchar*)RVAL2CSTR(name)));
|
40
37
|
}
|
41
38
|
|
42
39
|
static VALUE
|
43
|
-
rbatk_document_set_attribute_value(self, name, value)
|
44
|
-
VALUE self, name, value;
|
40
|
+
rbatk_document_set_attribute_value(VALUE self, VALUE name, VALUE value)
|
45
41
|
{
|
46
42
|
gboolean ret = atk_document_set_attribute_value(_SELF(self),
|
47
43
|
(const gchar*)RVAL2CSTR(name),
|
@@ -54,8 +50,7 @@ rbatk_document_set_attribute_value(self, name, value)
|
|
54
50
|
}
|
55
51
|
|
56
52
|
static VALUE
|
57
|
-
rbatk_document_get_attributes(self)
|
58
|
-
VALUE self;
|
53
|
+
rbatk_document_get_attributes(VALUE self)
|
59
54
|
{
|
60
55
|
AtkAttributeSet* list = atk_document_get_attributes(_SELF(self));
|
61
56
|
VALUE ary = rb_ary_new();
|
@@ -68,8 +63,7 @@ rbatk_document_get_attributes(self)
|
|
68
63
|
}
|
69
64
|
|
70
65
|
static VALUE
|
71
|
-
rbatk_document_get_locale(self)
|
72
|
-
VALUE self;
|
66
|
+
rbatk_document_get_locale(VALUE self)
|
73
67
|
{
|
74
68
|
return CSTR2RVAL(atk_document_get_locale(_SELF(self)));
|
75
69
|
}
|
data/ext/atk/rbatkeditabletext.c
CHANGED
@@ -13,8 +13,7 @@
|
|
13
13
|
#define _SELF(s) (ATK_EDITABLE_TEXT(RVAL2GOBJ(s)))
|
14
14
|
|
15
15
|
static VALUE
|
16
|
-
rbatk_edit_set_run_attributes(self, attributes, start_offset, end_offset)
|
17
|
-
VALUE self, attributes, start_offset, end_offset;
|
16
|
+
rbatk_edit_set_run_attributes(VALUE self, VALUE attributes, VALUE start_offset, VALUE end_offset)
|
18
17
|
{
|
19
18
|
long i;
|
20
19
|
gboolean ret;
|
@@ -35,16 +34,14 @@ rbatk_edit_set_run_attributes(self, attributes, start_offset, end_offset)
|
|
35
34
|
}
|
36
35
|
|
37
36
|
static VALUE
|
38
|
-
rbatk_edit_set_text_contents(self, str)
|
39
|
-
VALUE self, str;
|
37
|
+
rbatk_edit_set_text_contents(VALUE self, VALUE str)
|
40
38
|
{
|
41
39
|
atk_editable_text_set_text_contents(_SELF(self), RVAL2CSTR(str));
|
42
40
|
return self;
|
43
41
|
}
|
44
42
|
|
45
43
|
static VALUE
|
46
|
-
rbatk_edit_insert_text(self, str, position)
|
47
|
-
VALUE self, str, position;
|
44
|
+
rbatk_edit_insert_text(VALUE self, VALUE str, VALUE position)
|
48
45
|
{
|
49
46
|
gint pos = NUM2INT(position);
|
50
47
|
|
@@ -54,32 +51,28 @@ rbatk_edit_insert_text(self, str, position)
|
|
54
51
|
}
|
55
52
|
|
56
53
|
static VALUE
|
57
|
-
rbatk_edit_copy_text(self, start_pos, end_pos)
|
58
|
-
VALUE self, start_pos, end_pos;
|
54
|
+
rbatk_edit_copy_text(VALUE self, VALUE start_pos, VALUE end_pos)
|
59
55
|
{
|
60
56
|
atk_editable_text_copy_text(_SELF(self), NUM2INT(start_pos), NUM2INT(end_pos));
|
61
57
|
return self;
|
62
58
|
}
|
63
59
|
|
64
60
|
static VALUE
|
65
|
-
rbatk_edit_cut_text(self, start_pos, end_pos)
|
66
|
-
VALUE self, start_pos, end_pos;
|
61
|
+
rbatk_edit_cut_text(VALUE self, VALUE start_pos, VALUE end_pos)
|
67
62
|
{
|
68
63
|
atk_editable_text_cut_text(_SELF(self), NUM2INT(start_pos), NUM2INT(end_pos));
|
69
64
|
return self;
|
70
65
|
}
|
71
66
|
|
72
67
|
static VALUE
|
73
|
-
rbatk_edit_delete_text(self, start_pos, end_pos)
|
74
|
-
VALUE self, start_pos, end_pos;
|
68
|
+
rbatk_edit_delete_text(VALUE self, VALUE start_pos, VALUE end_pos)
|
75
69
|
{
|
76
70
|
atk_editable_text_delete_text(_SELF(self), NUM2INT(start_pos), NUM2INT(end_pos));
|
77
71
|
return self;
|
78
72
|
}
|
79
73
|
|
80
74
|
static VALUE
|
81
|
-
rbatk_edit_paste_text(self, position)
|
82
|
-
VALUE self, position;
|
75
|
+
rbatk_edit_paste_text(VALUE self, VALUE position)
|
83
76
|
{
|
84
77
|
atk_editable_text_paste_text(_SELF(self), NUM2INT(position));
|
85
78
|
return self;
|
@@ -14,15 +14,13 @@
|
|
14
14
|
#define _SELF(s) (ATK_GOBJECT_ACCESSIBLE(RVAL2GOBJ(s)))
|
15
15
|
|
16
16
|
static VALUE
|
17
|
-
rbatk_gobjectaccessible_s_for_object(self, obj)
|
18
|
-
VALUE self, obj;
|
17
|
+
rbatk_gobjectaccessible_s_for_object(VALUE self, VALUE obj)
|
19
18
|
{
|
20
19
|
return GOBJ2RVAL(atk_gobject_accessible_for_object(RVAL2GOBJ(obj)));
|
21
20
|
}
|
22
21
|
|
23
22
|
static VALUE
|
24
|
-
rbatk_gobjectaccessible_get_object(self)
|
25
|
-
VALUE self;
|
23
|
+
rbatk_gobjectaccessible_get_object(VALUE self)
|
26
24
|
{
|
27
25
|
return GOBJ2RVAL(atk_gobject_accessible_get_object(_SELF(self)));
|
28
26
|
}
|
data/ext/atk/rbatkhyperlink.c
CHANGED
@@ -13,60 +13,52 @@
|
|
13
13
|
#define _SELF(s) (ATK_HYPERLINK(RVAL2GOBJ(s)))
|
14
14
|
|
15
15
|
static VALUE
|
16
|
-
rbatk_hl_get_uri(self, i)
|
17
|
-
VALUE self, i;
|
16
|
+
rbatk_hl_get_uri(VALUE self, VALUE i)
|
18
17
|
{
|
19
18
|
return CSTR2RVAL(atk_hyperlink_get_uri(_SELF(self), NUM2INT(i)));
|
20
19
|
}
|
21
20
|
|
22
21
|
static VALUE
|
23
|
-
rbatk_hl_get_object(self, i)
|
24
|
-
VALUE self, i;
|
22
|
+
rbatk_hl_get_object(VALUE self, VALUE i)
|
25
23
|
{
|
26
24
|
return GOBJ2RVAL(atk_hyperlink_get_object(_SELF(self), NUM2INT(i)));
|
27
25
|
}
|
28
26
|
|
29
27
|
static VALUE
|
30
|
-
rbatk_hl_get_end_index(self)
|
31
|
-
VALUE self;
|
28
|
+
rbatk_hl_get_end_index(VALUE self)
|
32
29
|
{
|
33
30
|
return INT2NUM(atk_hyperlink_get_end_index(_SELF(self)));
|
34
31
|
}
|
35
32
|
|
36
33
|
static VALUE
|
37
|
-
rbatk_hl_get_start_index(self)
|
38
|
-
VALUE self;
|
34
|
+
rbatk_hl_get_start_index(VALUE self)
|
39
35
|
{
|
40
36
|
return INT2NUM(atk_hyperlink_get_start_index(_SELF(self)));
|
41
37
|
}
|
42
38
|
|
43
39
|
static VALUE
|
44
|
-
rbatk_hl_is_valid(self)
|
45
|
-
VALUE self;
|
40
|
+
rbatk_hl_is_valid(VALUE self)
|
46
41
|
{
|
47
42
|
return CBOOL2RVAL(atk_hyperlink_is_valid(_SELF(self)));
|
48
43
|
}
|
49
44
|
|
50
45
|
#ifdef HAVE_ATK_HYPERLINK_IS_INLINE
|
51
46
|
static VALUE
|
52
|
-
rbatk_hl_is_inline(self)
|
53
|
-
VALUE self;
|
47
|
+
rbatk_hl_is_inline(VALUE self)
|
54
48
|
{
|
55
49
|
return CBOOL2RVAL(atk_hyperlink_is_inline(_SELF(self)));
|
56
50
|
}
|
57
51
|
#endif
|
58
52
|
|
59
53
|
static VALUE
|
60
|
-
rbatk_hl_get_n_anchors(self)
|
61
|
-
VALUE self;
|
54
|
+
rbatk_hl_get_n_anchors(VALUE self)
|
62
55
|
{
|
63
56
|
return INT2NUM(atk_hyperlink_get_n_anchors(_SELF(self)));
|
64
57
|
}
|
65
58
|
|
66
59
|
#ifdef HAVE_ATK_HYPERLINK_IS_SELECTED_LINK
|
67
60
|
static VALUE
|
68
|
-
rbatk_hl_is_selected_link(self)
|
69
|
-
VALUE self;
|
61
|
+
rbatk_hl_is_selected_link(VALUE self)
|
70
62
|
{
|
71
63
|
return CBOOL2RVAL(atk_hyperlink_is_selected_link(_SELF(self)));
|
72
64
|
}
|
data/ext/atk/rbatkhypertext.c
CHANGED
@@ -13,22 +13,19 @@
|
|
13
13
|
#define _SELF(s) (ATK_HYPERTEXT(RVAL2GOBJ(s)))
|
14
14
|
|
15
15
|
static VALUE
|
16
|
-
rbatk_ht_get_link(self, link_index)
|
17
|
-
VALUE self, link_index;
|
16
|
+
rbatk_ht_get_link(VALUE self, VALUE link_index)
|
18
17
|
{
|
19
18
|
return GOBJ2RVAL(atk_hypertext_get_link(_SELF(self), NUM2INT(link_index)));
|
20
19
|
}
|
21
20
|
|
22
21
|
static VALUE
|
23
|
-
rbatk_ht_get_n_links(self)
|
24
|
-
VALUE self;
|
22
|
+
rbatk_ht_get_n_links(VALUE self)
|
25
23
|
{
|
26
24
|
return INT2NUM(atk_hypertext_get_n_links(_SELF(self)));
|
27
25
|
}
|
28
26
|
|
29
27
|
static VALUE
|
30
|
-
rbatk_ht_get_link_index(self, char_index)
|
31
|
-
VALUE self, char_index;
|
28
|
+
rbatk_ht_get_link_index(VALUE self, VALUE char_index)
|
32
29
|
{
|
33
30
|
return INT2NUM(atk_hypertext_get_link_index(_SELF(self), NUM2INT(char_index)));
|
34
31
|
}
|