Mercurial > audlegacy
changeset 2745:72781ef7ece3 trunk
[svn] - auddrct: more calls implemented (part 4)
author | giacomo |
---|---|
date | Fri, 11 May 2007 18:35:26 -0700 |
parents | 8ab4ef180201 |
children | 2f5b461118a8 |
files | ChangeLog src/audacious/auddrct.c src/audacious/auddrct.h src/audacious/build_stamp.c |
diffstat | 4 files changed, 49 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri May 11 18:12:56 2007 -0700 +++ b/ChangeLog Fri May 11 18:35:26 2007 -0700 @@ -1,3 +1,11 @@ +2007-05-12 01:12:56 +0000 Giacomo Lozito <james@develia.org> + revision [4514] + - auddrct: more calls implemented (part 3) + trunk/src/audacious/auddrct.c | 10 +++++----- + trunk/src/audacious/auddrct.h | 10 +++++----- + 2 files changed, 10 insertions(+), 10 deletions(-) + + 2007-05-12 01:04:31 +0000 Giacomo Lozito <james@develia.org> revision [4512] - auddrct: more calls implemented (part 2)
--- a/src/audacious/auddrct.c Fri May 11 18:12:56 2007 -0700 +++ b/src/audacious/auddrct.c Fri May 11 18:35:26 2007 -0700 @@ -27,6 +27,7 @@ #include "ui_main.h" #include "ui_playlist.h" #include "ui_equalizer.h" +#include "ui_jumptotrack.h" /* player */ @@ -46,6 +47,14 @@ return; } +void +audacious_drct_jtf_show ( void ) +{ + if (has_x11_connection) + ui_jump_to_track(); + return; +} + gboolean audacious_drct_main_win_is_visible ( void ) { @@ -196,3 +205,29 @@ playlist_prev(playlist_get_active()); return; } + +gboolean +audacious_drct_pl_repeat_is_enabled( void ) +{ + return cfg.repeat; +} + +void +audacious_drct_pl_repeat_toggle( void ) +{ + mainwin_repeat_pushed(!cfg.repeat); + return; +} + +gboolean +audacious_drct_pl_repeat_is_shuffled( void ) +{ + return cfg.shuffle; +} + +void +audacious_drct_pl_shuffle_toggle( void ) +{ + mainwin_shuffle_pushed(!cfg.shuffle); + return; +}
--- a/src/audacious/auddrct.h Fri May 11 18:12:56 2007 -0700 +++ b/src/audacious/auddrct.h Fri May 11 18:35:26 2007 -0700 @@ -25,6 +25,7 @@ /* player */ void audacious_drct_quit ( void ); void audacious_drct_eject ( void ); +void audacious_drct_jtf_show ( void ); gboolean audacious_drct_main_win_is_visible ( void ); void audacious_drct_main_win_toggle ( gboolean ); gboolean audacious_drct_eq_win_is_visible ( void ); @@ -47,3 +48,7 @@ /* playlist */ void audacious_drct_pl_next( void ); void audacious_drct_pl_prev( void ); +gboolean audacious_drct_pl_repeat_is_enabled ( void ); +void audacious_drct_pl_repeat_toggle ( void ); +gboolean audacious_drct_pl_repeat_is_shuffled ( void ); +void audacious_drct_pl_shuffle_toggle ( void );