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

Comments

Projects
None yet
4 participants
@jojva

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

This comment has been minimized.

Show comment
Hide comment
@MathieuDuponchelle

MathieuDuponchelle Apr 1, 2014

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.

MathieuDuponchelle commented Apr 1, 2014

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

This comment has been minimized.

Show comment
Hide comment
@mtwebster

mtwebster Apr 1, 2014

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

Member

mtwebster commented Apr 1, 2014

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

This comment has been minimized.

Show comment
Hide comment
@mtwebster

mtwebster Apr 1, 2014

Member

btw, i really appreciate the test script :)

Member

mtwebster commented Apr 1, 2014

btw, i really appreciate the test script :)

@jojva

This comment has been minimized.

Show comment
Hide comment
@jojva

jojva Apr 1, 2014

You can thank MathieuDuponchelle he's the author :)

jojva commented Apr 1, 2014

You can thank MathieuDuponchelle he's the author :)

@MathieuDuponchelle

This comment has been minimized.

Show comment
Hide comment
@MathieuDuponchelle

MathieuDuponchelle Apr 1, 2014

@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 :)

MathieuDuponchelle commented Apr 1, 2014

@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

This comment has been minimized.

Show comment
Hide comment
@jojva

jojva Apr 1, 2014

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

jojva commented Apr 1, 2014

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

@mtwebster mtwebster closed this in 087797f Apr 2, 2014

@mtwebster

This comment has been minimized.

Show comment
Hide comment
@mtwebster

mtwebster Apr 2, 2014

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.

Member

mtwebster commented Apr 2, 2014

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

This comment has been minimized.

Show comment
Hide comment
@jojva

jojva 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.

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

This comment has been minimized.

Show comment
Hide comment
@MathieuDuponchelle

MathieuDuponchelle Apr 2, 2014

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

MathieuDuponchelle commented Apr 2, 2014

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

@lubosz

This comment has been minimized.

Show comment
Hide comment
@lubosz

lubosz 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

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

This comment has been minimized.

Show comment
Hide comment
@jojva

jojva Apr 21, 2014

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

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