atk 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,225 @@
1
+ 2009-05-31 Kouhei Sutou <kou@cozmixng.org>
2
+
3
+ * src/depend: use RUBYARCHDIR.
4
+ Patch by OBATA Akio. Thanks!!!
5
+
6
+ 2008-11-01 Kouhei Sutou <kou@cozmixng.org>
7
+
8
+ * src/: use RARRAY_PTR() and RARRAY_LEN().
9
+
10
+ 2008-06-11 Kouhei Sutou <kou@cozmixng.org>
11
+
12
+ * extconf.rb: include atk/atk.h in have_func test.
13
+
14
+ 2008-01-03 Kouhei Sutou <kou@cozmixng.org>
15
+
16
+ * src/depend: don't use ftools.
17
+ Reported by Carlo E. Prelz. Thanks!!!
18
+
19
+ 2007-12-29 Kouhei Sutou <kou@cozmixng.org>
20
+
21
+ * src/rbatktext.c (rbatk_text_remove_selection): used gint for "%d".
22
+
23
+ 2007-08-31 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
24
+
25
+ * src/depend: re-supported build in no-source directory.
26
+
27
+ 2007-07-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
28
+
29
+ * src/rbatktextrange.c: change Atk::TextRange not to be a subclass of
30
+ Atk::TextRectangle.
31
+
32
+ 2007-07-14 Detlef Reichl
33
+
34
+ * extconf.rb: Accept the srcdir includes spaces.
35
+
36
+ 2007-07-13 Guillaume Cottenceau
37
+
38
+ * src/rbatkobject.c: replace RTEST uses by RVAL2CBOOL
39
+
40
+ 2007-07-08 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
41
+
42
+ * src/*.c: use rb_block_proc directly instead of using G_BLOCK_PROC().
43
+
44
+ 2007-06-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
45
+
46
+ * src/rbatkeditabletext.c: fix to compile on ruby 1.9
47
+ RSTRING(v)->len -> RSTRING_LEN(v).
48
+
49
+ * src/rbatkdocument.c: Define Atk::Document#locale only when Atk is 1.12 or later.
50
+ Earlier version of Atk doesn't have atk_document_get_locale(),
51
+ although it's not listed at <http://developer.gnome.org/doc/API/2.0/atk/ix07.html>.
52
+
53
+ 2006-12-26 Masao Mutoh <mutoh@highway.ne.jp>
54
+
55
+ * extconf.rb: Work MinGW again.
56
+
57
+ 2006-11-28 Masao Mutoh <mutoh@highway.ne.jp>
58
+
59
+ * src/rbatkdocument.c: Added Atk::Document#get_attribute_value, #[]
60
+ #set_attribute_value, #[]=, #attributes for ATK+-1.12.
61
+ Added #locale.
62
+ * src/rbatkcomponent.c: Added Atk::Component#alpha. for ATK+-1.12.
63
+
64
+ 2006-05-26 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
65
+
66
+ * src/rbatktext.c (rbatk_text_remove_selection): Fix to convert the
67
+ third argument of rb_raise from VALUE to int.
68
+
69
+ 2005-11-23 Masao Mutoh <mutoh@highway.ne.jp>
70
+
71
+ * extconf.rb: Improved cygwin support. [bug #1315334]
72
+ By Yaakov Selkowitz.
73
+
74
+ 2005-10-08 Masao Mutoh <mutoh@highway.ne.jp>
75
+
76
+ * src/makeversion.rb: Removed. Use make_version_header() of
77
+ Ruby/GLib.
78
+ * extconf.rb: Follow above change.
79
+
80
+ 2005-10-04 Masao Mutoh <mutoh@highway.ne.jp>
81
+
82
+ * extconf.rb: Fix a linking error on Cygwin.
83
+
84
+ 2005-09-29 Masao Mutoh <mutoh@highway.ne.jp>
85
+
86
+ * src/rbatk.c: Renamed Atk::VERSION to Atk::BUILD_VERSION.
87
+ Removed Atk::(MAJOR|MINOR|MICRO)_VERSION.
88
+
89
+ 2005-09-16 Masao Mutoh <mutoh@highway.ne.jp>
90
+
91
+ * src/rbatk.c: Added Atk::VERSION, Atk::(MAJOR|MINOR|MICRO)_VERSION.
92
+ * src/rbatkutil.c: Added Atk::Util::KeyEventType, Atk.focus_object,
93
+ .(add|remove)_key_event_listener, .focus_tracker_notify.
94
+ Move all methods/constants to Atk::Util from Atk.
95
+ * src/rbatktext.c: Added Atk::Text::Attribute#type_register, #for_name,
96
+ #get_value.
97
+ * src/rbatkstreamablecontent.c: Added Atk::StreamableContent#get_stream.
98
+
99
+ 2005-09-15 Masao Mutoh <mutoh@highway.ne.jp>
100
+
101
+ * src/rbatkrelationset.c: Added Atk::RelationSet#add_relation
102
+ for ATK-1.9.0.
103
+ * src/makeversion.rb: Added. Version information and
104
+ ATK_CHECK_VERSION.
105
+ * extconf.rb, src/rbatk.h: Added version information.
106
+ * src/depend: Added. Install rbatk.h, rbatkversion.h.
107
+ * src/rbatkrelation.c: Added Atk::Relation#add_target for ATK-1.9.0.
108
+ * src/rbatkobject.c: Support ATK-1.10.
109
+
110
+ 2005-02-17 Masao Mutoh <mutoh@highway.ne.jp>
111
+
112
+ * src/rbatktext.c: Fix a compiling problem on MSVC++/atk-1.9.0.
113
+
114
+ 2005-01-31 Masao Mutoh <mutoh@highway.ne.jp>
115
+
116
+ * src/rbatktext.c: Fix a compiling problem on MSVC++/atk-1.8.0.
117
+
118
+ 2005-01-30 Masao Mutoh <mutoh@highway.ne.jp>
119
+
120
+ * extconf.rb: Follow mkmf-gnome2.rb changes.
121
+
122
+ 2005-01-29 Masao Mutoh <mutoh@highway.ne.jp>
123
+
124
+ * extconf.rb: Support MS VC++.
125
+
126
+ 2004-12-03 Vincent Isambart <isambart@netcourrier.com>
127
+
128
+ * extconf.rb: Corrected a little parse error (just removed an end of line).
129
+
130
+ 2004-11-17 Dafydd Harries <daf@muse.19inch.net>
131
+
132
+ * extconf.rb: Exit if makeinits.rb is failed.
133
+
134
+ 2004-11-14 Masao Mutoh <mutoh@highway.ne.jp>
135
+
136
+ * extconf.rb, src/rbatk.h, rbatkobject.c:
137
+ Fix compiling warning under atk-1.0.3.
138
+
139
+ 2004-10-19 Masao Mutoh <mutoh@highway.ne.jp>
140
+
141
+ * src/rbatktextrectangle.c, rbatktextrange.c: Added.
142
+
143
+ 2004-10-18 Masao Mutoh <mutoh@highway.ne.jp>
144
+
145
+ * src/rbatkrelation.c: Added Atk::Relation::Type.for_name.
146
+ * src/rbatkstate.c: Moved Atk::StateType to Atk::State.
147
+ Added Atk::State.for_name.
148
+ * src/rbatkobject.c: Added Gtk::Atk::Object#localized_name,
149
+ .for_name, #notify_state_change,
150
+ * src/rbatkhyperlink.c: Added Atk::Hyperlink#selected_link?.
151
+ Fixed to use wrong macro for Atk::Hyperlink#inline?.
152
+
153
+ 2004-10-17 Vincent Isambart <isambart@netcourrier.com>
154
+
155
+ * extconf.rb: Changed add_uniq_to_objs to add_obj.
156
+
157
+ 2004-10-17 Vincent Isambart <isambart@netcourrier.com>
158
+
159
+ * extconf.rb: Fixed a bug under ruby-1.9.
160
+
161
+ 2004-03-29 Masao Mutoh <mutoh@highway.ne.jp>
162
+
163
+ * extconf.rb: Fix a bug under ruby-1.6.x.
164
+
165
+ 2004-03-14 Masao Mutoh <mutoh@highway.ne.jp>
166
+
167
+ * extconf.rb: Remove src/rbatkinits.c when run "make distclean".
168
+
169
+ 2004-03-10 Masao Mutoh <mutoh@highway.ne.jp>
170
+
171
+ * src/rbatkcomponent.c: Fix a compilation error on MinGW.
172
+
173
+ 2004-03-06 Masao Mutoh <mutoh@highway.ne.jp>
174
+
175
+ * README, src/rbatktext.c rbatkstate.c rbatktable.c rbatkselection.c
176
+ rbatkimage.c rbatkcomponent.c rbatkutil.c rbatkaction.c rbatkhyperlink.c
177
+ rbatkobject.c: Update Copyright.
178
+
179
+ 2004-03-02 Masao Mutoh <mutoh@highway.ne.jp>
180
+
181
+ * README, extconf.rb, src/rbatkaction.c, rbatkhyperlink.c,
182
+ rbatkobject.c: Support ATK-1.0.x.
183
+
184
+ 2004-02-20 Masao Mutoh <mutoh@highway.ne.jp>
185
+
186
+ * src/rbatkutil.c: Added.
187
+ * src/rbatkcomponent.c: Fix a return value of Atk::Component#set_extents,
188
+ #set_position, #set_size.
189
+ * src/rbatkimage.c: Fix a return value of Atk::Image#set_image_description.
190
+ * src/rbatkselection.c: Fix return values of Atk::Selection#add_selection,
191
+ #clear_selection, #remove_selection.
192
+ * src/rbatktable.c: Fix return values of Atk::Table#add_column_selection,
193
+ #add_row_selection, #remove_column_selection, #remove_row_selection
194
+ * src/rbatkstate.c: Fix a bug of Atk::StateType.
195
+ * src/rbatktext.c: Added.
196
+
197
+ 2003-12-26 Masao Mutoh <mutoh@highway.ne.jp>
198
+
199
+ * src/rbatktable.c: Added.
200
+
201
+ 2003-12-24 Masao Mutoh <mutoh@highway.ne.jp>
202
+
203
+ * src/rbatkstreamablecontent.c, rbatkstateset.c: Added.
204
+ * src/rbatkeditabletext.c: Fix a typo.
205
+
206
+ 2003-12-09 Masao Mutoh <mutoh@highway.ne.jp>
207
+
208
+ * src/rbatkstate.c, src/rbatkselection.c,
209
+ src/rbatkrelationset.c: Added.
210
+
211
+ 2003-12-08 Masao Mutoh <mutoh@highway.ne.jp>
212
+
213
+ * src/rbatknoopobjectfactory.c: Fix a wrong definition.
214
+ * src/rbatkimage.c, src/rbatkhypertext.c, rbatkhyperlink.c,
215
+ rbatkeditabletext.c, rbatkimplementor.c, rbatkobject.c,
216
+ rbatkrelation.c, rbatkregistry.c, rbatkobjectfactory.c: Added.
217
+
218
+ 2003-12-06 Masao Mutoh <mutoh@highway.ne.jp>
219
+
220
+ * atk/rbatkcomponent.c: Added.
221
+
222
+ 2003-12-05 Masao Mutoh <mutoh@highway.ne.jp>
223
+
224
+ * atk/*: Initial import. Added Atk::Action, Atk::Document,
225
+ Atk::GObjectAccessible, Atk::NoOpObject, Atk::NoOpObjectFactory, Atk::Value.
data/README ADDED
@@ -0,0 +1,30 @@
1
+ Ruby/ATK
2
+ ===============
3
+ Ruby/ATK is a Ruby binding of ATK-1.0.x or later.
4
+
5
+ Requirements
6
+ ------------
7
+ Ruby: http://www.ruby-lang.org/
8
+ GLib: http://www.gtk.org/
9
+ ATK: http://developer.gnome.org/projects/gap
10
+ Ruby/GLib2: http://ruby-gnome2.sourceforge.net/
11
+
12
+ Install
13
+ -------
14
+ 0. install ruby-1.6.x or later, GLib, ATK, Ruby/GLib2.
15
+ 1. ruby extconf.rb
16
+ 2. make
17
+ 3. su
18
+ 4. make install
19
+
20
+ Copying
21
+ -------
22
+ Copyright (c) 2003-2005 Ruby-GNOME2 Project Team
23
+
24
+ This program is free software.
25
+ You can distribute/modify this program under the terms of
26
+ the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
27
+
28
+ Project Website
29
+ ---------------
30
+ http://ruby-gnome2.sourceforge.jp/
@@ -0,0 +1,67 @@
1
+ require 'rake/clean'
2
+ CLEAN.include '**/*.o'
3
+ CLEAN.include "**/*.#{Config::MAKEFILE_CONFIG['DLEXT']}"
4
+ CLOBBER.include 'doc'
5
+ CLOBBER.include '**/*.log'
6
+ CLOBBER.include '**/Makefile'
7
+ CLOBBER.include '**/extconf.h'
8
+
9
+ # Determine the current version of the software
10
+ def ruby_atk_version
11
+ gem 'glib2'
12
+ require 'glib2'
13
+ GLib::BINDING_VERSION.join('.')
14
+ end
15
+
16
+ CURRENT_VERSION = ruby_atk_version
17
+
18
+ # Make tasks -----------------------------------------------------
19
+ make_program = (/mswin/ =~ RUBY_PLATFORM) ? 'nmake' : 'make'
20
+ MAKECMD = ENV['MAKE_CMD'] || make_program
21
+ MAKEOPTS = ENV['MAKE_OPTS'] || ''
22
+
23
+ ATK_SO = "src/atk.#{Config::MAKEFILE_CONFIG['DLEXT']}"
24
+
25
+ file 'Makefile' => 'extconf.rb' do
26
+ sh "ruby extconf.rb #{ENV['EXTCONF_OPTS']}"
27
+ end
28
+
29
+ def make(target = '')
30
+ pid = system("#{MAKECMD} #{MAKEOPTS} #{target}")
31
+ $?.exitstatus
32
+ end
33
+
34
+ # Let make handle dependencies between c/o/so - we'll just run it.
35
+ file ATK_SO => (['Makefile'] + Dir['src/*.c'] + Dir['src/*.h']) do
36
+ m = make
37
+ fail "Make failed (status #{m})" unless m == 0
38
+ end
39
+
40
+ desc "Configure atk"
41
+ task :configure => ['Makefile']
42
+
43
+ desc "Compile the shared object"
44
+ task :compile => [ATK_SO]
45
+
46
+ task :default => :compile
47
+
48
+ desc 'Generate gem specification'
49
+ task :gemspec do
50
+ require 'erb'
51
+ tspec = ERB.new(File.read(File.join(File.dirname(__FILE__),'src','atk.gemspec.erb')))
52
+ File.open(File.join(File.dirname(__FILE__),'atk.gemspec'),'wb') do|f|
53
+ f << tspec.result
54
+ end
55
+ end
56
+
57
+ desc 'Build gem'
58
+ task :package => :gemspec do
59
+ require 'rubygems/specification'
60
+ spec_source = File.read File.join(File.dirname(__FILE__),'atk.gemspec')
61
+ spec = nil
62
+ # see: http://gist.github.com/16215
63
+ Thread.new { spec = eval("$SAFE = 3\n#{spec_source}") }.join
64
+ spec.validate
65
+ Gem::Builder.new(spec).build
66
+ end
67
+
@@ -0,0 +1,59 @@
1
+ =begin
2
+ extconf.rb for Ruby/Atk extention library
3
+ =end
4
+
5
+ PACKAGE_NAME = "atk"
6
+ PACKAGE_ID = "atk"
7
+
8
+ begin
9
+ require 'mkmf-gnome2'
10
+ USE_GNOME_GEMS=true
11
+ TOPDIR = File.expand_path(File.dirname(__FILE__))
12
+ SRCDIR = TOPDIR + '/src'
13
+ require 'glib2'
14
+ rescue LoadError => e
15
+ TOPDIR = File.expand_path(File.dirname(__FILE__) + '/..')
16
+ SRCDIR = TOPDIR + '/atk/src'
17
+ MKMF_GNOME2_DIR = TOPDIR + '/glib/src/lib'
18
+
19
+ $LOAD_PATH.unshift MKMF_GNOME2_DIR
20
+
21
+ require 'mkmf-gnome2'
22
+ end
23
+
24
+ PKGConfig.have_package(PACKAGE_ID) or exit 1
25
+ setup_win32(PACKAGE_NAME)
26
+
27
+ atk_header = "atk/atk.h"
28
+ have_func('atk_action_get_localized_name', atk_header)
29
+ have_func('atk_hyperlink_is_inline', atk_header)
30
+ have_func('atk_object_add_relationship', atk_header)
31
+ have_func('atk_object_remove_relationship', atk_header)
32
+ have_func('atk_component_get_layer', atk_header)
33
+ have_func('atk_component_get_mdi_zorder', atk_header)
34
+ have_func('atk_hyperlink_is_selected_link', atk_header)
35
+ have_func('atk_text_get_bounded_ranges', atk_header)
36
+ have_func('atk_role_get_localized_name', atk_header)
37
+ have_func('atk_text_clip_type_get_type', atk_header)
38
+
39
+ have_func('atk_text_free_ranges', atk_header)
40
+
41
+ if USE_GNOME_GEMS
42
+ path = File.expand_path(ENV['GEM_HOME'] + "/gems/glib2-#{GLib::BINDING_VERSION.join('.')}/src")
43
+ add_depend_package("glib2", path, '/')
44
+ else
45
+ add_depend_package("glib2", "glib/src", TOPDIR)
46
+ end
47
+
48
+ add_distcleanfile("rbatkinits.c")
49
+
50
+ make_version_header("ATK", PACKAGE_ID)
51
+
52
+ create_pkg_config_file("Ruby/ATK", PACKAGE_ID)
53
+ create_makefile_at_srcdir(PACKAGE_NAME, SRCDIR, "-DRUBY_ATK_COMPILATION") {
54
+ SRCDIR_QUOTED = SRCDIR.gsub(' ', '\ ')
55
+ system("#{$ruby} #{SRCDIR_QUOTED}/makeinits.rb #{SRCDIR_QUOTED}/*.c > rbatkinits.c") or raise "failed to make ATK inits"
56
+ }
57
+
58
+ create_top_makefile
59
+
@@ -0,0 +1,2 @@
1
+ require 'glib2'
2
+ require 'atk.so'
@@ -0,0 +1,39 @@
1
+ except_targets = ["Init_atk()"]
2
+
3
+ def print_data(array, type, defs, extern = false)
4
+ if array[type]
5
+ extern_def = "extern void" if extern
6
+ print "##{defs} #{type}\n" if defs
7
+ array[type].each do |val|
8
+ print "#{extern_def} #{val};\n"
9
+ end
10
+ print "#endif\n" if defs
11
+ end
12
+ end
13
+
14
+ inits = Hash.new
15
+
16
+ while gets
17
+ if ~ /^(Init_.*\(.*\))(.*)/
18
+ init = $1
19
+ unless except_targets.include?(init)
20
+ flag = $2
21
+ if flag.size > 0
22
+ if flag =~ /\/\*\s*(\w*)\s*\*\//
23
+ inits[$1] = Array.new unless inits[$1]
24
+ inits[$1] << init
25
+ end
26
+ else
27
+ inits[""] = Array.new unless inits[""]
28
+ inits[""] << init
29
+ end
30
+ end
31
+ end
32
+ end
33
+
34
+ print_data(inits, "", nil, true)
35
+
36
+ print "void Init_atk_inits()\n"
37
+ print "{\n"
38
+ print_data(inits, "", nil)
39
+ print "}\n"
@@ -0,0 +1,27 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /************************************************
3
+
4
+ rbatk.c -
5
+
6
+ $Author: mutoh $
7
+ $Date: 2005/09/28 17:38:25 $
8
+
9
+ Copyright (C) 2003-2005 Masao Mutoh
10
+ ************************************************/
11
+
12
+ #include "rbatk.h"
13
+
14
+ VALUE mAtk;
15
+
16
+ void
17
+ Init_atk()
18
+ {
19
+ mAtk = rb_define_module("Atk");
20
+
21
+ rb_define_const(mAtk, "BUILD_VERSION",
22
+ rb_ary_new3(3,
23
+ INT2FIX(ATK_MAJOR_VERSION),
24
+ INT2FIX(ATK_MINOR_VERSION),
25
+ INT2FIX(ATK_MICRO_VERSION)));
26
+ Init_atk_inits();
27
+ }