clutter-gtk 2.0.0-x86-mingw32 → 2.0.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -55,7 +55,9 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
55
55
  ],
56
56
  :patches => [
57
57
  "0001-actor-fix-clutter-win32.h-include-path.patch",
58
- ]
58
+ "0001-Use-no-undefined-ld-flag.patch",
59
+ ],
60
+ :need_autoreconf => true,
59
61
  },
60
62
  }
61
63
  ]
data/lib/clutter-gtk.rb CHANGED
@@ -28,14 +28,24 @@ module ClutterGtk
28
28
  LOG_DOMAIN = "Clutter-Gtk"
29
29
  GLib::Log.set_log_domain(LOG_DOMAIN)
30
30
 
31
- @initialized = false
32
31
  class << self
33
- def init(argv=ARGV)
34
- return if @initialized
35
- @initialized = true
32
+ def const_missing(name)
33
+ init()
34
+ if const_defined?(name)
35
+ const_get(name)
36
+ else
37
+ super
38
+ end
39
+ end
40
+
41
+ def init(argv=[])
36
42
  loader = Loader.new(self, argv)
37
43
  loader.load("GtkClutter")
38
44
  Clutter.init(argv)
45
+ class << self
46
+ remove_method(:init)
47
+ remove_method(:const_missing)
48
+ end
39
49
  end
40
50
  end
41
51
 
@@ -51,8 +61,11 @@ module ClutterGtk
51
61
  private
52
62
  def pre_load(repository, namespace)
53
63
  init = repository.find(namespace, "init")
54
- error, argc, argv = init.invoke(1 + @init_arguments.size,
55
- [$0] + @init_arguments)
64
+ arguments = [
65
+ 1 + @init_arguments.size,
66
+ [$0] + @init_arguments,
67
+ ]
68
+ error, argc, argv = init.invoke(arguments)
56
69
  @init_arguments.replace(argv)
57
70
  if error.to_i <= 0
58
71
  raise InitError, "failed to initialize Clutter: #{error.name}"
data/sample/events.rb CHANGED
@@ -26,8 +26,6 @@
26
26
  require "clutter-gtk"
27
27
  require "gdk_pixbuf2"
28
28
 
29
- ClutterGtk.init
30
-
31
29
  window = Gtk::Window.new
32
30
  window.title = "Gtk-Clutter Interaction demo"
33
31
  window.set_default_size(800, 600)
data/sample/multistage.rb CHANGED
@@ -23,8 +23,6 @@
23
23
  require "clutter-gtk"
24
24
  require "gdk_pixbuf2"
25
25
 
26
- ClutterGtk.init
27
-
28
26
  window = Gtk::Window.new
29
27
  window.set_default_size(600, 400)
30
28
  window.title = "Multiple GtkClutterEmbed"
@@ -78,99 +76,3 @@ end
78
76
  window.show_all
79
77
 
80
78
  Gtk.main
81
-
82
- __END__
83
- #include <gtk/gtk.h>
84
- #include <clutter/clutter.h>
85
-
86
- #include <clutter-gtk/clutter-gtk.h>
87
-
88
- static void
89
- on_stage2_allocation_changed (ClutterActor *stage_2,
90
- const ClutterActorBox *allocation,
91
- ClutterAllocationFlags flags,
92
- ClutterActor *texture_2)
93
- {
94
- clutter_actor_set_position (texture_2,
95
- (allocation->x2 - allocation->x1) / 2,
96
- (allocation->y2 - allocation->y1) / 2);
97
- }
98
-
99
- int
100
- main (int argc, char *argv[])
101
- {
102
- ClutterActor *stage0, *stage1, *stage2, *tex1, *tex2;
103
- GtkWidget *window, *clutter0, *clutter1, *clutter2;
104
- GtkWidget *notebook, *vbox;
105
- ClutterColor col0 = { 0xdd, 0xff, 0xdd, 0xff };
106
- ClutterColor col1 = { 0xff, 0xff, 0xff, 0xff };
107
- ClutterColor col2 = { 0, 0, 0, 0xff };
108
-
109
- if (gtk_clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
110
- g_error ("Unable to initialize GtkClutter");
111
-
112
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
113
- gtk_window_set_default_size (GTK_WINDOW (window), 600, 400);
114
- gtk_window_set_title (GTK_WINDOW (window), "Multiple GtkClutterEmbed");
115
- g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
116
-
117
- notebook = gtk_notebook_new ();
118
- gtk_container_add (GTK_CONTAINER (window), notebook);
119
-
120
- clutter0 = gtk_clutter_embed_new ();
121
- gtk_notebook_append_page (GTK_NOTEBOOK (notebook), clutter0,
122
- gtk_label_new ("One stage"));
123
- stage0 = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (clutter0));
124
- clutter_actor_set_background_color (stage0, &col0);
125
-
126
- vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
127
- gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox,
128
- gtk_label_new ("Two stages"));
129
-
130
- clutter1 = gtk_clutter_embed_new ();
131
- gtk_widget_set_size_request (clutter1, 320, 240);
132
- stage1 = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (clutter1));
133
- clutter_actor_set_background_color (stage1, &col1);
134
- tex1 = gtk_clutter_texture_new ();
135
- gtk_clutter_texture_set_from_stock (GTK_CLUTTER_TEXTURE (tex1),
136
- clutter1,
137
- GTK_STOCK_DIALOG_INFO,
138
- GTK_ICON_SIZE_DIALOG,
139
- NULL);
140
- clutter_actor_set_anchor_point (tex1,
141
- clutter_actor_get_width (tex1) / 2,
142
- clutter_actor_get_height (tex1) / 2);
143
- clutter_actor_set_position (tex1, 160, 120);
144
- clutter_actor_add_child (stage1, tex1);
145
- clutter_actor_show (tex1);
146
-
147
- gtk_container_add (GTK_CONTAINER (vbox), clutter1);
148
-
149
- clutter2 = gtk_clutter_embed_new ();
150
- gtk_widget_set_size_request (clutter2, 320, 120);
151
- stage2 = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (clutter2));
152
- clutter_actor_set_background_color (stage2, &col2);
153
- tex2 = gtk_clutter_texture_new ();
154
- gtk_clutter_texture_set_from_icon_name (GTK_CLUTTER_TEXTURE (tex2),
155
- clutter1,
156
- "user-info",
157
- GTK_ICON_SIZE_BUTTON,
158
- NULL);
159
- clutter_actor_set_anchor_point (tex2,
160
- clutter_actor_get_width (tex2) / 2,
161
- clutter_actor_get_height (tex2) / 2);
162
- clutter_actor_set_position (tex2, 160, 60);
163
- clutter_actor_add_child (stage2, tex2);
164
-
165
- gtk_container_add (GTK_CONTAINER (vbox), clutter2);
166
-
167
- g_signal_connect (stage2, "allocation-changed",
168
- G_CALLBACK (on_stage2_allocation_changed),
169
- tex2);
170
-
171
- gtk_widget_show_all (window);
172
-
173
- gtk_main();
174
-
175
- return 0;
176
- }
data/sample/test-actor.rb CHANGED
@@ -22,8 +22,6 @@
22
22
 
23
23
  require "clutter-gtk"
24
24
 
25
- ClutterGtk.init
26
-
27
25
  MAX_N_WIDGETS = 4
28
26
  WINDOW_WIDTH = 400
29
27
  WINDOW_HEIGHT = 400
@@ -22,8 +22,6 @@
22
22
 
23
23
  require "clutter-gtk"
24
24
 
25
- ClutterGtk.init
26
-
27
25
  N_WIDGETS = 5
28
26
  WINDOW_WIDTH = 400
29
27
  WINDOW_HEIGHT = 400
data/sample/test.rb CHANGED
@@ -26,8 +26,6 @@
26
26
  require "clutter-gtk"
27
27
  require "gdk_pixbuf2"
28
28
 
29
- ClutterGtk.init
30
-
31
29
  N_HANDS = 4
32
30
  WINDOW_WIDTH = 400
33
31
  WINDOW_HEIGHT = 400
@@ -28,8 +28,6 @@
28
28
  require "clutter-gtk"
29
29
  require "gdk_pixbuf2"
30
30
 
31
- ClutterGtk.init
32
-
33
31
  window = ClutterGtk::Window.new
34
32
  window.signal_connect("destroy") do
35
33
  Gtk.main_quit
@@ -28,8 +28,6 @@
28
28
  require "clutter-gtk"
29
29
  require "gdk_pixbuf2"
30
30
 
31
- ClutterGtk.init
32
-
33
31
  window = ClutterGtk::Window.new
34
32
 
35
33
  table = Gtk::Grid.new
Binary file
@@ -5,27 +5,27 @@
5
5
  # It is necessary for linking the library.
6
6
 
7
7
  # The name that we can dlopen(3).
8
- dlname=''
8
+ dlname='../bin/libclutter-gtk-1.0-0.dll'
9
9
 
10
10
  # Names of this library.
11
- library_names=''
11
+ library_names='libclutter-gtk-1.0.dll.a'
12
12
 
13
13
  # The name of the static archive.
14
- old_library='libclutter-gtk-1.0.a'
14
+ old_library=''
15
15
 
16
16
  # Linker flags that can not go in dependency_libs.
17
17
  inherited_linker_flags=''
18
18
 
19
19
  # Libraries that this one depends upon.
20
- dependency_libs=' -L/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/kou/work/ruby/rcairo.win32/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/clutter-gtk/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/atk/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/pango/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/gdk_pixbuf2/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/clutter/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/gdk3/vendor/local/lib /home/kou/work/ruby/ruby-gnome2.win32/clutter/vendor/local/lib/libclutter-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/clutter/vendor/local/lib/libcogl-pango.la /home/kou/work/ruby/ruby-gnome2.win32/clutter/vendor/local/lib/libjson-glib-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/clutter/vendor/local/lib/libcogl.la -lopengl32 /home/kou/work/ruby/ruby-gnome2.win32/gdk3/vendor/local/lib/libgtk-3.la -lcomdlg32 -lwinspool -lcomctl32 /home/kou/work/ruby/ruby-gnome2.win32/gdk3/vendor/local/lib/libgdk-3.la -limm32 -lshell32 /home/kou/work/ruby/ruby-gnome2.win32/atk/vendor/local/lib/libatk-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/pango/vendor/local/lib/libpangocairo-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/gdk_pixbuf2/vendor/local/lib/libgdk_pixbuf-2.0.la /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgio-2.0.la -ldnsapi -lz -lpng14 -lcairo-gobject /home/kou/work/ruby/ruby-gnome2.win32/pango/vendor/local/lib/libpangowin32-1.0.la -lgdi32 /home/kou/work/ruby/ruby-gnome2.win32/pango/vendor/local/lib/libpango-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgmodule-2.0.la /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgthread-2.0.la -lcairo /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgobject-2.0.la -lffi /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lole32 -lwinmm -lshlwapi -lintl'
20
+ dependency_libs=' -L/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/kou/work/ruby/rcairo.win32/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/clutter-gtk/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/atk/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/pango/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/gdk_pixbuf2/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/clutter/vendor/local/lib -L/home/kou/work/ruby/ruby-gnome2.win32/gdk3/vendor/local/lib /home/kou/work/ruby/ruby-gnome2.win32/clutter/vendor/local/lib/libclutter-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/clutter/vendor/local/lib/libcogl-pango.la /home/kou/work/ruby/ruby-gnome2.win32/clutter/vendor/local/lib/libjson-glib-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/clutter/vendor/local/lib/libcogl.la -lopengl32 /home/kou/work/ruby/ruby-gnome2.win32/gdk3/vendor/local/lib/libgtk-3.la -lcomdlg32 -lwinspool -lcomctl32 /home/kou/work/ruby/ruby-gnome2.win32/gdk3/vendor/local/lib/libgdk-3.la -limm32 -lshell32 /home/kou/work/ruby/ruby-gnome2.win32/atk/vendor/local/lib/libatk-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/pango/vendor/local/lib/libpangocairo-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/gdk_pixbuf2/vendor/local/lib/libgdk_pixbuf-2.0.la /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgio-2.0.la -ldnsapi /home/kou/work/ruby/rcairo.win32/vendor/local/lib/libcairo-gobject.la /home/kou/work/ruby/ruby-gnome2.win32/pango/vendor/local/lib/libpangoft2-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/pango/vendor/local/lib/libharfbuzz.la -lusp10 /home/kou/work/ruby/ruby-gnome2.win32/pango/vendor/local/lib/libpangowin32-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/pango/vendor/local/lib/libpango-1.0.la /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgmodule-2.0.la /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgthread-2.0.la /home/kou/work/ruby/rcairo.win32/vendor/local/lib/libcairo.la /home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpixman-1.la /home/kou/work/ruby/rcairo.win32/vendor/local/lib/libfontconfig.la /home/kou/work/ruby/rcairo.win32/vendor/local/lib/libxml2.la /home/kou/work/ruby/rcairo.win32/vendor/local/lib/libfreetype.la /home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpng16.la -lgdi32 -lmsimg32 -lz /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libgobject-2.0.la -lffi /home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lole32 -lwinmm -lshlwapi -lintl'
21
21
 
22
22
  # Names of additional weak libraries provided by this library
23
23
  weak_library_names=''
24
24
 
25
25
  # Version information for libclutter-gtk-1.0.
26
- current=0
27
- age=0
28
- revision=0
26
+ current=403
27
+ age=403
28
+ revision=1
29
29
 
30
30
  # Is this an already installed library?
31
31
  installed=yes
@@ -12,7 +12,7 @@ and/or use gtk-doc annotations. -->
12
12
  <c:include name="clutter-gtk/clutter-gtk.h"/>
13
13
  <namespace name="GtkClutter"
14
14
  version="1.0"
15
- shared-library=""
15
+ shared-library="libclutter-gtk-1.0-0.dll"
16
16
  c:identifier-prefixes="GtkClutter"
17
17
  c:symbol-prefixes="gtk_clutter">
18
18
  <class name="Actor"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clutter-gtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: x86-mingw32
7
7
  authors:
@@ -9,40 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-29 00:00:00.000000000 Z
12
+ date: 2013-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clutter
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.0.0
21
+ version: 2.0.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.0
29
+ version: 2.0.1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: gtk3
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ! '>='
35
+ - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: 2.0.0
37
+ version: 2.0.1
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ! '>='
43
+ - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: 2.0.0
45
+ version: 2.0.1
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: test-unit-notify
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -77,6 +77,7 @@ files:
77
77
  - sample/window-test2.rb
78
78
  - test/clutter-gtk-test-utils.rb
79
79
  - test/run-test.rb
80
+ - vendor/local/bin/libclutter-gtk-1.0-0.dll
80
81
  - vendor/local/include/clutter-gtk-1.0/clutter-gtk/clutter-gtk.h
81
82
  - vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-actor.h
82
83
  - vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-embed.h
@@ -86,6 +87,7 @@ files:
86
87
  - vendor/local/include/clutter-gtk-1.0/clutter-gtk/gtk-clutter-window.h
87
88
  - vendor/local/lib/girepository-1.0/GtkClutter-1.0.typelib
88
89
  - vendor/local/lib/libclutter-gtk-1.0.a
90
+ - vendor/local/lib/libclutter-gtk-1.0.dll.a
89
91
  - vendor/local/lib/libclutter-gtk-1.0.la
90
92
  - vendor/local/lib/pkgconfig/clutter-gtk-1.0.pc
91
93
  - vendor/local/share/gir-1.0/GtkClutter-1.0.gir