Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clutter-GTK seems broken #2993

Closed
jojva opened this issue Apr 1, 2014 · 11 comments
Closed

Clutter-GTK seems broken #2993

jojva opened this issue Apr 1, 2014 · 11 comments

Comments

@jojva
Copy link

jojva commented Apr 1, 2014

This python script should work, it doesn't:

from gi.repository import Clutter
from gi.repository import GtkClutter
from gi.repository import Gtk
import signal

def clicked_cb(action, actor):
    print "Not so bad"

if __name__=="__main__":
    GtkClutter.init(None)
    e = GtkClutter.Embed()
    b = Gtk.VBox()
    w = Gtk.Window()
    w.add(b)
    b.pack_start(e, True, True, 0)
    signal.signal(signal.SIGINT, signal.SIG_DFL)
    w.show_all()
    s = e.get_stage()
    a = Clutter.Actor()
    s.add_child(a)
    a.set_size(50, 50)
    a.set_position(50, 50)
    s.set_size(500, 500)
    a.set_background_color(Clutter.Color.new(200, 200, 200, 255))
    s.show_all()
    a.set_reactive(True)
    a.connect("button-press-event", clicked_cb)
    Gtk.main()

This makes using Pitivi impossible on Cinnamon (works fine with Gnome).

@MathieuDuponchelle
Copy link

This issue is very critical for Pitivi, as we use that kind of setup (actors in a GtkClutter.Embed). This means users can't click elements in the timeline, rendering Pitivi unusable with cinnamon.

@mtwebster
Copy link
Member

This is a known issue, and a fairly high priority to get fixed prior to Cinnamon 2.2.

I'm fairly certain this is the same issue as:
#2307
and
#2830

@mtwebster
Copy link
Member

btw, i really appreciate the test script :)

@jojva
Copy link
Author

jojva commented Apr 1, 2014

You can thank MathieuDuponchelle he's the author :)

@MathieuDuponchelle
Copy link

@mtwebster I hope it will help in fixing that issue, interestingly enough a simple actor in a clutter stage registers clicks correctly, the bug happens when a stage is embedded in a Gtk widget thanks to ClutterGtk. Maybe you can set milestones and labels to make this a blocker ? I think it's quite critical :)

@jojva
Copy link
Author

jojva commented Apr 1, 2014

Update here: for some reason, sudoing that script makes it work.

@mtwebster
Copy link
Member

You'll have to update cinnamon-session as well as cinnamon.

prior to the fix, if you unset CLUTTER_DISABLE_XINPUT then run the script, it works fine. Turns out Clutter-Gtk needs xinput.

@jojva
Copy link
Author

jojva commented Apr 2, 2014

Any idea why I can't build Cinnamon?
I get this when running autogen:
"No package 'libcinnamon-menu-3.0' found"
I also tried autogening, making, and make-installing cinnamon-menus (and succeded) but it doesn't seem to change anything.
P.S. I'm on Fedora not LM.

@MathieuDuponchelle
Copy link

@mtwebster Thanks for your quick feedback :) We have updated our troubleshooting page from "Only solution is to not use cinnamon" to your solution :)

@lubosz
Copy link

lubosz commented Apr 8, 2014

@jojva your example works for me without unsetting CLUTTER_DISABLE_XINPUT

The reason I cannot run Pitivi in Cinnamon (or GNOME Classic or XFCE) is following Clutter related Bug:
https://bugzilla.gnome.org/show_bug.cgi?id=727851

Unsetting CLUTTER_DISABLE_XINPUT does not help.

Pitivi runs fine in GNOME Shell

@jojva
Copy link
Author

jojva commented Apr 21, 2014

@lubosz mtwebster's commit fixed the problem for me. I guess this is another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants