/usr/share/kde4/apps/plasma/layout-templates/org.kde.plasma-desktop.findWidgets/contents/layout.js is in plasma-desktop 4:4.8.5-0ubuntu0.4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | function findWidgetsIn(containment, type, callback)
{
var widgetIds = containment.widgetIds
for (id in widgetIds) {
var widget = containment.widgetById(widgetIds[id])
if (widget.type == type) {
print("Found a " + type + " tray with id " + widget.id + " in " + containment.type + " with id " + containment.id)
if (callback) {
callback(widget, containment)
}
}
}
}
this.findWidgets = function(type, callback)
{
for (i in panelIds) {
findWidgetsIn(panelById(panelIds[i]), type, callback)
}
for (i in activityIds) {
findWidgetsIn(activityById(activityIds[i]), type, callback)
}
}
|