()
| 494 | } |
| 495 | |
| 496 | _initializeTimer() { |
| 497 | // used to query sensors and update display |
| 498 | let update_time = this._settings.get_int('update-time'); |
| 499 | this._refreshTimeoutId = GLib.timeout_add_seconds( |
| 500 | GLib.PRIORITY_DEFAULT, |
| 501 | update_time, |
| 502 | (self) => { |
| 503 | // always query sensors (for panel display when hot) |
| 504 | this._querySensors(); |
| 505 | return GLib.SOURCE_CONTINUE; |
| 506 | } |
| 507 | ); |
| 508 | } |
| 509 | |
| 510 | _createHotItem(key, value, gicon) { |
| 511 | let item = new St.BoxLayout({ |
no test coverage detected