[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.BoxLayout);
|
||||||
_patchContainerClass(St.Table);
|
_patchContainerClass(St.Table);
|
||||||
|
|
||||||
|
Clutter.Actor.prototype.toString = function() {
|
||||||
|
return St.describe_actor(this);
|
||||||
|
};
|
||||||
Clutter.Actor.prototype.contains = function(child) {
|
Clutter.Actor.prototype.contains = function(child) {
|
||||||
while (child != null && child != this)
|
while (child != null && child != this)
|
||||||
child = child.get_parent();
|
child = child.get_parent();
|
||||||
|
@ -404,8 +404,7 @@ Inspector.prototype = {
|
|||||||
stageY);
|
stageY);
|
||||||
let position = '[inspect x: ' + stageX + ' y: ' + stageY + ']';
|
let position = '[inspect x: ' + stageX + ' y: ' + stageY + ']';
|
||||||
displayText.text = '';
|
displayText.text = '';
|
||||||
let description = St.describe_actor(target);
|
displayText.text = position + ' ' + target;
|
||||||
displayText.text = position + ' ' + description;
|
|
||||||
if (borderPaintTarget != null)
|
if (borderPaintTarget != null)
|
||||||
borderPaintTarget.disconnect(borderPaintId);
|
borderPaintTarget.disconnect(borderPaintId);
|
||||||
borderPaintTarget = target;
|
borderPaintTarget = target;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user