[environment] use St.describe_actor for Clutter.Actor.prototype.toString
https://bugzilla.gnome.org/show_bug.cgi?id=621668
This commit is contained in:
parent
792dc489ee
commit
ab61017041
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user