Skip to content

Commit

Permalink
clutter-gtk: fix initialization order
Browse files Browse the repository at this point in the history
Clutter-GTK must be initialized before Clutter. Clutter-GTK initializes
Clutter internally. And Clutter initialization can be called n-times. If
two or more Clutter initialization are just ignored.

GitHub: fix #274

Reported by mtasaka. Thanks!!!
  • Loading branch information
kou committed Nov 30, 2014
1 parent 9322e8d commit 3feb33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clutter-gtk/lib/clutter-gtk.rb
Expand Up @@ -43,9 +43,9 @@ class << self
remove_method(:init)
remove_method(:const_missing)
end
Clutter.init(argv) if Clutter.respond_to?(:init)
loader = Loader.new(self, argv)
loader.load("GtkClutter")
Clutter.init(argv) if Clutter.respond_to?(:init)
end
end

Expand Down

0 comments on commit 3feb33d

Please sign in to comment.