Fix app event handling
We need to hook up to events on the group, and not set higher level actors to be reactive. svn path=/trunk/; revision=77
This commit is contained in:
parent
54329a65b2
commit
07877e7a7a
@ -36,13 +36,13 @@ AppDisplayItem.prototype = {
|
|||||||
this._group = new Clutter.Group({reactive: true,
|
this._group = new Clutter.Group({reactive: true,
|
||||||
width: width,
|
width: width,
|
||||||
height: APPDISPLAY_HEIGHT});
|
height: APPDISPLAY_HEIGHT});
|
||||||
this._bg = new Clutter.Rectangle({ color: APPDISPLAY_BACKGROUND_COLOR,
|
this._group.connect('button-press-event', function(group, e) {
|
||||||
reactive: true, x: 0, y: 0 });
|
|
||||||
this._group.add_actor(this._bg);
|
|
||||||
this._bg.connect('button-press-event', function(group, e) {
|
|
||||||
me.emit('launch');
|
me.emit('launch');
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
this._bg = new Clutter.Rectangle({ color: APPDISPLAY_BACKGROUND_COLOR,
|
||||||
|
x: 0, y: 0 });
|
||||||
|
this._group.add_actor(this._bg);
|
||||||
|
|
||||||
this._icon = new Clutter.Texture({ width: 48, height: 48, x: 0, y: 0 });
|
this._icon = new Clutter.Texture({ width: 48, height: 48, x: 0, y: 0 });
|
||||||
let gicon = appinfo.get_icon();
|
let gicon = appinfo.get_icon();
|
||||||
|
Loading…
Reference in New Issue
Block a user