[environment] use St.describe_actor for Clutter.Actor.prototype.toString

https://bugzilla.gnome.org/show_bug.cgi?id=621668
This commit is contained in:
Dan Winship 2010-06-17 13:19:07 -04:00
parent 792dc489ee
commit ab61017041
2 changed files with 4 additions and 2 deletions

View File

@ -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();

View File

@ -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;