atk 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +1,60 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /************************************************
3
-
4
- rbatkvalue.c -
5
-
6
- $Author: mutoh $
7
- $Date: 2003/12/23 15:59:28 $
8
-
9
- Copyright (C) 2003 Masao Mutoh
10
- ************************************************/
11
-
12
- #include "rbatk.h"
13
-
14
- #define _SELF(s) (ATK_VALUE(RVAL2GOBJ(s)))
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2003 Masao Mutoh
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
20
+ */
21
+
22
+ #include "rbatkprivate.h"
23
+
24
+ #define RG_TARGET_NAMESPACE mValue
25
+ #define _SELF(s) (RVAL2ATKVALUE(s))
15
26
 
16
27
  static VALUE
17
- rbatk_value_get_current_value(VALUE self)
28
+ rg_current(VALUE self)
18
29
  {
19
- GValue gval = {0,};
30
+ GValue gval = G_VALUE_INIT;
20
31
  atk_value_get_current_value(_SELF(self), &gval);
21
32
 
22
33
  return GVAL2RVAL(&gval);
23
34
  }
24
35
 
25
-
26
36
  static VALUE
27
- rbatk_value_get_maximum_value(VALUE self)
37
+ rg_max(VALUE self)
28
38
  {
29
- GValue gval = {0,};
39
+ GValue gval = G_VALUE_INIT;
30
40
  atk_value_get_maximum_value(_SELF(self), &gval);
31
41
 
32
42
  return GVAL2RVAL(&gval);
33
43
  }
34
44
 
35
45
  static VALUE
36
- rbatk_value_get_minimum_value(VALUE self)
46
+ rg_min(VALUE self)
37
47
  {
38
- GValue gval = {0,};
48
+ GValue gval = G_VALUE_INIT;
39
49
  atk_value_get_minimum_value(_SELF(self), &gval);
40
50
 
41
51
  return GVAL2RVAL(&gval);
42
52
  }
43
53
 
44
54
  static VALUE
45
- rbatk_value_set_current_value(VALUE self, VALUE value)
55
+ rg_set_current(VALUE self, VALUE value)
46
56
  {
47
- GValue gval = {0,};
57
+ GValue gval = G_VALUE_INIT;
48
58
  g_value_init(&gval, RVAL2GTYPE(value));
49
59
 
50
60
  rbgobj_rvalue_to_gvalue(value, &gval);
@@ -57,14 +67,14 @@ rbatk_value_set_current_value(VALUE self, VALUE value)
57
67
  }
58
68
 
59
69
  void
60
- Init_atk_value()
70
+ Init_atk_value(VALUE mAtk)
61
71
  {
62
- VALUE mValue = G_DEF_INTERFACE(ATK_TYPE_VALUE, "Value", mAtk);
72
+ VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(ATK_TYPE_VALUE, "Value", mAtk);
63
73
 
64
- rb_define_method(mValue, "current", rbatk_value_get_current_value, 0);
65
- rb_define_method(mValue, "max", rbatk_value_get_maximum_value, 0);
66
- rb_define_method(mValue, "min", rbatk_value_get_minimum_value, 0);
67
- rb_define_method(mValue, "set_current", rbatk_value_set_current_value, 1);
74
+ RG_DEF_METHOD(current, 0);
75
+ RG_DEF_METHOD(max, 0);
76
+ RG_DEF_METHOD(min, 0);
77
+ RG_DEF_METHOD(set_current, 1);
68
78
 
69
- G_DEF_SETTERS(mValue);
79
+ G_DEF_SETTERS(RG_TARGET_NAMESPACE);
70
80
  }
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 3
10
- version: 1.0.3
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
- - The Ruby-GNOME2 Proejct Team
13
+ - The Ruby-GNOME2 Project Team
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-18 00:00:00 Z
18
+ date: 2012-01-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: glib2
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 17
28
+ hash: 19
29
29
  segments:
30
30
  - 1
31
+ - 1
31
32
  - 0
32
- - 3
33
- version: 1.0.3
33
+ version: 1.1.0
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  description: Ruby/ATK is a Ruby binding of ATK-1.0.x.
@@ -42,7 +42,6 @@ extensions:
42
42
  extra_rdoc_files: []
43
43
 
44
44
  files:
45
- - ChangeLog
46
45
  - README
47
46
  - Rakefile
48
47
  - extconf.rb
@@ -50,13 +49,12 @@ files:
50
49
  - ext/atk/rbatkutil.c
51
50
  - ext/atk/rbatknoopobject.c
52
51
  - ext/atk/rbatkgobjectaccessible.c
53
- - ext/atk/rbatkinits.c
54
52
  - ext/atk/rbatkhyperlink.c
55
53
  - ext/atk/rbatkcomponent.c
56
54
  - ext/atk/rbatktext.c
57
55
  - ext/atk/rbatkstateset.c
58
56
  - ext/atk/rbatkregistry.c
59
- - ext/atk/makeinits.rb
57
+ - ext/atk/rbatkconversions.h
60
58
  - ext/atk/rbatkimage.c
61
59
  - ext/atk/rbatkdocument.c
62
60
  - ext/atk/rbatkrelationset.c
@@ -71,12 +69,16 @@ files:
71
69
  - ext/atk/rbatkaction.c
72
70
  - ext/atk/rbatktable.c
73
71
  - ext/atk/rbatktextrange.c
72
+ - ext/atk/rbatkprivate.h
74
73
  - ext/atk/rbatktextrectangle.c
74
+ - ext/atk/rbatkrelationtype.c
75
75
  - ext/atk/rbatkselection.c
76
76
  - ext/atk/rbatk.h
77
77
  - ext/atk/rbatkhypertext.c
78
+ - ext/atk/rbatktextattribute.c
78
79
  - ext/atk/depend
79
80
  - ext/atk/rbatkstate.c
81
+ - ext/atk/rbatkobjectrole.c
80
82
  - ext/atk/rbatkeditabletext.c
81
83
  - ext/atk/rbatknoopobjectfactory.c
82
84
  - ext/atk/rbatkobject.c
@@ -111,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
113
  requirements: []
112
114
 
113
115
  rubyforge_project:
114
- rubygems_version: 1.7.2
116
+ rubygems_version: 1.8.12
115
117
  signing_key:
116
118
  specification_version: 3
117
119
  summary: Ruby/ATK is a Ruby binding of ATK-1.0.x.
data/ChangeLog DELETED
@@ -1,278 +0,0 @@
1
- 2011-09-16 Nikolai Weibull <now@bitwi.se>
2
-
3
- * lib/atk.rb: Remove unused variable.
4
-
5
- 2011-09-12 Nikolai Weibull <now@bitwi.se>
6
-
7
- * ext/atk/rbatkrelation.c: Fix initialization.
8
- * ext/atk/*.c: Remove methods that implement methods already
9
- implemented with properties.
10
-
11
- 2011-09-09 Nikolai Weibull <now@bitwi.se>
12
-
13
- * ext/atk/*.c: Fix all warnings generated with gcc 4.4.5.
14
- * ext/atk/*.c: Fix all RVAL2CSTR calls.
15
-
16
- 2011-02-26 Kouhei Sutou <kou@cozmixng.org>
17
-
18
- * ext/atk/extconf.rb: remove needless add_distcleanfile.
19
- Patch by Vincent Carmona. Thanks!!!
20
-
21
- 2011-02-05 Masaaki Aoyagi
22
-
23
- * ext/atk/*.c: change to ANSI C style.
24
-
25
- 2011-02-04 Masaaki Aoyagi
26
-
27
- * ext/atk/rbatkstateset.c: fix declaration.
28
-
29
- 2011-01-30 Kouhei Sutou <kou@cozmixng.org>
30
-
31
- * Rakefile, ext/atk/extconf.rb: share depended packages
32
- vendor/local/.
33
-
34
- 2011-01-22 Masaaki Aoyagi
35
-
36
- * Rakefile: change to use gnome2-raketask.rb.
37
-
38
- 2010-09-23 Kouhei Sutou <kou@cozmixng.org>
39
-
40
- * Rakefile: don't add .zip into gem.
41
-
42
- * lib/atk.rb: support bundled Windows DLL.
43
-
44
- 2010-09-21 Kouhei Sutou <kou@cozmixng.org>
45
-
46
- * Rakefile: add dependency.
47
-
48
- * ./: make buildable with rake-compiler.
49
-
50
- * src/: -> ext/atk/
51
-
52
- * src/lib/: -> lib/
53
-
54
- 2009-05-31 Kouhei Sutou <kou@cozmixng.org>
55
-
56
- * src/depend: use RUBYARCHDIR.
57
- Patch by OBATA Akio. Thanks!!!
58
-
59
- 2008-11-01 Kouhei Sutou <kou@cozmixng.org>
60
-
61
- * src/: use RARRAY_PTR() and RARRAY_LEN().
62
-
63
- 2008-06-11 Kouhei Sutou <kou@cozmixng.org>
64
-
65
- * extconf.rb: include atk/atk.h in have_func test.
66
-
67
- 2008-01-03 Kouhei Sutou <kou@cozmixng.org>
68
-
69
- * src/depend: don't use ftools.
70
- Reported by Carlo E. Prelz. Thanks!!!
71
-
72
- 2007-12-29 Kouhei Sutou <kou@cozmixng.org>
73
-
74
- * src/rbatktext.c (rbatk_text_remove_selection): used gint for "%d".
75
-
76
- 2007-08-31 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
77
-
78
- * src/depend: re-supported build in no-source directory.
79
-
80
- 2007-07-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
81
-
82
- * src/rbatktextrange.c: change Atk::TextRange not to be a subclass of
83
- Atk::TextRectangle.
84
-
85
- 2007-07-14 Detlef Reichl
86
-
87
- * extconf.rb: Accept the srcdir includes spaces.
88
-
89
- 2007-07-13 Guillaume Cottenceau
90
-
91
- * src/rbatkobject.c: replace RTEST uses by RVAL2CBOOL
92
-
93
- 2007-07-08 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
94
-
95
- * src/*.c: use rb_block_proc directly instead of using G_BLOCK_PROC().
96
-
97
- 2007-06-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
98
-
99
- * src/rbatkeditabletext.c: fix to compile on ruby 1.9
100
- RSTRING(v)->len -> RSTRING_LEN(v).
101
-
102
- * src/rbatkdocument.c: Define Atk::Document#locale only when Atk is 1.12 or later.
103
- Earlier version of Atk doesn't have atk_document_get_locale(),
104
- although it's not listed at <http://developer.gnome.org/doc/API/2.0/atk/ix07.html>.
105
-
106
- 2006-12-26 Masao Mutoh <mutoh@highway.ne.jp>
107
-
108
- * extconf.rb: Work MinGW again.
109
-
110
- 2006-11-28 Masao Mutoh <mutoh@highway.ne.jp>
111
-
112
- * src/rbatkdocument.c: Added Atk::Document#get_attribute_value, #[]
113
- #set_attribute_value, #[]=, #attributes for ATK+-1.12.
114
- Added #locale.
115
- * src/rbatkcomponent.c: Added Atk::Component#alpha. for ATK+-1.12.
116
-
117
- 2006-05-26 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
118
-
119
- * src/rbatktext.c (rbatk_text_remove_selection): Fix to convert the
120
- third argument of rb_raise from VALUE to int.
121
-
122
- 2005-11-23 Masao Mutoh <mutoh@highway.ne.jp>
123
-
124
- * extconf.rb: Improved cygwin support. [bug #1315334]
125
- By Yaakov Selkowitz.
126
-
127
- 2005-10-08 Masao Mutoh <mutoh@highway.ne.jp>
128
-
129
- * src/makeversion.rb: Removed. Use make_version_header() of
130
- Ruby/GLib.
131
- * extconf.rb: Follow above change.
132
-
133
- 2005-10-04 Masao Mutoh <mutoh@highway.ne.jp>
134
-
135
- * extconf.rb: Fix a linking error on Cygwin.
136
-
137
- 2005-09-29 Masao Mutoh <mutoh@highway.ne.jp>
138
-
139
- * src/rbatk.c: Renamed Atk::VERSION to Atk::BUILD_VERSION.
140
- Removed Atk::(MAJOR|MINOR|MICRO)_VERSION.
141
-
142
- 2005-09-16 Masao Mutoh <mutoh@highway.ne.jp>
143
-
144
- * src/rbatk.c: Added Atk::VERSION, Atk::(MAJOR|MINOR|MICRO)_VERSION.
145
- * src/rbatkutil.c: Added Atk::Util::KeyEventType, Atk.focus_object,
146
- .(add|remove)_key_event_listener, .focus_tracker_notify.
147
- Move all methods/constants to Atk::Util from Atk.
148
- * src/rbatktext.c: Added Atk::Text::Attribute#type_register, #for_name,
149
- #get_value.
150
- * src/rbatkstreamablecontent.c: Added Atk::StreamableContent#get_stream.
151
-
152
- 2005-09-15 Masao Mutoh <mutoh@highway.ne.jp>
153
-
154
- * src/rbatkrelationset.c: Added Atk::RelationSet#add_relation
155
- for ATK-1.9.0.
156
- * src/makeversion.rb: Added. Version information and
157
- ATK_CHECK_VERSION.
158
- * extconf.rb, src/rbatk.h: Added version information.
159
- * src/depend: Added. Install rbatk.h, rbatkversion.h.
160
- * src/rbatkrelation.c: Added Atk::Relation#add_target for ATK-1.9.0.
161
- * src/rbatkobject.c: Support ATK-1.10.
162
-
163
- 2005-02-17 Masao Mutoh <mutoh@highway.ne.jp>
164
-
165
- * src/rbatktext.c: Fix a compiling problem on MSVC++/atk-1.9.0.
166
-
167
- 2005-01-31 Masao Mutoh <mutoh@highway.ne.jp>
168
-
169
- * src/rbatktext.c: Fix a compiling problem on MSVC++/atk-1.8.0.
170
-
171
- 2005-01-30 Masao Mutoh <mutoh@highway.ne.jp>
172
-
173
- * extconf.rb: Follow mkmf-gnome2.rb changes.
174
-
175
- 2005-01-29 Masao Mutoh <mutoh@highway.ne.jp>
176
-
177
- * extconf.rb: Support MS VC++.
178
-
179
- 2004-12-03 Vincent Isambart <isambart@netcourrier.com>
180
-
181
- * extconf.rb: Corrected a little parse error (just removed an end of line).
182
-
183
- 2004-11-17 Dafydd Harries <daf@muse.19inch.net>
184
-
185
- * extconf.rb: Exit if makeinits.rb is failed.
186
-
187
- 2004-11-14 Masao Mutoh <mutoh@highway.ne.jp>
188
-
189
- * extconf.rb, src/rbatk.h, rbatkobject.c:
190
- Fix compiling warning under atk-1.0.3.
191
-
192
- 2004-10-19 Masao Mutoh <mutoh@highway.ne.jp>
193
-
194
- * src/rbatktextrectangle.c, rbatktextrange.c: Added.
195
-
196
- 2004-10-18 Masao Mutoh <mutoh@highway.ne.jp>
197
-
198
- * src/rbatkrelation.c: Added Atk::Relation::Type.for_name.
199
- * src/rbatkstate.c: Moved Atk::StateType to Atk::State.
200
- Added Atk::State.for_name.
201
- * src/rbatkobject.c: Added Gtk::Atk::Object#localized_name,
202
- .for_name, #notify_state_change,
203
- * src/rbatkhyperlink.c: Added Atk::Hyperlink#selected_link?.
204
- Fixed to use wrong macro for Atk::Hyperlink#inline?.
205
-
206
- 2004-10-17 Vincent Isambart <isambart@netcourrier.com>
207
-
208
- * extconf.rb: Changed add_uniq_to_objs to add_obj.
209
-
210
- 2004-10-17 Vincent Isambart <isambart@netcourrier.com>
211
-
212
- * extconf.rb: Fixed a bug under ruby-1.9.
213
-
214
- 2004-03-29 Masao Mutoh <mutoh@highway.ne.jp>
215
-
216
- * extconf.rb: Fix a bug under ruby-1.6.x.
217
-
218
- 2004-03-14 Masao Mutoh <mutoh@highway.ne.jp>
219
-
220
- * extconf.rb: Remove src/rbatkinits.c when run "make distclean".
221
-
222
- 2004-03-10 Masao Mutoh <mutoh@highway.ne.jp>
223
-
224
- * src/rbatkcomponent.c: Fix a compilation error on MinGW.
225
-
226
- 2004-03-06 Masao Mutoh <mutoh@highway.ne.jp>
227
-
228
- * README, src/rbatktext.c rbatkstate.c rbatktable.c rbatkselection.c
229
- rbatkimage.c rbatkcomponent.c rbatkutil.c rbatkaction.c rbatkhyperlink.c
230
- rbatkobject.c: Update Copyright.
231
-
232
- 2004-03-02 Masao Mutoh <mutoh@highway.ne.jp>
233
-
234
- * README, extconf.rb, src/rbatkaction.c, rbatkhyperlink.c,
235
- rbatkobject.c: Support ATK-1.0.x.
236
-
237
- 2004-02-20 Masao Mutoh <mutoh@highway.ne.jp>
238
-
239
- * src/rbatkutil.c: Added.
240
- * src/rbatkcomponent.c: Fix a return value of Atk::Component#set_extents,
241
- #set_position, #set_size.
242
- * src/rbatkimage.c: Fix a return value of Atk::Image#set_image_description.
243
- * src/rbatkselection.c: Fix return values of Atk::Selection#add_selection,
244
- #clear_selection, #remove_selection.
245
- * src/rbatktable.c: Fix return values of Atk::Table#add_column_selection,
246
- #add_row_selection, #remove_column_selection, #remove_row_selection
247
- * src/rbatkstate.c: Fix a bug of Atk::StateType.
248
- * src/rbatktext.c: Added.
249
-
250
- 2003-12-26 Masao Mutoh <mutoh@highway.ne.jp>
251
-
252
- * src/rbatktable.c: Added.
253
-
254
- 2003-12-24 Masao Mutoh <mutoh@highway.ne.jp>
255
-
256
- * src/rbatkstreamablecontent.c, rbatkstateset.c: Added.
257
- * src/rbatkeditabletext.c: Fix a typo.
258
-
259
- 2003-12-09 Masao Mutoh <mutoh@highway.ne.jp>
260
-
261
- * src/rbatkstate.c, src/rbatkselection.c,
262
- src/rbatkrelationset.c: Added.
263
-
264
- 2003-12-08 Masao Mutoh <mutoh@highway.ne.jp>
265
-
266
- * src/rbatknoopobjectfactory.c: Fix a wrong definition.
267
- * src/rbatkimage.c, src/rbatkhypertext.c, rbatkhyperlink.c,
268
- rbatkeditabletext.c, rbatkimplementor.c, rbatkobject.c,
269
- rbatkrelation.c, rbatkregistry.c, rbatkobjectfactory.c: Added.
270
-
271
- 2003-12-06 Masao Mutoh <mutoh@highway.ne.jp>
272
-
273
- * atk/rbatkcomponent.c: Added.
274
-
275
- 2003-12-05 Masao Mutoh <mutoh@highway.ne.jp>
276
-
277
- * atk/*: Initial import. Added Atk::Action, Atk::Document,
278
- Atk::GObjectAccessible, Atk::NoOpObject, Atk::NoOpObjectFactory, Atk::Value.