changeset 1885:1cd683dd944e trunk

[svn] Jump to track window shown when calling audacious with the -j option. Patch by Henrik Johansson <henrik_johansson@home.se>, submitted as Gentoo bug #151260.
author chainsaw
date Sun, 15 Oct 2006 09:30:05 -0700
parents e6a3a7d80182
children cbc1df98c5b6
files ChangeLog audacious/main.c
diffstat 2 files changed, 20 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Oct 14 21:25:04 2006 -0700
+++ b/ChangeLog	Sun Oct 15 09:30:05 2006 -0700
@@ -1,3 +1,11 @@
+2006-10-15 04:25:04 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2725]
+  - fix default config order
+  
+  trunk/audacious/main.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2006-10-15 04:11:15 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2723]
   - try to intelligently choose which output plugin is best. candidates are in an null-terminated array, pl_candidates.
--- a/audacious/main.c	Sat Oct 14 21:25:04 2006 -0700
+++ b/audacious/main.c	Sun Oct 15 09:30:05 2006 -0700
@@ -87,7 +87,7 @@
 struct _BmpCmdLineOpt {
     GList *filenames;
     gint session;
-    gboolean play, stop, pause, fwd, rew, play_pause, playcd;
+    gboolean play, stop, pause, fwd, rew, play_pause, playcd, show_jump_box;
     gboolean enqueue, mainwin, remote, activate;
     gboolean load_skins;
     gboolean headless;
@@ -746,6 +746,9 @@
     g_print("\n-f, --fwd              ");
     /* -f, --fwd switch */
     g_print(_("Skip forward in playlist"));
+    g_print("\n-j, --show-jump-box    ");
+    /* -j, --show-jump-box switch */
+    g_print(_("Display Jump to file dialog"));
     g_print("\n-e, --enqueue          ");
     /* -e, --enqueue switch */
     g_print(_("Don't clear the playlist"));
@@ -785,6 +788,7 @@
         {"play-pause", 0, NULL, 't'},
         {"stop", 0, NULL, 's'},
         {"fwd", 0, NULL, 'f'},
+        {"show-jump-box", 0, NULL, 'j'},
         {"enqueue", 0, NULL, 'e'},
         {"show-main-window", 0, NULL, 'm'},
         {"activate", 0, NULL, 'a'},
@@ -802,7 +806,7 @@
     memset(options, 0, sizeof(BmpCmdLineOpt));
     options->session = -1;
 
-    while ((c = getopt_long(argc, argv, "chn:HrpusfemavtLS", long_options,
+    while ((c = getopt_long(argc, argv, "chn:HrpusfemavtLSj", long_options,
                             NULL)) != -1) {
         switch (c) {
         case 'h':
@@ -832,6 +836,9 @@
         case 't':
             options->play_pause = TRUE;
             break;
+        case 'j':
+            options->show_jump_box = TRUE;
+            break;
         case 'm':
             options->mainwin = TRUE;
             break;
@@ -936,6 +943,9 @@
     if (options->play_pause)
         xmms_remote_play_pause(session);
 
+    if (options->show_jump_box)
+        xmms_remote_show_jtf_box(session);
+
     if (options->mainwin)
         xmms_remote_main_win_toggle(session, TRUE);