Changes
1 changed files (+16/-0)
-
-
@@ -212,6 +212,20 @@ this.render();}); } private string format_seconds(uint64 secs) { var s = secs % 60; var m = (secs / 60) % 60; var h = secs / 360; if (h == 0) { return "%02u:%02u".printf((uint) m, (uint) s); } // I don't care 32 bit platforms. Also I doubt Roon can handle a song // of a duration longer than max(uint32) return "%02u:%02u:%02u".printf((uint) h, (uint) m, (uint) s); } private void render() { var zone = this.zone; if (zone == null) {
-
@@ -245,10 +259,12 @@ ) {seek.sensitive = true; seek.set_range(0, zone.now_playing.length); seek.set_value(zone.now_playing.seek_position); seek.tooltip_text = format_seconds(zone.now_playing.seek_position); } else { seek.sensitive = false; seek.set_range(0, 1); seek.set_value(0); seek.tooltip_text = "Not playing"; } switch (zone.playback) {
-