atk 0.90.7 → 0.90.8

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.
@@ -49,29 +49,25 @@ atk_text_range_get_type(void)
49
49
  /**********************************/
50
50
  /* Struct accessors */
51
51
  static VALUE
52
- atktextrange_bounds(self)
53
- VALUE self;
52
+ atktextrange_bounds(VALUE self)
54
53
  {
55
54
  return BOXED2RVAL(&_SELF(self)->bounds, ATK_TYPE_TEXT_RECTANGLE);
56
55
  }
57
56
 
58
57
  static VALUE
59
- atktextrange_start_offset(self)
60
- VALUE self;
58
+ atktextrange_start_offset(VALUE self)
61
59
  {
62
60
  return INT2NUM(_SELF(self)->start_offset);
63
61
  }
64
62
 
65
63
  static VALUE
66
- atktextrange_end_offset(self)
67
- VALUE self;
64
+ atktextrange_end_offset(VALUE self)
68
65
  {
69
66
  return INT2NUM(_SELF(self)->end_offset);
70
67
  }
71
68
 
72
69
  static VALUE
73
- atktextrange_content(self)
74
- VALUE self;
70
+ atktextrange_content(VALUE self)
75
71
  {
76
72
  return CSTR2RVAL(_SELF(self)->content);
77
73
  }
@@ -49,8 +49,7 @@ atk_text_rectangle_get_type(void)
49
49
  /**********************************/
50
50
 
51
51
  static VALUE
52
- atktextrect_initialize(self, x, y, width, height)
53
- VALUE self, x, y, width, height;
52
+ atktextrect_initialize(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height)
54
53
  {
55
54
  AtkTextRectangle new;
56
55
 
@@ -65,68 +64,59 @@ atktextrect_initialize(self, x, y, width, height)
65
64
 
66
65
  /* Struct accessors */
67
66
  static VALUE
68
- atktextrect_x(self)
69
- VALUE self;
67
+ atktextrect_x(VALUE self)
70
68
  {
71
69
  return INT2NUM(_SELF(self)->x);
72
70
  }
73
71
 
74
72
  static VALUE
75
- atktextrect_y(self)
76
- VALUE self;
73
+ atktextrect_y(VALUE self)
77
74
  {
78
75
  return INT2NUM(_SELF(self)->y);
79
76
  }
80
77
 
81
78
  static VALUE
82
- atktextrect_w(self)
83
- VALUE self;
79
+ atktextrect_w(VALUE self)
84
80
  {
85
81
  return INT2NUM(_SELF(self)->width);
86
82
  }
87
83
 
88
84
  static VALUE
89
- atktextrect_h(self)
90
- VALUE self;
85
+ atktextrect_h(VALUE self)
91
86
  {
92
87
  return INT2NUM(_SELF(self)->height);
93
88
  }
94
89
 
95
90
  static VALUE
96
- atktextrect_set_x(self, x)
97
- VALUE self, x;
91
+ atktextrect_set_x(VALUE self, VALUE x)
98
92
  {
99
93
  _SELF(self)->x = NUM2INT(x);
100
94
  return self;
101
95
  }
102
96
 
103
97
  static VALUE
104
- atktextrect_set_y(self, y)
105
- VALUE self, y;
98
+ atktextrect_set_y(VALUE self, VALUE y)
106
99
  {
107
100
  _SELF(self)->y = NUM2INT(y);
108
101
  return self;
109
102
  }
110
103
 
111
104
  static VALUE
112
- atktextrect_set_w(self, width)
113
- VALUE self, width;
105
+ atktextrect_set_w(VALUE self, VALUE width)
114
106
  {
115
107
  _SELF(self)->width = NUM2INT(width);
116
108
  return self;
117
109
  }
118
110
 
119
111
  static VALUE
120
- atktextrect_set_h(self, height)
121
- VALUE self, height;
112
+ atktextrect_set_h(VALUE self, VALUE height)
122
113
  {
123
114
  _SELF(self)->height = NUM2INT(height);
124
115
  return self;
125
116
  }
126
117
 
127
118
  static VALUE
128
- atktextrect_to_a(self)
129
- VALUE self;
119
+ atktextrect_to_a(VALUE self)
130
120
  {
131
121
  AtkTextRectangle* a = _SELF(self);
132
122
  return rb_ary_new3(4, INT2FIX(a->x), INT2FIX(a->y),
@@ -26,8 +26,7 @@ void atk_remove_global_event_listener
26
26
  */
27
27
 
28
28
  static VALUE
29
- rbatk_focus_tracker_notify(self, obj)
30
- VALUE self, obj;
29
+ rbatk_focus_tracker_notify(VALUE self, VALUE obj)
31
30
  {
32
31
  atk_focus_tracker_notify(ATK_OBJECT(RVAL2GOBJ(obj)));
33
32
  return self;
@@ -45,8 +44,7 @@ key_snoop_func(AtkKeyEventStruct* event, gpointer func)
45
44
  }
46
45
 
47
46
  static VALUE
48
- rbatk_add_key_event_listener(self)
49
- VALUE self;
47
+ rbatk_add_key_event_listener(VALUE self)
50
48
  {
51
49
  guint ret;
52
50
  VALUE func = rb_block_proc();
@@ -56,39 +54,34 @@ rbatk_add_key_event_listener(self)
56
54
  }
57
55
 
58
56
  static VALUE
59
- rbatk_remove_key_event_listener(self, id)
60
- VALUE self, id;
57
+ rbatk_remove_key_event_listener(VALUE self, VALUE id)
61
58
  {
62
59
  atk_remove_key_event_listener(NUM2UINT(id));
63
60
  return self;
64
61
  }
65
62
 
66
63
  static VALUE
67
- rbatk_get_root(self)
68
- VALUE self;
64
+ rbatk_get_root(VALUE self)
69
65
  {
70
66
  return GOBJ2RVAL(atk_get_root());
71
67
  }
72
68
 
73
69
  #if ATK_CHECK_VERSION(1,6,0)
74
70
  static VALUE
75
- rbatk_get_focus_object(self)
76
- VALUE self;
71
+ rbatk_get_focus_object(VALUE self)
77
72
  {
78
73
  return GOBJ2RVAL(atk_get_focus_object());
79
74
  }
80
75
  #endif
81
76
 
82
77
  static VALUE
83
- rbatk_get_toolkit_name(self)
84
- VALUE self;
78
+ rbatk_get_toolkit_name(VALUE self)
85
79
  {
86
80
  return CSTR2RVAL(atk_get_toolkit_name());
87
81
  }
88
82
 
89
83
  static VALUE
90
- rbatk_get_toolkit_version(self)
91
- VALUE self;
84
+ rbatk_get_toolkit_version(VALUE self)
92
85
  {
93
86
  return CSTR2RVAL(atk_get_toolkit_version());
94
87
  }
@@ -14,8 +14,7 @@
14
14
  #define _SELF(s) (ATK_VALUE(RVAL2GOBJ(s)))
15
15
 
16
16
  static VALUE
17
- rbatk_value_get_current_value(self)
18
- VALUE self;
17
+ rbatk_value_get_current_value(VALUE self)
19
18
  {
20
19
  GValue gval = {0,};
21
20
  atk_value_get_current_value(_SELF(self), &gval);
@@ -25,8 +24,7 @@ rbatk_value_get_current_value(self)
25
24
 
26
25
 
27
26
  static VALUE
28
- rbatk_value_get_maximum_value(self)
29
- VALUE self;
27
+ rbatk_value_get_maximum_value(VALUE self)
30
28
  {
31
29
  GValue gval = {0,};
32
30
  atk_value_get_maximum_value(_SELF(self), &gval);
@@ -35,8 +33,7 @@ rbatk_value_get_maximum_value(self)
35
33
  }
36
34
 
37
35
  static VALUE
38
- rbatk_value_get_minimum_value(self)
39
- VALUE self;
36
+ rbatk_value_get_minimum_value(VALUE self)
40
37
  {
41
38
  GValue gval = {0,};
42
39
  atk_value_get_minimum_value(_SELF(self), &gval);
@@ -45,8 +42,7 @@ rbatk_value_get_minimum_value(self)
45
42
  }
46
43
 
47
44
  static VALUE
48
- rbatk_value_set_current_value(self, value)
49
- VALUE self, value;
45
+ rbatk_value_set_current_value(VALUE self, VALUE value)
50
46
  {
51
47
  GValue gval = {0,};
52
48
  g_value_init(&gval, RVAL2GTYPE(value));
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 377
4
+ hash: 359
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 90
9
- - 7
10
- version: 0.90.7
9
+ - 8
10
+ version: 0.90.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - The Ruby-GNOME2 Proejct Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-02 00:00:00 +09:00
18
+ date: 2011-03-04 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 377
29
+ hash: 359
30
30
  segments:
31
31
  - 0
32
32
  - 90
33
- - 7
34
- version: 0.90.7
33
+ - 8
34
+ version: 0.90.8
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: Ruby/ATK is a Ruby binding of ATK-1.0.x.
@@ -61,7 +61,6 @@ files:
61
61
  - ext/atk/rbatkimage.c
62
62
  - ext/atk/rbatkdocument.c
63
63
  - ext/atk/rbatkrelationset.c
64
- - ext/atk/Makefile
65
64
  - ext/atk/atk.def
66
65
  - ext/atk/rbatkobjectfactory.c
67
66
  - ext/atk/rbatk.c
@@ -77,11 +76,9 @@ files:
77
76
  - ext/atk/rbatkselection.c
78
77
  - ext/atk/rbatk.h
79
78
  - ext/atk/rbatkhypertext.c
80
- - ext/atk/rbatkversion.h
81
79
  - ext/atk/depend
82
80
  - ext/atk/rbatkstate.c
83
81
  - ext/atk/rbatkeditabletext.c
84
- - ext/atk/ruby-atk.pc
85
82
  - ext/atk/rbatknoopobjectfactory.c
86
83
  - ext/atk/rbatkobject.c
87
84
  has_rdoc: true
@@ -1,166 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- #### Start of system configuration section. ####
5
-
6
- srcdir = /home/kou/work/ruby/ruby-gnome2/atk/ext/atk
7
- topdir = /usr/lib/ruby/1.8/x86_64-linux
8
- hdrdir = $(topdir)
9
- VPATH = $(srcdir):$(topdir):$(hdrdir)
10
- exec_prefix = $(prefix)
11
- prefix = $(DESTDIR)/usr
12
- sharedstatedir = $(prefix)/com
13
- mandir = $(prefix)/share/man
14
- psdir = $(docdir)
15
- oldincludedir = $(DESTDIR)/usr/include
16
- localedir = $(datarootdir)/locale
17
- bindir = $(exec_prefix)/bin
18
- libexecdir = $(prefix)/lib/ruby1.8
19
- sitedir = $(DESTDIR)/usr/local/lib/site_ruby
20
- htmldir = $(docdir)
21
- vendorarchdir = $(vendorlibdir)/$(sitearch)
22
- includedir = $(prefix)/include
23
- infodir = $(prefix)/share/info
24
- vendorlibdir = $(vendordir)/$(ruby_version)
25
- sysconfdir = $(DESTDIR)/etc
26
- libdir = $(exec_prefix)/lib
27
- sbindir = $(exec_prefix)/sbin
28
- rubylibdir = $(libdir)/ruby/$(ruby_version)
29
- docdir = $(datarootdir)/doc/$(PACKAGE)
30
- dvidir = $(docdir)
31
- vendordir = $(libdir)/ruby/vendor_ruby
32
- datarootdir = $(prefix)/share
33
- pdfdir = $(docdir)
34
- archdir = $(rubylibdir)/$(arch)
35
- sitearchdir = $(sitelibdir)/$(sitearch)
36
- datadir = $(datarootdir)
37
- localstatedir = $(DESTDIR)/var
38
- sitelibdir = $(sitedir)/$(ruby_version)
39
-
40
- CC = gcc
41
- LIBRUBY = $(LIBRUBY_SO)
42
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
43
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
44
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
45
-
46
- RUBY_EXTCONF_H =
47
- CFLAGS = -fPIC -fno-strict-aliasing -g -g -O2 -fPIC $(cflags) -Wall -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
48
- INCFLAGS = -I. -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/ruby-gnome2/atk/ext/atk
49
- DEFS =
50
- CPPFLAGS = -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DHAVE_ATK_ACTION_GET_LOCALIZED_NAME -DHAVE_ATK_HYPERLINK_IS_INLINE -DHAVE_ATK_OBJECT_ADD_RELATIONSHIP -DHAVE_ATK_OBJECT_REMOVE_RELATIONSHIP -DHAVE_ATK_COMPONENT_GET_LAYER -DHAVE_ATK_COMPONENT_GET_MDI_ZORDER -DHAVE_ATK_HYPERLINK_IS_SELECTED_LINK -DHAVE_ATK_TEXT_GET_BOUNDED_RANGES -DHAVE_ATK_ROLE_GET_LOCALIZED_NAME -DHAVE_ATK_TEXT_CLIP_TYPE_GET_TYPE -DHAVE_ATK_TEXT_FREE_RANGES -DRUBY_ATK_COMPILATION
51
- CXXFLAGS = $(CFLAGS)
52
- ldflags = -L. -rdynamic -Wl,-export-dynamic -pthread
53
- dldflags =
54
- archflag =
55
- DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
56
- LDSHARED = $(CC) -shared
57
- AR = ar
58
- EXEEXT =
59
-
60
- RUBY_INSTALL_NAME = ruby1.8
61
- RUBY_SO_NAME = ruby1.8
62
- arch = x86_64-linux
63
- sitearch = x86_64-linux
64
- ruby_version = 1.8
65
- ruby = /usr/bin/ruby1.8
66
- RUBY = $(ruby)
67
- RM = rm -f
68
- MAKEDIRS = mkdir -p
69
- INSTALL = /usr/bin/install -c
70
- INSTALL_PROG = $(INSTALL) -m 0755
71
- INSTALL_DATA = $(INSTALL) -m 644
72
- COPY = cp
73
-
74
- #### End of system configuration section. ####
75
-
76
- preload =
77
-
78
- libpath = . $(libdir)
79
- LIBPATH = -L. -L$(libdir)
80
- DEFFILE =
81
-
82
- CLEANFILES = mkmf.log
83
- DISTCLEANFILES = rbatkinits.c rbatkversion.h
84
-
85
- extout =
86
- extout_prefix =
87
- target_prefix =
88
- LOCAL_LIBS =
89
- LIBS = $(LIBRUBYARG_SHARED) -latk-1.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt -lpthread -lrt -ldl -lcrypt -lm -lc
90
- SRCS = rbatkutil.c rbatknoopobject.c rbatkgobjectaccessible.c rbatkinits.c rbatkhyperlink.c rbatkcomponent.c rbatktext.c rbatkstateset.c rbatkregistry.c rbatkimage.c rbatkdocument.c rbatkrelationset.c rbatkobjectfactory.c rbatk.c rbatkstreamablecontent.c rbatkimplementor.c rbatkvalue.c rbatkrelation.c rbatkaction.c rbatktable.c rbatktextrange.c rbatktextrectangle.c rbatkselection.c rbatkhypertext.c rbatkstate.c rbatkeditabletext.c rbatknoopobjectfactory.c rbatkobject.c
91
- OBJS = rbatkutil.o rbatknoopobject.o rbatkgobjectaccessible.o rbatkinits.o rbatkhyperlink.o rbatkcomponent.o rbatktext.o rbatkstateset.o rbatkregistry.o rbatkimage.o rbatkdocument.o rbatkrelationset.o rbatkobjectfactory.o rbatk.o rbatkstreamablecontent.o rbatkimplementor.o rbatkvalue.o rbatkrelation.o rbatkaction.o rbatktable.o rbatktextrange.o rbatktextrectangle.o rbatkselection.o rbatkhypertext.o rbatkstate.o rbatkeditabletext.o rbatknoopobjectfactory.o rbatkobject.o
92
- TARGET = atk
93
- DLLIB = $(TARGET).so
94
- EXTSTATIC =
95
- STATIC_LIB =
96
-
97
- BINDIR = $(bindir)
98
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
99
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
100
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
101
-
102
- TARGET_SO = $(DLLIB)
103
- CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
104
- CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
105
-
106
- all: $(DLLIB)
107
- static: $(STATIC_LIB)
108
-
109
- clean:
110
- @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
111
-
112
- distclean: clean
113
- @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
114
- @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
115
-
116
- realclean: distclean
117
- install: install-so install-rb
118
-
119
- install-so: $(RUBYARCHDIR)
120
- install-so: $(RUBYARCHDIR)/$(DLLIB)
121
- $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
122
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
123
- install-rb: pre-install-rb install-rb-default
124
- install-rb-default: pre-install-rb-default
125
- pre-install-rb: Makefile
126
- pre-install-rb-default: Makefile
127
- $(RUBYARCHDIR):
128
- $(MAKEDIRS) $@
129
-
130
- site-install: site-install-so site-install-rb
131
- site-install-so: install-so
132
- site-install-rb: install-rb
133
-
134
- .SUFFIXES: .c .m .cc .cxx .cpp .C .o
135
-
136
- .cc.o:
137
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
138
-
139
- .cxx.o:
140
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
141
-
142
- .cpp.o:
143
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
144
-
145
- .C.o:
146
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
147
-
148
- .c.o:
149
- $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
150
-
151
- $(DLLIB): $(OBJS) Makefile
152
- @-$(RM) $@
153
- $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
154
-
155
-
156
-
157
- ###
158
- install-so:
159
- $(INSTALL_DATA) $(srcdir)/rbatk.h $(RUBYARCHDIR)
160
- $(INSTALL_DATA) rbatkversion.h $(RUBYARCHDIR)
161
-
162
- install:
163
- if test -n "$(pkgconfigdir)"; then \
164
- $(MAKEDIRS) $(pkgconfigdir); \
165
- $(INSTALL_DATA) ruby-atk.pc $(pkgconfigdir); \
166
- fi