GNOME Bugzilla – Bug 705361
Gjs can't deal with ClutterPaintNode
Last modified: 2013-08-04 22:09:19 UTC
I have the following example that creates an exception in gjs : ============================================================== const GLib = imports.gi.GLib; const GObject = imports.gi.GObject; const Clutter = imports.gi.Clutter; const Lang = imports.lang; let MyContent = new Lang.Class({ Name: 'MyContent', Extends: GObject.Object, Implements: [Clutter.Content], vfunc_paint_content: function(actor, node) { }, }); Clutter.init(null, null); let stage = new Clutter.Stage({ width: 800, height: 600, }); let actor = new Clutter.Actor({ x: 100, y: 100, width: 200, height: 200, content: new ConnectionPath(), }); stage.add_child(actor); stage.show(); Clutter.main(); ============================================================== I can't figure out whether it's a Clutter or Gjs problem :/
My mistake for the previous paste, it contains an error : ============================================================== const GLib = imports.gi.GLib; const GObject = imports.gi.GObject; const Clutter = imports.gi.Clutter; const Lang = imports.lang; let MyContent = new Lang.Class({ Name: 'MyContent', Extends: GObject.Object, Implements: [Clutter.Content], vfunc_paint_content: function(actor, node) { }, }); Clutter.init(null, null); let stage = new Clutter.Stage({ width: 800, height: 600, }); let actor = new Clutter.Actor({ x: 100, y: 100, width: 200, height: 200, content: new MyContent(), }); stage.add_child(actor); stage.show(); Clutter.main();
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 621716 ***