atk 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.
- 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
@@ -14,22 +14,19 @@
|
|
14
14
|
#define _SELF(s) (ATK_STREAMABLE_CONTENT(RVAL2GOBJ(s)))
|
15
15
|
|
16
16
|
static VALUE
|
17
|
-
rbatkst_get_n_mime_types(self)
|
18
|
-
VALUE self;
|
17
|
+
rbatkst_get_n_mime_types(VALUE self)
|
19
18
|
{
|
20
19
|
return INT2NUM(atk_streamable_content_get_n_mime_types(_SELF(self)));
|
21
20
|
}
|
22
21
|
|
23
22
|
static VALUE
|
24
|
-
rbatkst_get_mime_type(self, i)
|
25
|
-
VALUE self, i;
|
23
|
+
rbatkst_get_mime_type(VALUE self, VALUE i)
|
26
24
|
{
|
27
25
|
return CSTR2RVAL(atk_streamable_content_get_mime_type(_SELF(self), NUM2INT(i)));
|
28
26
|
}
|
29
27
|
|
30
28
|
static VALUE
|
31
|
-
rbatkst_get_stream(self, mime_type)
|
32
|
-
VALUE self, mime_type;
|
29
|
+
rbatkst_get_stream(VALUE self, VALUE mime_type)
|
33
30
|
{
|
34
31
|
GIOChannel* io = atk_streamable_content_get_stream(_SELF(self), RVAL2CSTR(mime_type));
|
35
32
|
if (!io)
|
data/ext/atk/rbatktable.c
CHANGED
@@ -14,154 +14,133 @@
|
|
14
14
|
#define _SELF(s) (ATK_TABLE(RVAL2GOBJ(s)))
|
15
15
|
|
16
16
|
static VALUE
|
17
|
-
rbatk_table_ref_at(self, row, column)
|
18
|
-
VALUE self, row, column;
|
17
|
+
rbatk_table_ref_at(VALUE self, VALUE row, VALUE column)
|
19
18
|
{
|
20
19
|
return GOBJ2RVAL(atk_table_ref_at(_SELF(self), NUM2INT(row), NUM2INT(column)));
|
21
20
|
}
|
22
21
|
|
23
22
|
static VALUE
|
24
|
-
rbatk_table_get_index_at(self, row, column)
|
25
|
-
VALUE self, row, column;
|
23
|
+
rbatk_table_get_index_at(VALUE self, VALUE row, VALUE column)
|
26
24
|
{
|
27
25
|
return INT2NUM(atk_table_get_index_at(_SELF(self), NUM2INT(row), NUM2INT(column)));
|
28
26
|
}
|
29
27
|
|
30
28
|
static VALUE
|
31
|
-
rbatk_table_get_column_at_index(self, index_)
|
32
|
-
VALUE self, index_;
|
29
|
+
rbatk_table_get_column_at_index(VALUE self, VALUE index_)
|
33
30
|
{
|
34
31
|
return INT2NUM(atk_table_get_column_at_index(_SELF(self), NUM2INT(index_)));
|
35
32
|
}
|
36
33
|
|
37
34
|
static VALUE
|
38
|
-
rbatk_table_get_row_at_index(self, index_)
|
39
|
-
VALUE self, index_;
|
35
|
+
rbatk_table_get_row_at_index(VALUE self, VALUE index_)
|
40
36
|
{
|
41
37
|
return INT2NUM(atk_table_get_row_at_index(_SELF(self), NUM2INT(index_)));
|
42
38
|
}
|
43
39
|
|
44
40
|
static VALUE
|
45
|
-
rbatk_table_get_n_columns(self)
|
46
|
-
VALUE self;
|
41
|
+
rbatk_table_get_n_columns(VALUE self)
|
47
42
|
{
|
48
43
|
return INT2NUM(atk_table_get_n_columns(_SELF(self)));
|
49
44
|
}
|
50
45
|
|
51
46
|
static VALUE
|
52
|
-
rbatk_table_get_n_rows(self)
|
53
|
-
VALUE self;
|
47
|
+
rbatk_table_get_n_rows(VALUE self)
|
54
48
|
{
|
55
49
|
return INT2NUM(atk_table_get_n_rows(_SELF(self)));
|
56
50
|
}
|
57
51
|
|
58
52
|
static VALUE
|
59
|
-
rbatk_table_get_column_extent_at(self, row, column)
|
60
|
-
VALUE self, row, column;
|
53
|
+
rbatk_table_get_column_extent_at(VALUE self, VALUE row, VALUE column)
|
61
54
|
{
|
62
55
|
return INT2NUM(atk_table_get_column_extent_at(_SELF(self), NUM2INT(row), NUM2INT(column)));
|
63
56
|
}
|
64
57
|
|
65
58
|
static VALUE
|
66
|
-
rbatk_table_get_row_extent_at(self, row, column)
|
67
|
-
VALUE self, row, column;
|
59
|
+
rbatk_table_get_row_extent_at(VALUE self, VALUE row, VALUE column)
|
68
60
|
{
|
69
61
|
return INT2NUM(atk_table_get_row_extent_at(_SELF(self), NUM2INT(row), NUM2INT(column)));
|
70
62
|
}
|
71
63
|
|
72
64
|
static VALUE
|
73
|
-
rbatk_table_get_caption(self)
|
74
|
-
VALUE self;
|
65
|
+
rbatk_table_get_caption(VALUE self)
|
75
66
|
{
|
76
67
|
return GOBJ2RVAL(atk_table_get_caption(_SELF(self)));
|
77
68
|
}
|
78
69
|
|
79
70
|
static VALUE
|
80
|
-
rbatk_table_get_column_description(self, column)
|
81
|
-
VALUE self, column;
|
71
|
+
rbatk_table_get_column_description(VALUE self, VALUE column)
|
82
72
|
{
|
83
73
|
return CSTR2RVAL(atk_table_get_column_description(_SELF(self), NUM2INT(column)));
|
84
74
|
}
|
85
75
|
|
86
76
|
static VALUE
|
87
|
-
rbatk_table_get_row_description(self, row)
|
88
|
-
VALUE self, row;
|
77
|
+
rbatk_table_get_row_description(VALUE self, VALUE row)
|
89
78
|
{
|
90
79
|
return CSTR2RVAL(atk_table_get_row_description(_SELF(self), NUM2INT(row)));
|
91
80
|
}
|
92
81
|
|
93
82
|
static VALUE
|
94
|
-
rbatk_table_get_column_header(self, column)
|
95
|
-
VALUE self, column;
|
83
|
+
rbatk_table_get_column_header(VALUE self, VALUE column)
|
96
84
|
{
|
97
85
|
return GOBJ2RVAL(atk_table_get_column_header(_SELF(self), NUM2INT(column)));
|
98
86
|
}
|
99
87
|
|
100
88
|
static VALUE
|
101
|
-
rbatk_table_get_row_header(self, row)
|
102
|
-
VALUE self, row;
|
89
|
+
rbatk_table_get_row_header(VALUE self, VALUE row)
|
103
90
|
{
|
104
91
|
return GOBJ2RVAL(atk_table_get_row_header(_SELF(self), NUM2INT(row)));
|
105
92
|
}
|
106
93
|
|
107
94
|
static VALUE
|
108
|
-
rbatk_table_get_summary(self)
|
109
|
-
VALUE self;
|
95
|
+
rbatk_table_get_summary(VALUE self)
|
110
96
|
{
|
111
97
|
return GOBJ2RVAL(atk_table_get_summary(_SELF(self)));
|
112
98
|
}
|
113
99
|
|
114
100
|
static VALUE
|
115
|
-
rbatk_table_set_caption(self, caption)
|
116
|
-
VALUE self, caption;
|
101
|
+
rbatk_table_set_caption(VALUE self, VALUE caption)
|
117
102
|
{
|
118
103
|
atk_table_set_caption(_SELF(self), ATK_OBJECT(RVAL2GOBJ(caption)));
|
119
104
|
return self;
|
120
105
|
}
|
121
106
|
|
122
107
|
static VALUE
|
123
|
-
rbatk_table_set_row_description(self, row, description)
|
124
|
-
VALUE self, row, description;
|
108
|
+
rbatk_table_set_row_description(VALUE self, VALUE row, VALUE description)
|
125
109
|
{
|
126
110
|
atk_table_set_row_description(_SELF(self), NUM2INT(row), RVAL2CSTR(description));
|
127
111
|
return self;
|
128
112
|
}
|
129
113
|
|
130
114
|
static VALUE
|
131
|
-
rbatk_table_set_column_description(self, column, description)
|
132
|
-
VALUE self, column, description;
|
115
|
+
rbatk_table_set_column_description(VALUE self, VALUE column, VALUE description)
|
133
116
|
{
|
134
117
|
atk_table_set_column_description(_SELF(self), NUM2INT(column), RVAL2CSTR(description));
|
135
118
|
return self;
|
136
119
|
}
|
137
120
|
|
138
121
|
static VALUE
|
139
|
-
rbatk_table_set_row_header(self, row, header)
|
140
|
-
VALUE self, row, header;
|
122
|
+
rbatk_table_set_row_header(VALUE self, VALUE row, VALUE header)
|
141
123
|
{
|
142
124
|
atk_table_set_row_header(_SELF(self), NUM2INT(row), ATK_OBJECT(RVAL2GOBJ(header)));
|
143
125
|
return self;
|
144
126
|
}
|
145
127
|
|
146
128
|
static VALUE
|
147
|
-
rbatk_table_set_column_header(self, column, header)
|
148
|
-
VALUE self, column, header;
|
129
|
+
rbatk_table_set_column_header(VALUE self, VALUE column, VALUE header)
|
149
130
|
{
|
150
131
|
atk_table_set_column_header(_SELF(self), NUM2INT(column), ATK_OBJECT(RVAL2GOBJ(header)));
|
151
132
|
return self;
|
152
133
|
}
|
153
134
|
|
154
135
|
static VALUE
|
155
|
-
rbatk_table_set_summary(self, accessible)
|
156
|
-
VALUE self, accessible;
|
136
|
+
rbatk_table_set_summary(VALUE self, VALUE accessible)
|
157
137
|
{
|
158
138
|
atk_table_set_summary(_SELF(self), ATK_OBJECT(RVAL2GOBJ(accessible)));
|
159
139
|
return self;
|
160
140
|
}
|
161
141
|
|
162
142
|
static VALUE
|
163
|
-
rbatk_table_get_selected_columns(self)
|
164
|
-
VALUE self;
|
143
|
+
rbatk_table_get_selected_columns(VALUE self)
|
165
144
|
{
|
166
145
|
gint ret;
|
167
146
|
gint* selected;
|
@@ -178,8 +157,7 @@ rbatk_table_get_selected_columns(self)
|
|
178
157
|
}
|
179
158
|
|
180
159
|
static VALUE
|
181
|
-
rbatk_table_get_selected_rows(self)
|
182
|
-
VALUE self;
|
160
|
+
rbatk_table_get_selected_rows(VALUE self)
|
183
161
|
{
|
184
162
|
gint ret;
|
185
163
|
gint* selected;
|
@@ -196,29 +174,25 @@ rbatk_table_get_selected_rows(self)
|
|
196
174
|
}
|
197
175
|
|
198
176
|
static VALUE
|
199
|
-
rbatk_table_is_column_selected(self, column)
|
200
|
-
VALUE self, column;
|
177
|
+
rbatk_table_is_column_selected(VALUE self, VALUE column)
|
201
178
|
{
|
202
179
|
return CBOOL2RVAL(atk_table_is_column_selected(_SELF(self), NUM2INT(column)));
|
203
180
|
}
|
204
181
|
|
205
182
|
static VALUE
|
206
|
-
rbatk_table_is_row_selected(self, row)
|
207
|
-
VALUE self, row;
|
183
|
+
rbatk_table_is_row_selected(VALUE self, VALUE row)
|
208
184
|
{
|
209
185
|
return CBOOL2RVAL(atk_table_is_row_selected(_SELF(self), NUM2INT(row)));
|
210
186
|
}
|
211
187
|
|
212
188
|
static VALUE
|
213
|
-
rbatk_table_is_selected(self, row, column)
|
214
|
-
VALUE self, row, column;
|
189
|
+
rbatk_table_is_selected(VALUE self, VALUE row, VALUE column)
|
215
190
|
{
|
216
191
|
return CBOOL2RVAL(atk_table_is_selected(_SELF(self), NUM2INT(row), NUM2INT(column)));
|
217
192
|
}
|
218
193
|
|
219
194
|
static VALUE
|
220
|
-
rbatk_table_add_column_selection(self, column)
|
221
|
-
VALUE self, column;
|
195
|
+
rbatk_table_add_column_selection(VALUE self, VALUE column)
|
222
196
|
{
|
223
197
|
gboolean ret = atk_table_add_column_selection(_SELF(self), NUM2INT(column));
|
224
198
|
if (! ret) rb_raise(rb_eRuntimeError, "not implement this interface");
|
@@ -226,8 +200,7 @@ rbatk_table_add_column_selection(self, column)
|
|
226
200
|
}
|
227
201
|
|
228
202
|
static VALUE
|
229
|
-
rbatk_table_add_row_selection(self, row)
|
230
|
-
VALUE self, row;
|
203
|
+
rbatk_table_add_row_selection(VALUE self, VALUE row)
|
231
204
|
{
|
232
205
|
gboolean ret = atk_table_add_row_selection(_SELF(self), NUM2INT(row));
|
233
206
|
if (! ret) rb_raise(rb_eRuntimeError, "not implement this interface");
|
@@ -235,8 +208,7 @@ rbatk_table_add_row_selection(self, row)
|
|
235
208
|
}
|
236
209
|
|
237
210
|
static VALUE
|
238
|
-
rbatk_table_remove_column_selection(self, column)
|
239
|
-
VALUE self, column;
|
211
|
+
rbatk_table_remove_column_selection(VALUE self, VALUE column)
|
240
212
|
{
|
241
213
|
gboolean ret = atk_table_remove_column_selection(_SELF(self), NUM2INT(column));
|
242
214
|
if (! ret) rb_raise(rb_eRuntimeError, "not implement this interface");
|
@@ -244,8 +216,7 @@ rbatk_table_remove_column_selection(self, column)
|
|
244
216
|
}
|
245
217
|
|
246
218
|
static VALUE
|
247
|
-
rbatk_table_remove_row_selection(self, row)
|
248
|
-
VALUE self, row;
|
219
|
+
rbatk_table_remove_row_selection(VALUE self, VALUE row)
|
249
220
|
{
|
250
221
|
gboolean ret = atk_table_remove_row_selection(_SELF(self), NUM2INT(row));
|
251
222
|
if (! ret) rb_raise(rb_eRuntimeError, "not implement this interface");
|
data/ext/atk/rbatktext.c
CHANGED
@@ -14,8 +14,7 @@
|
|
14
14
|
#define _SELF(s) (ATK_TEXT(RVAL2GOBJ(s)))
|
15
15
|
|
16
16
|
static VALUE
|
17
|
-
rbatk_text_get_text(self, start_offset, end_offset)
|
18
|
-
VALUE self, start_offset, end_offset;
|
17
|
+
rbatk_text_get_text(VALUE self, VALUE start_offset, VALUE end_offset)
|
19
18
|
{
|
20
19
|
VALUE ret;
|
21
20
|
gchar* text = atk_text_get_text(_SELF(self),
|
@@ -27,8 +26,7 @@ rbatk_text_get_text(self, start_offset, end_offset)
|
|
27
26
|
}
|
28
27
|
|
29
28
|
static VALUE
|
30
|
-
rbatk_text_get_character_at_offset(self, offset)
|
31
|
-
VALUE self, offset;
|
29
|
+
rbatk_text_get_character_at_offset(VALUE self, VALUE offset)
|
32
30
|
{
|
33
31
|
gchar buf[10];
|
34
32
|
gint len = g_unichar_to_utf8(atk_text_get_character_at_offset
|
@@ -38,8 +36,7 @@ rbatk_text_get_character_at_offset(self, offset)
|
|
38
36
|
}
|
39
37
|
|
40
38
|
static VALUE
|
41
|
-
rbatk_text_get_text_after_offset(self, offset, boundary_type)
|
42
|
-
VALUE self, offset, boundary_type;
|
39
|
+
rbatk_text_get_text_after_offset(VALUE self, VALUE offset, VALUE boundary_type)
|
43
40
|
{
|
44
41
|
gchar* ret;
|
45
42
|
VALUE result;
|
@@ -56,8 +53,7 @@ rbatk_text_get_text_after_offset(self, offset, boundary_type)
|
|
56
53
|
}
|
57
54
|
|
58
55
|
static VALUE
|
59
|
-
rbatk_text_get_text_at_offset(self, offset, boundary_type)
|
60
|
-
VALUE self, offset, boundary_type;
|
56
|
+
rbatk_text_get_text_at_offset(VALUE self, VALUE offset, VALUE boundary_type)
|
61
57
|
{
|
62
58
|
gchar* ret;
|
63
59
|
VALUE result;
|
@@ -74,8 +70,7 @@ rbatk_text_get_text_at_offset(self, offset, boundary_type)
|
|
74
70
|
}
|
75
71
|
|
76
72
|
static VALUE
|
77
|
-
rbatk_text_get_text_before_offset(self, offset, boundary_type)
|
78
|
-
VALUE self, offset, boundary_type;
|
73
|
+
rbatk_text_get_text_before_offset(VALUE self, VALUE offset, VALUE boundary_type)
|
79
74
|
{
|
80
75
|
gchar* ret;
|
81
76
|
VALUE result;
|
@@ -92,15 +87,13 @@ rbatk_text_get_text_before_offset(self, offset, boundary_type)
|
|
92
87
|
}
|
93
88
|
|
94
89
|
static VALUE
|
95
|
-
rbatk_text_get_caret_offset(self)
|
96
|
-
VALUE self;
|
90
|
+
rbatk_text_get_caret_offset(VALUE self)
|
97
91
|
{
|
98
92
|
return INT2NUM(atk_text_get_caret_offset(_SELF(self)));
|
99
93
|
}
|
100
94
|
|
101
95
|
static VALUE
|
102
|
-
rbatk_text_get_character_extents(self, offset, coords)
|
103
|
-
VALUE self, offset, coords;
|
96
|
+
rbatk_text_get_character_extents(VALUE self, VALUE offset, VALUE coords)
|
104
97
|
{
|
105
98
|
gint x, y, width, height;
|
106
99
|
atk_text_get_character_extents(_SELF(self), NUM2INT(offset),
|
@@ -110,8 +103,7 @@ rbatk_text_get_character_extents(self, offset, coords)
|
|
110
103
|
}
|
111
104
|
|
112
105
|
static VALUE
|
113
|
-
rbatk_text_get_run_attributes(self, offset)
|
114
|
-
VALUE self, offset;
|
106
|
+
rbatk_text_get_run_attributes(VALUE self, VALUE offset)
|
115
107
|
{
|
116
108
|
gint start_offset, end_offset;
|
117
109
|
AtkAttributeSet* list;
|
@@ -133,8 +125,7 @@ rbatk_text_get_run_attributes(self, offset)
|
|
133
125
|
}
|
134
126
|
|
135
127
|
static VALUE
|
136
|
-
rbatk_text_get_default_attributes(self)
|
137
|
-
VALUE self;
|
128
|
+
rbatk_text_get_default_attributes(VALUE self)
|
138
129
|
{
|
139
130
|
AtkAttributeSet* list;
|
140
131
|
VALUE ary;
|
@@ -153,15 +144,13 @@ rbatk_text_get_default_attributes(self)
|
|
153
144
|
}
|
154
145
|
|
155
146
|
static VALUE
|
156
|
-
rbatk_text_get_character_count(self)
|
157
|
-
VALUE self;
|
147
|
+
rbatk_text_get_character_count(VALUE self)
|
158
148
|
{
|
159
149
|
return INT2NUM(atk_text_get_character_count(_SELF(self)));
|
160
150
|
}
|
161
151
|
|
162
152
|
static VALUE
|
163
|
-
rbatk_text_get_offset_at_point(self, x, y, coords)
|
164
|
-
VALUE self, x, y, coords;
|
153
|
+
rbatk_text_get_offset_at_point(VALUE self, VALUE x, VALUE y, VALUE coords)
|
165
154
|
{
|
166
155
|
return INT2NUM(atk_text_get_offset_at_point(_SELF(self),
|
167
156
|
NUM2INT(x), NUM2INT(y),
|
@@ -171,8 +160,7 @@ rbatk_text_get_offset_at_point(self, x, y, coords)
|
|
171
160
|
#ifdef HAVE_ATK_TEXT_GET_BOUNDED_RANGES
|
172
161
|
#ifdef HAVE_ATK_TEXT_CLIP_TYPE_GET_TYPE
|
173
162
|
static VALUE
|
174
|
-
rbatk_text_get_bounded_ranges(self, rect, coord_type, x_clip_type, y_clip_type)
|
175
|
-
VALUE self, rect, coord_type, x_clip_type, y_clip_type;
|
163
|
+
rbatk_text_get_bounded_ranges(VALUE self, VALUE rect, VALUE coord_type, VALUE x_clip_type, VALUE y_clip_type)
|
176
164
|
{
|
177
165
|
AtkTextRange** ranges;
|
178
166
|
int i = 0;
|
@@ -195,8 +183,7 @@ rbatk_text_get_bounded_ranges(self, rect, coord_type, x_clip_type, y_clip_type)
|
|
195
183
|
#endif
|
196
184
|
|
197
185
|
static VALUE
|
198
|
-
rbatk_text_get_range_extents(self, start_offset, end_offset, coord_type)
|
199
|
-
VALUE self, start_offset, end_offset, coord_type;
|
186
|
+
rbatk_text_get_range_extents(VALUE self, VALUE start_offset, VALUE end_offset, VALUE coord_type)
|
200
187
|
{
|
201
188
|
AtkTextRectangle rect;
|
202
189
|
atk_text_get_range_extents(_SELF(self), NUM2INT(start_offset),
|
@@ -212,15 +199,13 @@ void atk_text_free_ranges (AtkTextRange **ranges);
|
|
212
199
|
#endif
|
213
200
|
|
214
201
|
static VALUE
|
215
|
-
rbatk_text_get_n_selections(self)
|
216
|
-
VALUE self;
|
202
|
+
rbatk_text_get_n_selections(VALUE self)
|
217
203
|
{
|
218
204
|
return INT2NUM(atk_text_get_n_selections(_SELF(self)));
|
219
205
|
}
|
220
206
|
|
221
207
|
static VALUE
|
222
|
-
rbatk_text_get_selection(self, selection_num)
|
223
|
-
VALUE self, selection_num;
|
208
|
+
rbatk_text_get_selection(VALUE self, VALUE selection_num)
|
224
209
|
{
|
225
210
|
gint start_offset, end_offset;
|
226
211
|
VALUE ret;
|
@@ -233,8 +218,7 @@ rbatk_text_get_selection(self, selection_num)
|
|
233
218
|
}
|
234
219
|
|
235
220
|
static VALUE
|
236
|
-
rbatk_text_add_selection(self, start_offset, end_offset)
|
237
|
-
VALUE self, start_offset, end_offset;
|
221
|
+
rbatk_text_add_selection(VALUE self, VALUE start_offset, VALUE end_offset)
|
238
222
|
{
|
239
223
|
gboolean ret = atk_text_add_selection(_SELF(self), NUM2INT(start_offset),
|
240
224
|
NUM2INT(end_offset));
|
@@ -243,8 +227,7 @@ rbatk_text_add_selection(self, start_offset, end_offset)
|
|
243
227
|
}
|
244
228
|
|
245
229
|
static VALUE
|
246
|
-
rbatk_text_remove_selection(self, selection_num)
|
247
|
-
VALUE self, selection_num;
|
230
|
+
rbatk_text_remove_selection(VALUE self, VALUE selection_num)
|
248
231
|
{
|
249
232
|
gint num;
|
250
233
|
gboolean ret;
|
@@ -257,8 +240,7 @@ rbatk_text_remove_selection(self, selection_num)
|
|
257
240
|
}
|
258
241
|
|
259
242
|
static VALUE
|
260
|
-
rbatk_text_set_selection(self, selection_num, start_offset, end_offset)
|
261
|
-
VALUE self, selection_num, start_offset, end_offset;
|
243
|
+
rbatk_text_set_selection(VALUE self, VALUE selection_num, VALUE start_offset, VALUE end_offset)
|
262
244
|
{
|
263
245
|
gboolean ret = atk_text_set_selection(_SELF(self), NUM2INT(selection_num),
|
264
246
|
NUM2INT(start_offset),
|
@@ -268,8 +250,7 @@ rbatk_text_set_selection(self, selection_num, start_offset, end_offset)
|
|
268
250
|
}
|
269
251
|
|
270
252
|
static VALUE
|
271
|
-
rbatk_text_set_caret_offset(self, offset)
|
272
|
-
VALUE self, offset;
|
253
|
+
rbatk_text_set_caret_offset(VALUE self, VALUE offset)
|
273
254
|
{
|
274
255
|
gboolean ret = atk_text_set_caret_offset(_SELF(self), NUM2INT(offset));
|
275
256
|
if (! ret) rb_raise(rb_eRuntimeError, "Can't set caret offset");
|
@@ -285,8 +266,7 @@ rbatk_text_set_caret_offset(self, offset)
|
|
285
266
|
* Atk::TextAttribute
|
286
267
|
*/
|
287
268
|
static VALUE
|
288
|
-
rbatk_tattr_s_register(self, name)
|
289
|
-
VALUE self, name;
|
269
|
+
rbatk_tattr_s_register(VALUE self, VALUE name)
|
290
270
|
{
|
291
271
|
return GENUM2RVAL(atk_text_attribute_register(RVAL2CSTR(name)), ATK_TYPE_TEXT_ATTRIBUTE);
|
292
272
|
}
|
@@ -297,15 +277,13 @@ G_CONST_RETURN gchar* atk_textattribute_type_get_name
|
|
297
277
|
*/
|
298
278
|
|
299
279
|
static VALUE
|
300
|
-
rbatk_tattr_s_for_name(self, name)
|
301
|
-
VALUE self, name;
|
280
|
+
rbatk_tattr_s_for_name(VALUE self, VALUE name)
|
302
281
|
{
|
303
282
|
return GENUM2RVAL(atk_text_attribute_for_name(RVAL2CSTR(name)), ATK_TYPE_TEXT_ATTRIBUTE);
|
304
283
|
}
|
305
284
|
|
306
285
|
static VALUE
|
307
|
-
rbatk_tattr_get_value(self, index)
|
308
|
-
VALUE self, index;
|
286
|
+
rbatk_tattr_get_value(VALUE self, VALUE index)
|
309
287
|
{
|
310
288
|
return CSTR2RVAL(atk_text_attribute_get_value(RVAL2GENUM(self, ATK_TYPE_TEXT_ATTRIBUTE),
|
311
289
|
NUM2INT(index)));
|