Web lists-archives.com

[Python/Gtk3] Gtk Clutter embed not working anymore?




Hello,

I'm trying to use a Clutter stage in my GTK project, it worked before
but it seems that after a recent update of GTK or Clutter or both, it
isn't working anymore.

I tried this minimal example:

#!/usr/bin/python
#coding: utf-8
from gi.repository import Gtk, GtkClutter, Clutter
Clutter.init(None)
e = GtkClutter.Embed.new()
w = Gtk.Window()
w.resize(640, 480)
def quitte( w ):
  print "quitter"
  Gtk.main_quit()
w.connect("destroy", quitte)
w.add(e)
w.show_all()
Gtk.main()

The window shows up, with the clutter stage embedded, but when I try
to close it nothing happens: it seems the event loop doesn't react to
events. Have I forgotten something, and if yes what? Thanks!
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list