From ab61017041ed30e02c6fc7df59d308393a3d789e Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 17 Jun 2010 13:19:07 -0400 Subject: [PATCH] [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 27cce08ca..98caa5549 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 cbb8e717e..39241c20c 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;