clutter-gtk 2.2.5 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -5
  3. data/lib/clutter-gtk.rb +15 -2
  4. data/test/run-test.rb +11 -3
  5. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da1508797d3c896cc0b1c2d1a603bbee590fce9f
4
- data.tar.gz: fdaa9d126556fe67872fbc27f25b7a7fbf91866f
3
+ metadata.gz: 92c21919e0d10a8d82ced55f4849406416501846
4
+ data.tar.gz: 920796ee0f1ac385013639a2d865f8e574886ef6
5
5
  SHA512:
6
- metadata.gz: 12e237b832eb77c37676339c29169b2b7cdc122ec4f2e5cc9818ca84d42b339011f30a34d8ce0d264f5ad456f59af35421ae18711b71a1bf5feefcd0d3d1d464
7
- data.tar.gz: 22a8c1df767a7e1fe000e00f79528483f3b907241023635b15cb684662e65b0c43ab5b90f114a7d91322d7a607cc592cf681c5e389bc1d1b6b4bfa712056dc43
6
+ metadata.gz: 09e831a3d89429d7fc02f457fd77de9ab73d1b9e75912da5d91be834775c2139469018b75b2c88cefe095e43c857393d8976fee7183c51d64f3cd2bcd41dcc76
7
+ data.tar.gz: 681ed6dc09923eec2584c08b949842e1eea875458407a6e9e196234552544642f5b0dcb6688c4a75a2040de19ec083838af9298c4bd2d6d8782da01e3810873c
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -47,17 +47,15 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
47
47
  :name => "clutter-gtk",
48
48
  :download_site => :gnome,
49
49
  :label => "Clutter-GTK",
50
- :version => "1.6.0",
50
+ :version => "1.6.2",
51
51
  :compression_method => "xz",
52
52
  :windows => {
53
53
  :configure_args => [
54
54
  "--enable-introspection",
55
55
  ],
56
56
  :patches => [
57
- "0001-actor-fix-clutter-win32.h-include-path.patch",
58
- "0001-Use-no-undefined-ld-flag.patch",
59
57
  ],
60
- :need_autoreconf => true,
58
+ # :need_autoreconf => true,
61
59
  :built_file => "bin/libclutter-gtk-1.0-0.dll",
62
60
  },
63
61
  }
data/lib/clutter-gtk.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -43,8 +43,9 @@ module ClutterGtk
43
43
  remove_method(:init)
44
44
  remove_method(:const_missing)
45
45
  end
46
+ Gtk.init if Gtk.respond_to?(:init)
46
47
  loader = Loader.new(self, argv)
47
- loader.load("GtkClutter")
48
+ loader.load
48
49
  Clutter.init(argv) if Clutter.respond_to?(:init)
49
50
  end
50
51
  end
@@ -53,11 +54,17 @@ module ClutterGtk
53
54
  class InitError < StandardError
54
55
  end
55
56
 
57
+ NAMESPACE = "GtkClutter"
58
+
56
59
  def initialize(base_module, init_arguments)
57
60
  super(base_module)
58
61
  @init_arguments = init_arguments
59
62
  end
60
63
 
64
+ def load
65
+ super(NAMESPACE)
66
+ end
67
+
61
68
  private
62
69
  def pre_load(repository, namespace)
63
70
  init = repository.find(namespace, "init")
@@ -73,5 +80,11 @@ module ClutterGtk
73
80
 
74
81
  def post_load(repository, namespace)
75
82
  end
83
+
84
+ def initialize_post(object)
85
+ super
86
+ return unless object.is_a?(GLib::Object)
87
+ self.class.reference_gobject(object, :sink => true)
88
+ end
76
89
  end
77
90
  end
data/test/run-test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2012-2013 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2012-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -27,6 +27,7 @@ pango_base = File.join(ruby_gnome2_base, "pango")
27
27
  gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
28
28
  cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
29
29
  gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
30
+ gio_base = File.join(ruby_gnome2_base, "gio2")
30
31
  clutter_base = File.join(ruby_gnome2_base, "clutter")
31
32
  gdk3_base = File.join(ruby_gnome2_base, "gdk3")
32
33
  gtk3_base = File.join(ruby_gnome2_base, "gtk3")
@@ -39,6 +40,7 @@ modules = [
39
40
  [gdk_pixbuf_base, "gdk_pixbuf2"],
40
41
  [cairo_gobject_base, "cairo-gobject"],
41
42
  [gobject_introspection_base, "gobject-introspection"],
43
+ [gio_base, "gio2"],
42
44
  [clutter_base, "clutter"],
43
45
  [gdk3_base, "gdk3"],
44
46
  [gtk3_base, "gtk3"],
@@ -55,8 +57,6 @@ end
55
57
  $LOAD_PATH.unshift(File.join(glib_base, "test"))
56
58
  require "glib-test-init"
57
59
 
58
- $VERBOSE = false # TODO: remove me
59
-
60
60
  $LOAD_PATH.unshift(File.join(gobject_introspection_base, "test"))
61
61
  require "gobject-introspection-test-utils"
62
62
 
@@ -68,6 +68,14 @@ require "clutter-gtk-test-utils"
68
68
 
69
69
  require "clutter-gtk"
70
70
 
71
+ repository = GObjectIntrospection::Repository.default
72
+ begin
73
+ repository.require(ClutterGtk::Loader::NAMESPACE)
74
+ rescue GLib::Error
75
+ puts("Omit because typelib file doesn't exist: #{$!.message}")
76
+ exit(true)
77
+ end
78
+
71
79
  # exclude sample/test-*
72
80
  clutter_gtk_test_base = File.join(clutter_gtk_base, "test")
73
81
  exit Test::Unit::AutoRunner.run(true, clutter_gtk_test_base)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clutter-gtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clutter
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.5
19
+ version: 3.0.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.5
26
+ version: 3.0.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gtk3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.5
33
+ version: 3.0.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.5
40
+ version: 3.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: test-unit-notify
43
43
  requirement: !ruby/object:Gem::Requirement