[rhythmbox] implement stop for rb-client
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] implement stop for rb-client
- Date: Sun, 3 Aug 2014 07:49:35 +0000 (UTC)
commit e35340da1c5a4b722be096e786edacd6d63310e7
Author: Ali Vakilzade <ali vakilzade ir>
Date: Thu Jul 31 20:11:29 2014 +0430
implement stop for rb-client
remote/dbus/rb-client.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/remote/dbus/rb-client.c b/remote/dbus/rb-client.c
index f178c12..69287af 100644
--- a/remote/dbus/rb-client.c
+++ b/remote/dbus/rb-client.c
@@ -98,7 +98,7 @@ static GOptionEntry args[] = {
{ "play", 0, 0, G_OPTION_ARG_NONE, &play, N_("Resume playback if currently paused"), NULL },
{ "pause", 0, 0, G_OPTION_ARG_NONE, &do_pause, N_("Pause playback if currently playing"), NULL },
{ "play-pause", 0, 0, G_OPTION_ARG_NONE, &play_pause, N_("Toggle play/pause mode"), NULL },
-/* { "stop", 0, 0, G_OPTION_ARG_NONE, &stop, N_("Stop playback"), NULL }, */
+ { "stop", 0, 0, G_OPTION_ARG_NONE, &stop, N_("Stop playback"), NULL },
{ "play-uri", 0, 0, G_OPTION_ARG_FILENAME, &play_uri, N_("Play a specified URI, importing it if
necessary"), N_("URI to play")},
{ "enqueue", 0, 0, G_OPTION_ARG_NONE, &enqueue, N_("Add specified tracks to the play queue"), NULL },
@@ -908,7 +908,8 @@ main (int argc, char **argv)
rb_debug ("no need to change playback state");
}
} else if (stop) {
- g_warning ("not implemented yet");
+ g_dbus_proxy_call_sync (mpris, "Stop", NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL,
&error);
+ annoy (&error);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]