patch to support jump to file via libxmms
John Feltz <[email protected]>
| Newsgroups | gmane.comp.multimedia.xmms.devel |
|---|---|
| Organization | AG Information Systems |
| Message-ID | <[email protected]> |
This simple set of patches extends libxmms & xmmsctrl (the shell plugin) to support the Jump to File dialogue. For instance if your using windowmaker and have xmms running in another workspace and want to jump to file without having to focus on xmms first, through a wmaker key binding. The first patch is for xmms-1.2.8, the second is for xmmsctrl-1.6. Index: ChangeLog from John Feltz <[email protected]> * libxmms/xmmsctrl.c, libxmms/xmmsctrl.h, xmms/main.c, xmms/controlsocket.h, xmms/controlsocket.c: Support for jump-to-file dialogue in libxmms. Index: libxmms/xmmsctrl.c =================================================================== --- libxmms/xmmsctrl.c 2003-09-18 15:25:14.000000000 -0600 +++ libxmms/xmmsctrl.c 2003-09-18 15:29:41.000000000 -0600 @@ -649,4 +649,9 @@ } +void xmms_remote_jtf(gint session) +{ + remote_cmd(session, CMD_JTF); +} + void xmms_remote_playlist_prev(gint session) { Index: libxmms/xmmsctrl.h =================================================================== --- libxmms/xmmsctrl.h 2003-09-18 15:30:49.000000000 -0600 +++ libxmms/xmmsctrl.h 2003-09-18 15:31:06.000000000 -0600 @@ -64,4 +64,5 @@ void xmms_remote_toggle_aot(gint session, gboolean ontop); void xmms_remote_eject(gint session); +void xmms_remote_jtf(gint session); void xmms_remote_playlist_prev(gint session); void xmms_remote_playlist_next(gint session); Index: xmms/main.c =================================================================== --- xmms/main.c 2003-09-18 15:35:00.000000000 -0600 +++ xmms/main.c 2003-09-18 15:35:43.000000000 -0600 @@ -1725,5 +1725,5 @@ } -static void mainwin_jump_to_file(void) +void mainwin_jump_to_file(void) { GtkWidget *vbox, *scrollwin, *clist, *sep, *bbox, *jump, *queue, *cancel, *edit, *search_label, *hbox; Index: xmms/controlsocket.h =================================================================== --- xmms/controlsocket.h 2003-09-18 15:32:15.000000000 -0600 +++ xmms/controlsocket.h 2003-09-18 15:32:35.000000000 -0600 @@ -39,5 +39,5 @@ CMD_GET_EQ_DATA, CMD_SET_EQ_DATA, CMD_PL_WIN_TOGGLE, CMD_EQ_WIN_TOGGLE, CMD_SHOW_PREFS_BOX, CMD_TOGGLE_AOT, - CMD_SHOW_ABOUT_BOX, CMD_EJECT, CMD_PLAYLIST_PREV, CMD_PLAYLIST_NEXT, + CMD_SHOW_ABOUT_BOX, CMD_EJECT, CMD_JTF, CMD_PLAYLIST_PREV, CMD_PLAYLIST_NEXT, CMD_PING, CMD_GET_BALANCE, CMD_TOGGLE_REPEAT, CMD_TOGGLE_SHUFFLE, CMD_MAIN_WIN_TOGGLE, CMD_PLAYLIST_ADD_URL_STRING, Index: xmms/controlsocket.c =================================================================== --- xmms/controlsocket.c 2003-09-18 15:33:32.000000000 -0600 +++ xmms/controlsocket.c 2003-09-18 15:34:11.000000000 -0600 @@ -527,4 +527,7 @@ mainwin_eject_pushed(); break; + case CMD_JTF: + mainwin_jump_to_file(); + break; case CMD_PLAYLIST_PREV: playlist_prev(); Index: xmmsctrl.c =================================================================== --- xmmsctrl.c 2003-09-18 16:41:13.000000000 -0600 +++ xmmsctrl.c 2003-09-18 16:41:56.000000000 -0600 @@ -84,4 +84,9 @@ }, { + "jump" , + xmms_remote_jtf , + "open xmms \"Jump To File\" dialogue" + }, + { "getpos" , print_current_pos,