Mercurial > audlegacy
changeset 2247:ef1316b48550 trunk
[svn] Add 'mainwin-display' handler; currently can only make the mainwin appear, but not disappear.
author | kiyoshi |
---|---|
date | Wed, 03 Jan 2007 07:19:28 -0800 |
parents | a04dcf29737d |
children | f47524760158 |
files | ChangeLog audtool/audtool.c audtool/audtool.h |
diffstat | 3 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <james@develia.org> + 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 <nenolod@nenolod.net> revision [3495] - port playlist uimanager code to giacomo's ui_manager framework
--- 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"}, {"<sep>", 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 <on/off>\n",argv[0],argv[0]); + } +} + void show_preferences_window(gint session, gint argc, gchar **argv) { xmms_remote_show_prefs_box(session);
--- 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 **);