goocanvas 1.1.9 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/sample/goocanvas-gi.rb +41 -0
  2. metadata +10 -9
@@ -0,0 +1,41 @@
1
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ require "gtk3"
18
+ require "gobject-introspection"
19
+
20
+ base_dir = Pathname.new(__FILE__).dirname.dirname.dirname.expand_path
21
+ vendor_dir = base_dir + "vendor" + "local"
22
+ vendor_bin_dir = vendor_dir + "bin"
23
+ GLib.prepend_environment_path(vendor_bin_dir)
24
+
25
+ module Goo
26
+ LOG_DOMAIN = "GooCanvas"
27
+ GLib::Log.set_log_domain(LOG_DOMAIN)
28
+
29
+ class << self
30
+ @initialized = false
31
+ def init
32
+ return if @initialized
33
+ @initialized = true
34
+ loader = Loader.new(self)
35
+ loader.load("GooCanvas")
36
+ end
37
+ end
38
+
39
+ class Loader < GObjectIntrospection::Loader
40
+ end
41
+ end
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: 1
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 1
9
- - 9
10
- version: 1.1.9
8
+ - 2
9
+ - 0
10
+ version: 1.2.0
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: 2012-12-30 00:00:00 Z
18
+ date: 2013-01-24 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: 1
28
+ hash: 31
29
29
  segments:
30
30
  - 1
31
- - 1
32
- - 9
33
- version: 1.1.9
31
+ - 2
32
+ - 0
33
+ version: 1.2.0
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  description: Ruby/GooCanvas is a Ruby binding of GooCanvas.
@@ -69,6 +69,7 @@ files:
69
69
  - ext/goocanvas/depend
70
70
  - ext/goocanvas/rbgoocanvasgroup.c
71
71
  - sample/toroid.png
72
+ - sample/goocanvas-gi.rb
72
73
  - sample/flower.png
73
74
  - sample/demo-fifteen.rb
74
75
  - sample/table-demo.rb