23
23
Act.User? actuser = null;
24
24
AccountsServiceSoundSettings? proxy = null;
25
GreeterBroadcast? greeter = null;
26
27
HashTable<string, bool> properties_queued = new HashTable<string, bool>(str_hash, str_equal);
27
28
uint properties_timeout = 0;
223
void greeter_proxy_new (GLib.Object? obj, AsyncResult res) {
225
this.greeter = Bus.get_proxy.end (res);
228
warning("Unable to get greeter proxy: %s", e.message);
212
232
/* Control functions through unity-greeter-session-broadcast */
213
233
public override void activate () {
216
236
public override void play_pause () {
237
debug("Play Pause for user: %s", this.username);
239
if (this.greeter != null) {
240
this.greeter.RequestSoundPlayPause.begin(this.username, (obj, res) => {
242
(obj as GreeterBroadcast).RequestSoundPlayPause.end(res);
244
warning("Unable to send play pause: %s", e.message);
248
warning("No unity-greeter-session-broadcast to send play-pause");
219
251
public override void next () {
252
debug("Next for user: %s", this.username);
254
if (this.greeter != null) {
255
this.greeter.RequestSoundNext.begin(this.username, (obj, res) => {
257
(obj as GreeterBroadcast).RequestSoundNext.end(res);
259
warning("Unable to send next: %s", e.message);
263
warning("No unity-greeter-session-broadcast to send next");
222
266
public override void previous () {
267
debug("Previous for user: %s", this.username);
269
if (this.greeter != null) {
270
this.greeter.RequestSoundPrev.begin(this.username, (obj, res) => {
272
(obj as GreeterBroadcast).RequestSoundPrev.end(res);
274
warning("Unable to send previous: %s", e.message);
278
warning("No unity-greeter-session-broadcast to send previous");
226
282
/* Play list functions are all null as we don't support the