goocanvas 1.0.3-x86-mingw32 → 1.1.0-x86-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.
@@ -1,31 +1,34 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /* $Id: rbgoocanvastext.c 3288 2008-09-13 10:07:44Z ktou $ */
3
- /* GooCanvasText
4
- * Copyright (C) 2007 Vincent Isambart <vincent.isambart@gmail.com>
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2007 Vincent Isambart <vincent.isambart@gmail.com>
5
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.
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
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.
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
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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
19
20
  */
20
21
 
21
- #include "rbgoocanvas.h"
22
+ #include "rbgoocanvasprivate.h"
23
+
24
+ #define RG_TARGET_NAMESPACE cCanvasText
22
25
 
23
26
  static VALUE
24
- rb_goo_canvas_text_new(VALUE self, VALUE parent, VALUE string,
27
+ rg_initialize(VALUE self, VALUE parent, VALUE string,
25
28
  VALUE x, VALUE y, VALUE width, VALUE anchor)
26
29
  {
27
30
  GooCanvasItem *item;
28
- item = goo_canvas_text_new(RVAL2GCI(parent),
31
+ item = goo_canvas_text_new(RVAL2GOOCANVASITEM(parent),
29
32
  NIL_P(string) ? NULL : StringValueCStr(string),
30
33
  NUM2DBL(x),
31
34
  NUM2DBL(y),
@@ -38,21 +41,11 @@ rb_goo_canvas_text_new(VALUE self, VALUE parent, VALUE string,
38
41
  }
39
42
 
40
43
  void
41
- Init_goocanvastext(void)
44
+ Init_goocanvastext(VALUE mGoo)
42
45
  {
43
- VALUE GooCanvasText;
44
-
45
- GooCanvasText = G_DEF_CLASS(GOO_TYPE_CANVAS_TEXT, "CanvasText", mGoo);
46
+ VALUE RG_TARGET_NAMESPACE;
46
47
 
47
- rb_define_method(GooCanvasText, "initialize", rb_goo_canvas_text_new, 6);
48
+ RG_TARGET_NAMESPACE = G_DEF_CLASS(GOO_TYPE_CANVAS_TEXT, "CanvasText", mGoo);
48
49
 
49
- #if 0
50
- GooCanvasItemModel* goo_canvas_text_model_new (GooCanvasItemModel *parent,
51
- const char *string,
52
- gdouble x,
53
- gdouble y,
54
- gdouble width,
55
- GtkAnchorType anchor,
56
- ...);
57
- #endif
50
+ RG_DEF_METHOD(initialize, 6);
58
51
  }
@@ -1,32 +1,35 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /* $Id: rbgoocanvaswidget.c 3288 2008-09-13 10:07:44Z ktou $ */
3
- /* GooCanvasWidget
4
- * Copyright (C) 2007 Vincent Isambart <vincent.isambart@gmail.com>
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2007 Vincent Isambart <vincent.isambart@gmail.com>
5
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.
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
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.
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
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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
19
20
  */
20
21
 
21
- #include "rbgoocanvas.h"
22
+ #include "rbgoocanvasprivate.h"
23
+
24
+ #define RG_TARGET_NAMESPACE cCanvasWidget
22
25
 
23
26
  static VALUE
24
- rb_goo_canvas_widget_new(VALUE self, VALUE parent, VALUE widget,
27
+ rg_initialize(VALUE self, VALUE parent, VALUE widget,
25
28
  VALUE x, VALUE y, VALUE width, VALUE height)
26
29
  {
27
30
  GooCanvasItem *item;
28
- item = goo_canvas_widget_new(RVAL2GCI(parent),
29
- RVAL2GTK_WIDGET(widget),
31
+ item = goo_canvas_widget_new(RVAL2GOOCANVASITEM(parent),
32
+ RVAL2GTKWIDGET(widget),
30
33
  NUM2DBL(x),
31
34
  NUM2DBL(y),
32
35
  NUM2DBL(width),
@@ -38,11 +41,11 @@ rb_goo_canvas_widget_new(VALUE self, VALUE parent, VALUE widget,
38
41
  }
39
42
 
40
43
  void
41
- Init_goocanvaswidget(void)
44
+ Init_goocanvaswidget(VALUE mGoo)
42
45
  {
43
- VALUE GooCanvasWidget;
46
+ VALUE RG_TARGET_NAMESPACE;
44
47
 
45
- GooCanvasWidget = G_DEF_CLASS(GOO_TYPE_CANVAS_WIDGET, "CanvasWidget", mGoo);
48
+ RG_TARGET_NAMESPACE = G_DEF_CLASS(GOO_TYPE_CANVAS_WIDGET, "CanvasWidget", mGoo);
46
49
 
47
- rb_define_method(GooCanvasWidget, "initialize", rb_goo_canvas_widget_new, 6);
50
+ RG_DEF_METHOD(initialize, 6);
48
51
  }
@@ -1,24 +1,25 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /* $Id: rbgooutils.c 3426 2008-11-01 14:20:52Z ktou $ */
3
- /* Utility functions
4
- * Copyright (C) 2007 Vincent Isambart <vincent.isambart@gmail.com>
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2007 Vincent Isambart <vincent.isambart@gmail.com>
5
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.
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
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.
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
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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
19
20
  */
20
21
 
21
- #include "rbgoocanvas.h"
22
+ #include "rbgoocanvasprivate.h"
22
23
 
23
24
  GooCanvasBounds *
24
25
  ruby_to_goo_canvas_bounds(VALUE rb_bounds, GooCanvasBounds *dest_bounds)
data/lib/1.8/goocanvas.so CHANGED
Binary file
data/lib/1.9/goocanvas.so CHANGED
Binary file
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goocanvas
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: x86-mingw32
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: gtk2
@@ -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/GooCanvas is a Ruby binding of GooCanvas.
@@ -42,20 +42,24 @@ extensions: []
42
42
  extra_rdoc_files: []
43
43
 
44
44
  files:
45
- - ChangeLog
46
45
  - README
47
46
  - Rakefile
48
47
  - extconf.rb
49
48
  - lib/goocanvas.rb
49
+ - ext/goocanvas/rbgoocairomatrix.c
50
50
  - ext/goocanvas/rbgoocanvastext.c
51
+ - ext/goocanvas/rbgoocairopattern.c
52
+ - ext/goocanvas/rbgoocanvasconversions.h
51
53
  - ext/goocanvas/rbgoocanvasimage.c
52
54
  - ext/goocanvas/rbgoocanvastable.c
53
55
  - ext/goocanvas/rbgooutils.c
54
56
  - ext/goocanvas/rbgoocanvas.c
55
57
  - ext/goocanvas/rbgoocanvaspolyline.c
56
- - ext/goocanvas/rbgoocairo.c
58
+ - ext/goocanvas/rbgoocanvaspoints.c
57
59
  - ext/goocanvas/extconf.rb
60
+ - ext/goocanvas/rbgoocanvasprivate.h
58
61
  - ext/goocanvas/goocanvas.def
62
+ - ext/goocanvas/rbgoo.c
59
63
  - ext/goocanvas/rbgoocanvasrect.c
60
64
  - ext/goocanvas/rbgoocanvasellipse.c
61
65
  - ext/goocanvas/rbgoocanvasitem.c
@@ -208,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
212
  requirements: []
209
213
 
210
214
  rubyforge_project:
211
- rubygems_version: 1.7.2
215
+ rubygems_version: 1.8.12
212
216
  signing_key:
213
217
  specification_version: 3
214
218
  summary: Ruby/GooCanvas is a Ruby binding of GooCanvas.
data/ChangeLog DELETED
@@ -1,97 +0,0 @@
1
- 2011-08-19 Kouhei Sutou <kou@cozmixng.org>
2
-
3
- * lib/goocanvas.rb: support binary bundled gem.
4
- Patch by HAYASHI Kentaro. Thanks!!!
5
-
6
- 2011-02-12 Kouhei Sutou <kou@cozmixng.org>
7
-
8
- * ext/goocanvas/depend: fix .pc path. #3178294
9
- Reported by OBATA Akio. Thanks!!!
10
-
11
- 2011-01-30 Kouhei Sutou <kou@cozmixng.org>
12
-
13
- * ./: support gem for Windows build.
14
-
15
- 2011-01-28 Masaaki Aoyagi
16
-
17
- * src/lib/: -> lib/.
18
-
19
- * src/: -> ext/goocanvas/.
20
-
21
- * extconf.rb: -> ext/goocanvas/extconf.rb
22
-
23
- * ext/goocanvas/extconf.rb: support directory structure change.
24
-
25
- * extconf.rb: add.
26
-
27
- * Rakefile: add.
28
-
29
- 2010-09-23 Kouhei Sutou <kou@cozmixng.org>
30
-
31
- * extconf.rb: support Ruby/GLib2 directory structure change.
32
-
33
- 2008-11-01 Kouhei Sutou <kou@cozmixng.org>
34
-
35
- * src/: use RARRAY_PTR() and RARRAY_LEN().
36
-
37
- 2008-09-30 yselkowitz
38
-
39
- * extconf.rb: add missing dependencies.
40
-
41
- 2008-09-14 Kouhei Sutou <kou@cozmixng.org>
42
-
43
- * extconf.rb: fix path.
44
-
45
- 2008-09-13 Kouhei Sutou <kou@cozmixng.org>
46
-
47
- * extconf.rb: use check_cairo.
48
-
49
- * /: move to The Ruby-GNOME2 Project.
50
-
51
- 2008-08-16 Kouhei Sutou <kou@cozmixng.org>
52
-
53
- * sample/demo-primitives.rb: update menu widgets to follow the
54
- latest original demo.
55
-
56
- * sample/demo-primitives.rb: TAB -> 2 spaces.
57
-
58
- 2008-07-21 Kouhei Sutou <kou@cozmixng.org>
59
-
60
- * src/rbgoocairo.c (rb_cairo_pattern_to_goo)
61
- (rb_cairo_matrix_to_goo): fix a reference count bug.
62
-
63
- * sample/demo-fifteen.rb (CanvasSampleFifteen#scramble): fix broken.
64
-
65
- * src/rbgoocanvas.c: bind Goo::Canvas#scroll_to.
66
-
67
- 2008-06-27 Kouhei Sutou <kou@cozmixng.org>
68
-
69
- * sample/demo.rb: support quiting by C-q.
70
-
71
- * sample/demo.rb: set $LOAD_PATH.
72
-
73
- 2007-06-22 Kouhei Sutou <kou@cozmixng.org>
74
-
75
- * src/:
76
- - cleanup macros.
77
- - cleanup styles.
78
-
79
- * src/rbgoocanvasitem.c:
80
- - fixed style.
81
- - used more self-describing macro.
82
-
83
- * README: added.
84
-
85
- 2007-05-02 Kouhei Sutou <kou@cozmixng.org>
86
-
87
- * sample/demo.rb: cleanup.
88
-
89
- * extconf.rb, src/rbgoocairo.c: required >= 0.8.0.
90
-
91
- * sample/demo.rb: untabified.
92
-
93
- * extconf.rb: supported GooCanvas version check in C.
94
-
95
- * src/rbgoocanvas.h, src/rbgoocairo.c: supported build with
96
- GooCanvas 0.6.0.
97
-
@@ -1,74 +0,0 @@
1
- /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /* $Id: rbgoocairo.c 3288 2008-09-13 10:07:44Z ktou $ */
3
- /* convertion from Cairo types to GooCairo types
4
- * Copyright (C) 2007 Vincent Isambart <vincent.isambart@gmail.com>
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
- */
20
-
21
- #include "rbgoocanvas.h"
22
-
23
- static VALUE
24
- rb_cairo_pattern_to_goo(VALUE self)
25
- {
26
- GValue gval = {0,};
27
- VALUE result;
28
-
29
- g_value_init(&gval, GOO_TYPE_CAIRO_PATTERN);
30
- g_value_set_boxed(&gval, RVAL2CRPATTERN(self));
31
-
32
- result = rbgobj_gvalue_to_rvalue(&gval);
33
- g_value_unset(&gval);
34
-
35
- return result;
36
- }
37
-
38
- static VALUE
39
- rb_cairo_matrix_to_goo(VALUE self)
40
- {
41
- GValue gval = {0,};
42
- VALUE result;
43
-
44
- g_value_init(&gval, GOO_TYPE_CAIRO_MATRIX);
45
- g_value_set_boxed(&gval, RVAL2CRMATRIX(self));
46
-
47
- result = rbgobj_gvalue_to_rvalue(&gval);
48
- g_value_unset(&gval);
49
-
50
- return result;
51
- }
52
-
53
- void
54
- Init_goocairo(void)
55
- {
56
- VALUE Cairo, CairoPattern, CairoMatrix;
57
-
58
- G_DEF_CLASS(GOO_TYPE_CAIRO_MATRIX, "CairoMatrix", mGoo);
59
- G_DEF_CLASS(GOO_TYPE_CAIRO_PATTERN, "CairoPattern", mGoo);
60
- G_DEF_CLASS(GOO_TYPE_CAIRO_FILL_RULE, "CairoFillRule", mGoo);
61
- G_DEF_CLASS(GOO_TYPE_CAIRO_OPERATOR, "CairoOperator", mGoo);
62
- G_DEF_CLASS(GOO_TYPE_CAIRO_ANTIALIAS, "CairoAntiAlias", mGoo);
63
- G_DEF_CLASS(GOO_TYPE_CAIRO_LINE_CAP, "CairoLineCap", mGoo);
64
- G_DEF_CLASS(GOO_TYPE_CAIRO_LINE_JOIN, "CairoLineJoin", mGoo);
65
- G_DEF_CLASS(GOO_TYPE_CAIRO_HINT_METRICS, "CairoHintMetrics", mGoo);
66
-
67
- Cairo = rb_const_get(rb_mKernel, rb_intern("Cairo"));
68
-
69
- CairoPattern = rb_const_get(Cairo, rb_intern("Pattern"));
70
- rb_define_method(CairoPattern, "to_goo", rb_cairo_pattern_to_goo, 0);
71
-
72
- CairoMatrix = rb_const_get(Cairo, rb_intern("Matrix"));
73
- rb_define_method(CairoMatrix, "to_goo", rb_cairo_matrix_to_goo, 0);
74
- }