# HG changeset patch # User kiyoshi # Date 1167837568 28800 # Node ID ef1316b48550f9badaea2a1df048840c75fb9594 # Parent a04dcf29737d0f226595239b46990ef4dceb5885 [svn] Add 'mainwin-display' handler; currently can only make the mainwin appear, but not disappear. diff -r a04dcf29737d -r ef1316b48550 ChangeLog --- a/ChangeLog Wed Jan 03 04:44:05 2007 -0800 +++ b/ChangeLog Wed Jan 03 07:19:28 2007 -0800 @@ -1,3 +1,10 @@ +2007-01-03 12:44:05 +0000 Giacomo Lozito + revision [3497] + - no more menu_popup() in ui_playlist.c, now it uses ui_manager_popup_menu_show() from ui_manager framework + trunk/audacious/ui_playlist.c | 41 ++++++----------------------------------- + 1 file changed, 6 insertions(+), 35 deletions(-) + + 2007-01-03 09:25:18 +0000 William Pitcock revision [3495] - port playlist uimanager code to giacomo's ui_manager framework diff -r a04dcf29737d -r ef1316b48550 audtool/audtool.c --- a/audtool/audtool.c Wed Jan 03 04:44:05 2007 -0800 +++ b/audtool/audtool.c Wed Jan 03 07:19:28 2007 -0800 @@ -80,6 +80,7 @@ {"get-volume", get_volume, "returns the current volume level in percent"}, {"set-volume", set_volume, "sets the current volume level in percent"}, {"", NULL, "Miscellaneous"}, + {"mainwin-display", mainwin_display, "shows/hides the mainwin"}, {"preferences", show_preferences_window, "shows/hides the preferences window"}, {"jumptofile", show_jtf_window, "shows the jump to file window"}, {"shutdown", shutdown_audacious_server, "shuts down audacious"}, @@ -873,6 +874,20 @@ xmms_remote_set_main_volume(session, i); } +void mainwin_display(gint session, gint argc, gchar **argv) +{ + if (strncmp(argv[2],"on"),2) { + xmms_remote_main_win_toggle(session, TRUE); + } + else if (strncmp(argv[2],"off",3)) { + xmms_remote_main_win_toggle(session, FALSE); + } + else { + g_print("%s: invalid parameter for mainwin-display.\n",argv[0]); + g_print("%s: syntax: %s mainwin-display \n",argv[0],argv[0]); + } +} + void show_preferences_window(gint session, gint argc, gchar **argv) { xmms_remote_show_prefs_box(session); diff -r a04dcf29737d -r ef1316b48550 audtool/audtool.h --- a/audtool/audtool.h Wed Jan 03 04:44:05 2007 -0800 +++ b/audtool/audtool.h Wed Jan 03 07:19:28 2007 -0800 @@ -78,6 +78,7 @@ extern void playback_status(gint, gint, gchar **); extern void playback_seek(gint, gint, gchar **); extern void playback_seek_relative(gint, gint, gchar **); +extern void mainwin_display(gint, gint, gchar **); extern void show_preferences_window(gint, gint, gchar **); extern void show_jtf_window(gint, gint, gchar **); extern void shutdown_audacious_server(gint, gint, gchar **);