gnome-shell r77 - trunk/js/ui



Author: walters
Date: Fri Nov 21 20:45:35 2008
New Revision: 77
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=77&view=rev

Log:
Fix app event handling

We need to hook up to events on the group, and not set higher level
actors to be reactive.

Modified:
   trunk/js/ui/appdisplay.js

Modified: trunk/js/ui/appdisplay.js
==============================================================================
--- trunk/js/ui/appdisplay.js	(original)
+++ trunk/js/ui/appdisplay.js	Fri Nov 21 20:45:35 2008
@@ -36,13 +36,13 @@
 	this._group = new Clutter.Group({reactive: true,
 					 width: width,
 					 height: APPDISPLAY_HEIGHT});
-	this._bg = new Clutter.Rectangle({ color: APPDISPLAY_BACKGROUND_COLOR,
-	 				   reactive: true, x: 0, y: 0 });
-	this._group.add_actor(this._bg);
-	this._bg.connect('button-press-event', function(group, e) {
+	this._group.connect('button-press-event', function(group, e) {
 	    me.emit('launch');
 	    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 });
 	let gicon = appinfo.get_icon();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]