atk 3.1.1-x64-mingw32 → 3.1.2-x64-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.
- checksums.yaml +4 -4
- data/Rakefile +18 -2
- data/dependency-check/Rakefile +44 -0
- data/lib/atk.rb +29 -21
- data/test/atk-test-utils.rb +1 -1
- data/test/run-test.rb +5 -2
- data/test/test-text-rectangle.rb +5 -4
- data/test/test-version.rb +1 -1
- data/vendor/local/bin/libatk-1.0-0.dll +0 -0
- data/vendor/local/include/atk-1.0/atk/atktext.h +1 -1
- data/vendor/local/include/atk-1.0/atk/atkversion.h +2 -2
- data/vendor/local/lib/girepository-1.0/Atk-1.0.typelib +0 -0
- data/vendor/local/lib/libatk-1.0.dll.a +0 -0
- data/vendor/local/lib/libatk-1.0.la +3 -3
- data/vendor/local/lib/pkgconfig/atk.pc +1 -1
- data/vendor/local/share/gir-1.0/Atk-1.0.gir +3 -3
- data/vendor/local/share/gtk-doc/html/atk/AtkObject.html +5 -5
- data/vendor/local/share/gtk-doc/html/atk/AtkText.html +1 -1
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-12.html +9 -9
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-13.html +3 -3
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-20.html +1 -1
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-22.html +5 -5
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-3.html +3 -3
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-30.html +3 -3
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-4.html +1 -1
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-6.html +1 -1
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-9.html +2 -2
- data/vendor/local/share/gtk-doc/html/atk/api-index-2-10.html +1 -1
- data/vendor/local/share/gtk-doc/html/atk/api-index-2-12.html +22 -22
- data/vendor/local/share/gtk-doc/html/atk/api-index-2-2.html +9 -9
- data/vendor/local/share/gtk-doc/html/atk/api-index-2-8.html +6 -6
- data/vendor/local/share/gtk-doc/html/atk/api-index-deprecated.html +42 -42
- data/vendor/local/share/gtk-doc/html/atk/api-index-full.html +370 -370
- data/vendor/local/share/gtk-doc/html/atk/atk-Versioning-Utilities.html +2 -2
- data/vendor/local/share/gtk-doc/html/atk/atk.devhelp2 +1 -1
- data/vendor/local/share/gtk-doc/html/atk/{atkobject.html → base-object.html} +1 -1
- data/vendor/local/share/gtk-doc/html/atk/index.html +2 -2
- data/vendor/local/share/gtk-doc/html/atk/overview.html +2 -2
- data/vendor/local/share/locale/af/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/an/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/fur/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/gd/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/atk10.mo +0 -0
- metadata +8 -47
- data/README +0 -30
- data/ext/atk/atk.def +0 -2
- data/ext/atk/depend +0 -11
- data/ext/atk/extconf.rb +0 -83
- data/ext/atk/rbatk.c +0 -66
- data/ext/atk/rbatk.h +0 -47
- data/ext/atk/rbatkaction.c +0 -85
- data/ext/atk/rbatkcomponent.c +0 -175
- data/ext/atk/rbatkconversions.h +0 -70
- data/ext/atk/rbatkdocument.c +0 -96
- data/ext/atk/rbatkeditabletext.c +0 -177
- data/ext/atk/rbatkgobjectaccessible.c +0 -46
- data/ext/atk/rbatkhyperlink.c +0 -71
- data/ext/atk/rbatkhypertext.c +0 -53
- data/ext/atk/rbatkimage.c +0 -68
- data/ext/atk/rbatkimplementor.c +0 -38
- data/ext/atk/rbatknoopobject.c +0 -40
- data/ext/atk/rbatknoopobjectfactory.c +0 -40
- data/ext/atk/rbatkobject.c +0 -153
- data/ext/atk/rbatkobjectfactory.c +0 -53
- data/ext/atk/rbatkobjectrole.c +0 -50
- data/ext/atk/rbatkprivate.h +0 -48
- data/ext/atk/rbatkregistry.c +0 -63
- data/ext/atk/rbatkrelation.c +0 -98
- data/ext/atk/rbatkrelationset.c +0 -95
- data/ext/atk/rbatkrelationtype.c +0 -38
- data/ext/atk/rbatkselection.c +0 -87
- data/ext/atk/rbatkstate.c +0 -51
- data/ext/atk/rbatkstateset.c +0 -180
- data/ext/atk/rbatkstreamablecontent.c +0 -57
- data/ext/atk/rbatktable.c +0 -271
- data/ext/atk/rbatktext.c +0 -318
- data/ext/atk/rbatktextattribute.c +0 -54
- data/ext/atk/rbatktextrange.c +0 -92
- data/ext/atk/rbatktextrectangle.c +0 -149
- data/ext/atk/rbatkutil.c +0 -122
- data/ext/atk/rbatkvalue.c +0 -78
- data/extconf.rb +0 -49
- data/lib/2.2/atk.so +0 -0
- data/lib/2.3/atk.so +0 -0
- data/lib/2.4/atk.so +0 -0
data/ext/atk/rbatk.c
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2003-2005 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 mAtk
|
25
|
-
VALUE mAtk;
|
26
|
-
|
27
|
-
extern void Init_atk(void);
|
28
|
-
|
29
|
-
void
|
30
|
-
Init_atk(void)
|
31
|
-
{
|
32
|
-
RG_TARGET_NAMESPACE = rb_define_module("Atk");
|
33
|
-
|
34
|
-
rb_define_const(RG_TARGET_NAMESPACE, "BUILD_VERSION",
|
35
|
-
rb_ary_new3(3,
|
36
|
-
INT2FIX(ATK_MAJOR_VERSION),
|
37
|
-
INT2FIX(ATK_MINOR_VERSION),
|
38
|
-
INT2FIX(ATK_MICRO_VERSION)));
|
39
|
-
|
40
|
-
Init_atk_action(RG_TARGET_NAMESPACE);
|
41
|
-
Init_atk_component(RG_TARGET_NAMESPACE);
|
42
|
-
Init_atk_document(RG_TARGET_NAMESPACE);
|
43
|
-
Init_atk_editabletext(RG_TARGET_NAMESPACE);
|
44
|
-
Init_atk_gobjectaccessible(RG_TARGET_NAMESPACE);
|
45
|
-
Init_atk_hyperlink(RG_TARGET_NAMESPACE);
|
46
|
-
Init_atk_hypertext(RG_TARGET_NAMESPACE);
|
47
|
-
Init_atk_image(RG_TARGET_NAMESPACE);
|
48
|
-
Init_atk_implementor(RG_TARGET_NAMESPACE);
|
49
|
-
Init_atk_noopobject(RG_TARGET_NAMESPACE);
|
50
|
-
Init_atk_noopobjectfactory(RG_TARGET_NAMESPACE);
|
51
|
-
Init_atk_object(RG_TARGET_NAMESPACE);
|
52
|
-
Init_atk_objectfactory(RG_TARGET_NAMESPACE);
|
53
|
-
Init_atk_registry(RG_TARGET_NAMESPACE);
|
54
|
-
Init_atk_relation(RG_TARGET_NAMESPACE);
|
55
|
-
Init_atk_relation_set(RG_TARGET_NAMESPACE);
|
56
|
-
Init_atk_selection(RG_TARGET_NAMESPACE);
|
57
|
-
Init_atk_state(RG_TARGET_NAMESPACE);
|
58
|
-
Init_atk_state_set(RG_TARGET_NAMESPACE);
|
59
|
-
Init_atk_streamable_content(RG_TARGET_NAMESPACE);
|
60
|
-
Init_atk_table(RG_TARGET_NAMESPACE);
|
61
|
-
Init_atk_text(RG_TARGET_NAMESPACE);
|
62
|
-
Init_atk_text_range(RG_TARGET_NAMESPACE);
|
63
|
-
Init_atk_text_rectangle(RG_TARGET_NAMESPACE);
|
64
|
-
Init_atk_util(RG_TARGET_NAMESPACE);
|
65
|
-
Init_atk_value(RG_TARGET_NAMESPACE);
|
66
|
-
}
|
data/ext/atk/rbatk.h
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2003,2004 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 "ruby.h"
|
23
|
-
#include <atk/atk.h>
|
24
|
-
#include <atk/atk-enum-types.h>
|
25
|
-
#include <atk/atknoopobject.h>
|
26
|
-
#include <atk/atknoopobjectfactory.h>
|
27
|
-
#include "rbgobject.h"
|
28
|
-
#include "rbatkversion.h"
|
29
|
-
#include "rbatkconversions.h"
|
30
|
-
|
31
|
-
#if defined(G_PLATFORM_WIN32) && !defined(RUBY_ATK_STATIC_COMPILATION)
|
32
|
-
# ifdef RUBY_ATK_COMPILATION
|
33
|
-
# define RUBY_ATK_VAR __declspec(dllexport)
|
34
|
-
# else
|
35
|
-
# define RUBY_ATK_VAR extern __declspec(dllimport)
|
36
|
-
# endif
|
37
|
-
#else
|
38
|
-
# define RUBY_ATK_VAR extern
|
39
|
-
#endif
|
40
|
-
|
41
|
-
extern GType atk_text_rectangle_get_type(void);
|
42
|
-
extern GType atk_text_range_get_type(void);
|
43
|
-
|
44
|
-
RUBY_ATK_VAR VALUE mAtk;
|
45
|
-
|
46
|
-
#define ATK_TYPE_TEXT_RECTANGLE (atk_text_rectangle_get_type())
|
47
|
-
#define ATK_TYPE_TEXT_RANGE (atk_text_range_get_type())
|
data/ext/atk/rbatkaction.c
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2004 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 mAction
|
25
|
-
#define _SELF(s) (RVAL2ATKACTION(s))
|
26
|
-
|
27
|
-
static VALUE
|
28
|
-
rg_do_action(VALUE self, VALUE i)
|
29
|
-
{
|
30
|
-
return CBOOL2RVAL(atk_action_do_action(_SELF(self), NUM2INT(i)));
|
31
|
-
}
|
32
|
-
|
33
|
-
static VALUE
|
34
|
-
rg_n_actions(VALUE self)
|
35
|
-
{
|
36
|
-
return INT2NUM(atk_action_get_n_actions(_SELF(self)));
|
37
|
-
}
|
38
|
-
|
39
|
-
static VALUE
|
40
|
-
rg_get_description(VALUE self, VALUE i)
|
41
|
-
{
|
42
|
-
return CSTR2RVAL(atk_action_get_description(_SELF(self), NUM2INT(i)));
|
43
|
-
}
|
44
|
-
|
45
|
-
static VALUE
|
46
|
-
rg_get_name(VALUE self, VALUE i)
|
47
|
-
{
|
48
|
-
return CSTR2RVAL(atk_action_get_name(_SELF(self), NUM2INT(i)));
|
49
|
-
}
|
50
|
-
|
51
|
-
#ifdef HAVE_ATK_ACTION_GET_LOCALIZED_NAME
|
52
|
-
static VALUE
|
53
|
-
rg_get_localized_name(VALUE self, VALUE i)
|
54
|
-
{
|
55
|
-
return CSTR2RVAL(atk_action_get_localized_name(_SELF(self), NUM2INT(i)));
|
56
|
-
}
|
57
|
-
#endif
|
58
|
-
|
59
|
-
static VALUE
|
60
|
-
rg_get_keybinding(VALUE self, VALUE i)
|
61
|
-
{
|
62
|
-
return CSTR2RVAL(atk_action_get_keybinding(_SELF(self), NUM2INT(i)));
|
63
|
-
}
|
64
|
-
|
65
|
-
static VALUE
|
66
|
-
rg_set_description(VALUE self, VALUE i, VALUE desc)
|
67
|
-
{
|
68
|
-
return CBOOL2RVAL(atk_action_set_description(_SELF(self), NUM2INT(i), RVAL2CSTR(desc)));
|
69
|
-
}
|
70
|
-
|
71
|
-
void
|
72
|
-
Init_atk_action(VALUE mAtk)
|
73
|
-
{
|
74
|
-
VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(ATK_TYPE_ACTION, "Action", mAtk);
|
75
|
-
|
76
|
-
RG_DEF_METHOD(do_action, 1);
|
77
|
-
RG_DEF_METHOD(n_actions, 0);
|
78
|
-
RG_DEF_METHOD(get_description, 1);
|
79
|
-
RG_DEF_METHOD(get_name, 1);
|
80
|
-
#ifdef HAVE_ATK_ACTION_GET_LOCALIZED_NAME
|
81
|
-
RG_DEF_METHOD(get_localized_name, 1);
|
82
|
-
#endif
|
83
|
-
RG_DEF_METHOD(get_keybinding, 1);
|
84
|
-
RG_DEF_METHOD(set_description, 2);
|
85
|
-
}
|
data/ext/atk/rbatkcomponent.c
DELETED
@@ -1,175 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2004 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 mComponent
|
25
|
-
#define _SELF(s) (RVAL2ATKCOMPONENT(s))
|
26
|
-
|
27
|
-
/*
|
28
|
-
static void
|
29
|
-
focus_handler(AtkObject *aobj, gboolean bool)
|
30
|
-
{
|
31
|
-
VALUE ret = rb_funcall((VALUE)func, id_call, 2,
|
32
|
-
GOBJ2RVAL(aobj), CBOOL2RVAL(bool));
|
33
|
-
}
|
34
|
-
static VALUE
|
35
|
-
rg_add_focus_handler(VALUE self)
|
36
|
-
{
|
37
|
-
VALUE func = rb_block_proc();
|
38
|
-
G_RELATIVE(self, func);
|
39
|
-
return UINT2NUM(atk_component_add_focus_handler(_SELF(self), focus_handler));
|
40
|
-
}
|
41
|
-
*/
|
42
|
-
|
43
|
-
static VALUE
|
44
|
-
rg_contains_p(VALUE self, VALUE x, VALUE y, VALUE coord_type)
|
45
|
-
{
|
46
|
-
return CBOOL2RVAL(atk_component_contains(_SELF(self),
|
47
|
-
NUM2INT(x), NUM2INT(y),
|
48
|
-
RVAL2ATKCOORDTYPE(coord_type)));
|
49
|
-
}
|
50
|
-
|
51
|
-
static VALUE
|
52
|
-
rg_get_extents(VALUE self, VALUE coord_type)
|
53
|
-
{
|
54
|
-
gint x, y, width, height;
|
55
|
-
atk_component_get_extents(_SELF(self), &x, &y, &width, &height,
|
56
|
-
RVAL2ATKCOORDTYPE(coord_type));
|
57
|
-
return rb_ary_new3(4, INT2NUM(x), INT2NUM(y), INT2NUM(width), INT2NUM(height));
|
58
|
-
}
|
59
|
-
|
60
|
-
#ifdef HAVE_ATK_COMPONENT_GET_LAYER
|
61
|
-
static VALUE
|
62
|
-
rg_layer(VALUE self)
|
63
|
-
{
|
64
|
-
return ATKLAYER2RVAL(atk_component_get_layer(_SELF(self)));
|
65
|
-
}
|
66
|
-
#endif
|
67
|
-
|
68
|
-
#ifdef HAVE_ATK_COMPONENT_GET_MDI_ZORDER
|
69
|
-
static VALUE
|
70
|
-
rg_mdi_zorder(VALUE self)
|
71
|
-
{
|
72
|
-
return INT2NUM(atk_component_get_mdi_zorder(_SELF(self)));
|
73
|
-
}
|
74
|
-
|
75
|
-
#endif
|
76
|
-
static VALUE
|
77
|
-
rg_position(VALUE self, VALUE coord_type)
|
78
|
-
{
|
79
|
-
gint x, y;
|
80
|
-
atk_component_get_position(_SELF(self), &x, &y,
|
81
|
-
RVAL2ATKCOORDTYPE(coord_type));
|
82
|
-
return rb_assoc_new(INT2NUM(x), INT2NUM(y));
|
83
|
-
}
|
84
|
-
|
85
|
-
static VALUE
|
86
|
-
rg_size(VALUE self)
|
87
|
-
{
|
88
|
-
gint width, height;
|
89
|
-
atk_component_get_size(_SELF(self), &width, &height);
|
90
|
-
return rb_assoc_new(INT2NUM(width), INT2NUM(height));
|
91
|
-
}
|
92
|
-
|
93
|
-
static VALUE
|
94
|
-
rg_grab_focus(VALUE self)
|
95
|
-
{
|
96
|
-
return CBOOL2RVAL(atk_component_grab_focus(_SELF(self)));
|
97
|
-
}
|
98
|
-
|
99
|
-
static VALUE
|
100
|
-
rg_ref_accessible_at_point(VALUE self, VALUE x, VALUE y, VALUE coord_type)
|
101
|
-
{
|
102
|
-
return GOBJ2RVAL(atk_component_ref_accessible_at_point(
|
103
|
-
_SELF(self),
|
104
|
-
NUM2INT(x), NUM2INT(y),
|
105
|
-
RVAL2ATKCOORDTYPE(coord_type)));
|
106
|
-
}
|
107
|
-
|
108
|
-
static VALUE
|
109
|
-
rg_remove_focus_handler(VALUE self, VALUE handler_id)
|
110
|
-
{
|
111
|
-
atk_component_remove_focus_handler(_SELF(self), NUM2UINT(handler_id));
|
112
|
-
return self;
|
113
|
-
}
|
114
|
-
|
115
|
-
static VALUE
|
116
|
-
rg_set_extents(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height, VALUE coord_type)
|
117
|
-
{
|
118
|
-
gboolean ret = atk_component_set_extents(_SELF(self),
|
119
|
-
NUM2INT(x), NUM2INT(y),
|
120
|
-
NUM2INT(width), NUM2INT(height),
|
121
|
-
RVAL2ATKCOORDTYPE(coord_type));
|
122
|
-
if (! ret) rb_raise(rb_eRuntimeError, "Can't set extents");
|
123
|
-
return self;
|
124
|
-
}
|
125
|
-
|
126
|
-
static VALUE
|
127
|
-
rg_set_position(VALUE self, VALUE x, VALUE y, VALUE coord_type)
|
128
|
-
{
|
129
|
-
gboolean ret = atk_component_set_position(_SELF(self),
|
130
|
-
NUM2INT(x), NUM2INT(y),
|
131
|
-
RVAL2ATKCOORDTYPE(coord_type));
|
132
|
-
if (! ret) rb_raise(rb_eRuntimeError, "Can't set the position");
|
133
|
-
return self;
|
134
|
-
}
|
135
|
-
|
136
|
-
static VALUE
|
137
|
-
rg_set_size(VALUE self, VALUE width, VALUE height)
|
138
|
-
{
|
139
|
-
gboolean ret = atk_component_set_size(_SELF(self),
|
140
|
-
NUM2INT(width), NUM2INT(height));
|
141
|
-
if (! ret) rb_raise(rb_eRuntimeError, "Can't set the size");
|
142
|
-
return self;
|
143
|
-
}
|
144
|
-
|
145
|
-
static VALUE
|
146
|
-
rg_alpha(VALUE self)
|
147
|
-
{
|
148
|
-
return rb_float_new(atk_component_get_alpha(_SELF(self)));
|
149
|
-
}
|
150
|
-
|
151
|
-
void
|
152
|
-
Init_atk_component(VALUE mAtk)
|
153
|
-
{
|
154
|
-
VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(ATK_TYPE_COMPONENT, "Component", mAtk);
|
155
|
-
/*
|
156
|
-
RG_DEF_METHOD(add_focus_handler, 0);
|
157
|
-
*/
|
158
|
-
RG_DEF_METHOD_P(contains, 3);
|
159
|
-
RG_DEF_METHOD(get_extents, 1);
|
160
|
-
#ifdef HAVE_ATK_COMPONENT_GET_LAYER
|
161
|
-
RG_DEF_METHOD(layer, 0);
|
162
|
-
#endif
|
163
|
-
#ifdef HAVE_ATK_COMPONENT_GET_MDI_ZORDER
|
164
|
-
RG_DEF_METHOD(mdi_zorder, 0);
|
165
|
-
#endif
|
166
|
-
RG_DEF_METHOD(position, 1);
|
167
|
-
RG_DEF_METHOD(size, 0);
|
168
|
-
RG_DEF_METHOD(grab_focus, 0);
|
169
|
-
RG_DEF_METHOD(ref_accessible_at_point, 3);
|
170
|
-
RG_DEF_METHOD(remove_focus_handler, 1);
|
171
|
-
RG_DEF_METHOD(set_extents, 5);
|
172
|
-
RG_DEF_METHOD(set_position, 2);
|
173
|
-
RG_DEF_METHOD(set_size, 2);
|
174
|
-
RG_DEF_METHOD(alpha, 0);
|
175
|
-
}
|
data/ext/atk/rbatkconversions.h
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
*
|
5
|
-
* This library is free software; you can redistribute it and/or
|
6
|
-
* modify it under the terms of the GNU Lesser General Public
|
7
|
-
* License as published by the Free Software Foundation; either
|
8
|
-
* version 2.1 of the License, or (at your option) any later version.
|
9
|
-
*
|
10
|
-
* This library is distributed in the hope that it will be useful,
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
-
* Lesser General Public License for more details.
|
14
|
-
*
|
15
|
-
* You should have received a copy of the GNU Lesser General Public
|
16
|
-
* License along with this library; if not, write to the Free Software
|
17
|
-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
18
|
-
* MA 02110-1301 USA
|
19
|
-
*/
|
20
|
-
|
21
|
-
#ifndef __RBATKCONVERSIONS_H__
|
22
|
-
#define __RBATKCONVERSIONS_H__
|
23
|
-
|
24
|
-
#define RVAL2ATKACTION(o) (ATK_ACTION(RVAL2GOBJ(o)))
|
25
|
-
#define RVAL2ATKCOMPONENT(o) (ATK_COMPONENT(RVAL2GOBJ(o)))
|
26
|
-
#define RVAL2ATKDOCUMENT(o) (ATK_DOCUMENT(RVAL2GOBJ(o)))
|
27
|
-
#define RVAL2ATKEDITABLETEXT(o) (ATK_EDITABLE_TEXT(RVAL2GOBJ(o)))
|
28
|
-
#define RVAL2ATKGOBJECTACCESSIBLE(o) (ATK_GOBJECT_ACCESSIBLE(RVAL2GOBJ(o)))
|
29
|
-
#define RVAL2ATKHYPERLINK(o) (ATK_HYPERLINK(RVAL2GOBJ(o)))
|
30
|
-
#define RVAL2ATKHYPERTEXT(o) (ATK_HYPERTEXT(RVAL2GOBJ(o)))
|
31
|
-
#define RVAL2ATKIMAGE(o) (ATK_IMAGE(RVAL2GOBJ(o)))
|
32
|
-
#define RVAL2ATKIMPLEMENTOR(o) (ATK_IMPLEMENTOR(RVAL2GOBJ(o)))
|
33
|
-
#define RVAL2ATKNOOPOBJECT(o) (ATK_NOOPOBJECT(RVAL2GOBJ(o)))
|
34
|
-
#define RVAL2ATKNOOPOBJECTFACTORY(o) (ATK_NO_OP_OBJECT_FACTORY(RVAL2GOBJ(o)))
|
35
|
-
#define RVAL2ATKOBJECT(o) (ATK_OBJECT(RVAL2GOBJ(o)))
|
36
|
-
#define RVAL2ATKOBJECTFACTORY(o) (ATK_OBJECT_FACTORY(RVAL2GOBJ(o)))
|
37
|
-
#define RVAL2ATKREGISTRY(o) (ATK_REGISTRY(RVAL2GOBJ(o)))
|
38
|
-
#define RVAL2ATKRELATION(o) (ATK_RELATION(RVAL2GOBJ(o)))
|
39
|
-
#define RVAL2ATKRELATIONSET(o) (ATK_RELATION_SET(RVAL2GOBJ(o)))
|
40
|
-
#define RVAL2ATKSELECTION(o) (ATK_SELECTION(RVAL2GOBJ(o)))
|
41
|
-
#define RVAL2ATKSTATE(o) (ATK_STATE(RVAL2GOBJ(o)))
|
42
|
-
#define RVAL2ATKSTATESET(o) (ATK_STATE_SET(RVAL2GOBJ(o)))
|
43
|
-
#define RVAL2ATKSTREAMABLECONTENT(o) (ATK_STREAMABLE_CONTENT(RVAL2GOBJ(o)))
|
44
|
-
#define RVAL2ATKTABLE(o) (ATK_TABLE(RVAL2GOBJ(o)))
|
45
|
-
#define RVAL2ATKTEXT(o) (ATK_TEXT(RVAL2GOBJ(o)))
|
46
|
-
#define RVAL2ATKVALUE(o) (ATK_VALUE(RVAL2GOBJ(o)))
|
47
|
-
|
48
|
-
#define RVAL2ATKTEXTRANGE(o) ((AtkTextRange*)RVAL2BOXED(o, ATK_TYPE_TEXT_RANGE))
|
49
|
-
#define ATKTEXTRANGE2RVAL(o) (BOXED2RVAL(o, ATK_TYPE_TEXT_RANGE))
|
50
|
-
#define RVAL2ATKTEXTRECTANGLE(o) ((AtkTextRectangle*)RVAL2BOXED(o, ATK_TYPE_TEXT_RECTANGLE))
|
51
|
-
#define ATKTEXTRECTANGLE2RVAL(o) (BOXED2RVAL(o, ATK_TYPE_TEXT_RECTANGLE))
|
52
|
-
|
53
|
-
#define RVAL2ATKCOORDTYPE(o) (RVAL2GENUM(o, ATK_TYPE_COORD_TYPE))
|
54
|
-
#define ATKCOORDTYPE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_COORD_TYPE))
|
55
|
-
#define RVAL2ATKLAYER(o) (RVAL2GENUM(o, ATK_TYPE_LAYER))
|
56
|
-
#define ATKLAYER2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_LAYER))
|
57
|
-
#define RVAL2ATKRELATIONTYPE(o) (RVAL2GENUM(o, ATK_TYPE_RELATION_TYPE))
|
58
|
-
#define ATKRELATIONTYPE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_RELATION_TYPE))
|
59
|
-
#define RVAL2ATKROLE(o) (RVAL2GENUM(o, ATK_TYPE_ROLE))
|
60
|
-
#define ATKROLE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_ROLE))
|
61
|
-
#define RVAL2ATKSTATETYPE(o) (RVAL2GENUM(o, ATK_TYPE_STATE_TYPE))
|
62
|
-
#define ATKSTATETYPE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_STATE_TYPE))
|
63
|
-
#define RVAL2ATKTEXTATTRIBUTE(o) (RVAL2GENUM(o, ATK_TYPE_TEXT_ATTRIBUTE))
|
64
|
-
#define ATKTEXTATTRIBUTE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_TEXT_ATTRIBUTE))
|
65
|
-
#define RVAL2ATKTEXTBOUNDARY(o) (RVAL2GENUM(o, ATK_TYPE_TEXT_BOUNDARY))
|
66
|
-
#define ATKTEXTBOUNDARY2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_TEXT_BOUNDARY))
|
67
|
-
#define RVAL2ATKTEXTCLIPTYPE(o) (RVAL2GENUM(o, ATK_TYPE_TEXT_CLIP_TYPE))
|
68
|
-
#define ATKTEXTCLIPTYPE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_TEXT_CLIP_TYPE))
|
69
|
-
|
70
|
-
#endif /* __RBATKCONVERSIONS_H__ */
|