goocanvas 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/goocanvas/rbgoocanvas.c +10 -0
  2. metadata +7 -7
@@ -152,6 +152,15 @@ rg_get_item_at(VALUE self, VALUE x, VALUE y, VALUE b)
152
152
  return GOBJ2RVAL(item);
153
153
  }
154
154
 
155
+ static VALUE
156
+ rg_get_items_at(VALUE self, VALUE x, VALUE y, VALUE b)
157
+ {
158
+ return GLIST2ARYF(goo_canvas_get_items_at(SELF(self),
159
+ NUM2DBL(x),
160
+ NUM2DBL(y),
161
+ RVAL2CBOOL(b)));
162
+ }
163
+
155
164
  static VALUE
156
165
  rg_bounds(VALUE self)
157
166
  {
@@ -188,6 +197,7 @@ Init_goocanvas(void)
188
197
  RG_DEF_METHOD(convert_from_pixels, 2);
189
198
  RG_DEF_METHOD(convert_to_pixels, 2);
190
199
  RG_DEF_METHOD(get_item_at, 3);
200
+ RG_DEF_METHOD(get_items_at, 3);
191
201
 
192
202
  Init_goocanvasitem(mGoo); /* Goo::CanvasItem */
193
203
  Init_goocanvastext(mGoo); /* Goo::CanvasText */
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goocanvas
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - The Ruby-GNOME2 Project Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-24 00:00:00 Z
18
+ date: 2013-01-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: gtk2
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 31
28
+ hash: 29
29
29
  segments:
30
30
  - 1
31
31
  - 2
32
- - 0
33
- version: 1.2.0
32
+ - 1
33
+ version: 1.2.1
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  description: Ruby/GooCanvas is a Ruby binding of GooCanvas.