Mercurial > audlegacy
comparison src/libaudclient/audctrl.c @ 3917:b5ee3a4a8e3b
libaudclient:
- audacious_remote_toggle_about_box, audacious_remote_toggle_jtf_box, audacious_remote_toggle_prefs_box, audacious_remote_toggle_filebrowser, audacious_remote_eq_activate have been added.
audtool:
- argument parser has been improved.
- command to show filebrowser has been added.
- command to activate/deactivate equalizer has been added.
- now each command to show aboutbox, prefswin, jtf and filebrowser is capable of change visibility.
- now playlist_clear stops playback first.
- normalize names of some commands.
core:
- enhance some dbus functions to support visibility control.
- add some functions to hide dialogs.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Thu, 08 Nov 2007 22:16:50 +0900 |
parents | 86c9abc83fbd |
children | e5119c001bb4 |
comparison
equal
deleted
inserted
replaced
3916:92c12d945d99 | 3917:b5ee3a4a8e3b |
---|---|
533 * @proxy: DBus proxy for audacious | 533 * @proxy: DBus proxy for audacious |
534 * | 534 * |
535 * Tells audacious to show the preferences pane. | 535 * Tells audacious to show the preferences pane. |
536 **/ | 536 **/ |
537 void audacious_remote_show_prefs_box(DBusGProxy *proxy) { | 537 void audacious_remote_show_prefs_box(DBusGProxy *proxy) { |
538 org_atheme_audacious_show_prefs_box(proxy, &error); | 538 audacious_remote_toggle_prefs_box(proxy, TRUE); |
539 } | |
540 | |
541 /** | |
542 * audacious_remote_toggle_prefs_box: | |
543 * @proxy: DBus proxy for audacious | |
544 * @show: shows/hides | |
545 * | |
546 * Tells audacious to show/hide the preferences pane. | |
547 **/ | |
548 void audacious_remote_toggle_prefs_box(DBusGProxy *proxy, gboolean show) { | |
549 org_atheme_audacious_show_prefs_box(proxy, show, &error); | |
539 g_clear_error(&error); | 550 g_clear_error(&error); |
540 } | 551 } |
541 | 552 |
542 /** | 553 /** |
543 * audacious_remote_show_about_box: | 554 * audacious_remote_show_about_box: |
544 * @proxy: DBus proxy for audacious | 555 * @proxy: DBus proxy for audacious |
545 * | 556 * |
546 * Tells audacious to show the about box. | 557 * Tells audacious to show the about box. |
547 **/ | 558 **/ |
548 void audacious_remote_show_about_box(DBusGProxy *proxy) { | 559 void audacious_remote_show_about_box(DBusGProxy *proxy) { |
549 org_atheme_audacious_show_about_box(proxy, &error); | 560 audacious_remote_toggle_about_box(proxy, TRUE); |
561 } | |
562 | |
563 /** | |
564 * audacious_remote_toggle_about_box: | |
565 * @proxy: DBus proxy for audacious | |
566 * @show: shows/hides | |
567 * | |
568 * Tells audacious to show/hide the about box. | |
569 **/ | |
570 void audacious_remote_toggle_about_box(DBusGProxy *proxy, gboolean show) { | |
571 org_atheme_audacious_show_about_box(proxy, show, &error); | |
550 g_clear_error(&error); | 572 g_clear_error(&error); |
551 } | 573 } |
552 | 574 |
553 /** | 575 /** |
554 * audacious_remote_toggle_aot: | 576 * audacious_remote_toggle_aot: |
883 * @proxy: DBus proxy for audacious | 905 * @proxy: DBus proxy for audacious |
884 * | 906 * |
885 * Tells audacious to show the Jump-to-File pane. | 907 * Tells audacious to show the Jump-to-File pane. |
886 **/ | 908 **/ |
887 void audacious_remote_show_jtf_box(DBusGProxy *proxy) { | 909 void audacious_remote_show_jtf_box(DBusGProxy *proxy) { |
888 org_atheme_audacious_show_jtf_box(proxy, &error); | 910 audacious_remote_toggle_jtf_box(proxy, TRUE); |
911 } | |
912 | |
913 /** | |
914 * audacious_remote_toggle_jtf_box: | |
915 * @proxy: DBus proxy for audacious | |
916 * @show: shows/hides jtf pane | |
917 * | |
918 * Tells audacious to show/hide the Jump-to-File pane. | |
919 **/ | |
920 void audacious_remote_toggle_jtf_box(DBusGProxy *proxy, gboolean show) { | |
921 org_atheme_audacious_show_jtf_box(proxy, show, &error); | |
922 g_clear_error(&error); | |
923 } | |
924 | |
925 /** | |
926 * audacious_remote_toggle_filebrowser: | |
927 * @proxy: DBus proxy for audacious | |
928 * @show: shows/hides filebrowser | |
929 * | |
930 * Tells audacious to show the filebrowser dialog. | |
931 **/ | |
932 void audacious_remote_toggle_filebrowser(DBusGProxy *proxy, gboolean show) { | |
933 org_atheme_audacious_show_filebrowser(proxy, show, &error); | |
889 g_clear_error(&error); | 934 g_clear_error(&error); |
890 } | 935 } |
891 | 936 |
892 /** | 937 /** |
893 * audacious_remote_playqueue_clear: | 938 * audacious_remote_playqueue_clear: |
1001 | 1046 |
1002 g_value_unset(&value); | 1047 g_value_unset(&value); |
1003 return s; | 1048 return s; |
1004 } | 1049 } |
1005 | 1050 |
1051 /** | |
1052 * audacious_remote_eq_activate: | |
1053 * @proxy: DBus proxy for audacious | |
1054 * @active: Whether or not to activate the equalizer. | |
1055 * | |
1056 * Toggles the equalizer. | |
1057 **/ | |
1058 void audacious_remote_eq_activate(DBusGProxy *proxy, gboolean active) { | |
1059 org_atheme_audacious_equalizer_activate (proxy, active, &error); | |
1060 g_clear_error(&error); | |
1061 } |