[gnome-shell] [environment] use St.describe_actor for Clutter.Actor.prototype.toString
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [environment] use St.describe_actor for Clutter.Actor.prototype.toString
- Date: Thu, 17 Jun 2010 18:05:43 +0000 (UTC)
commit ab61017041ed30e02c6fc7df59d308393a3d789e
Author: Dan Winship <danw gnome org>
Date: Thu Jun 17 13:19:07 2010 -0400
[environment] use St.describe_actor for Clutter.Actor.prototype.toString
https://bugzilla.gnome.org/show_bug.cgi?id=621668
js/ui/environment.js | 3 +++
js/ui/lookingGlass.js | 3 +--
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/environment.js b/js/ui/environment.js
index 27cce08..98caa55 100644
--- a/js/ui/environment.js
+++ b/js/ui/environment.js
@@ -71,6 +71,9 @@ function init() {
_patchContainerClass(St.BoxLayout);
_patchContainerClass(St.Table);
+ Clutter.Actor.prototype.toString = function() {
+ return St.describe_actor(this);
+ };
Clutter.Actor.prototype.contains = function(child) {
while (child != null && child != this)
child = child.get_parent();
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index cbb8e71..39241c2 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -404,8 +404,7 @@ Inspector.prototype = {
stageY);
let position = '[inspect x: ' + stageX + ' y: ' + stageY + ']';
displayText.text = '';
- let description = St.describe_actor(target);
- displayText.text = position + ' ' + description;
+ displayText.text = position + ' ' + target;
if (borderPaintTarget != null)
borderPaintTarget.disconnect(borderPaintId);
borderPaintTarget = target;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]