gtk-clutter 1.2 for windows error on non-x11 patforms.
- From: gontzal <txasatonga gmail com>
- To: clutter-list gnome org
- Subject: gtk-clutter 1.2 for windows error on non-x11 patforms.
- Date: Fri, 19 Sep 2014 18:42:45 +0200
I have this error on windows:
(clutter1.exe:2564): Clutter-Gtk-CRITICAL **: Embedding GtkWidget inside
Clutter
Actor through GtkClutterActor does not yet work on non-X11 platforms.
with this code:
uses Gtk;
uses Clutter;
uses GtkClutter;
window: Gtk.Window
embed: GtkClutter.Embed ;
stage: Clutter.Actor
actorx:Clutter.Actor
init
if (GtkClutter.init(ref args) != Clutter.InitError.SUCCESS)
GLib.warning("Could not initialize GtkClutter")
else
window = new Gtk.Window();
embed = new GtkClutter.Embed();
var box= new Gtk.Box(Gtk.Orientation.HORIZONTAL, 5)
box.add(embed)
stage = embed.get_stage();
var boton = new Gtk.Button.with_label("Label");
var actorx = new GtkClutter.Actor.with_contents(boton);
actorx.set_reactive(true)
actorx.set_x(100)
actorx.set_y(100)
stage.add_child(actorx)
window.add(box)
window.set_default_size(600, 600);
window.show_all();
Gtk.main();
Anyone knows the reason of the error? Maybe the version? This code goes
well on linux...
Thanks. Gontzal.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]