changeset 4595:d69b2bcea170

NO_PLAY_BUTTON and PLAY_BUTTON defines don't quite make sense
author Tomasz Mon <desowin@gmail.com>
date Fri, 30 May 2008 16:05:03 +0200
parents 974b7a03152a
children a77d02342ee1
files src/audacious/ui_fileopener.c src/audacious/ui_fileopener.h src/audacious/ui_main.c src/audacious/ui_playlist.c
diffstat 4 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_fileopener.c	Fri May 30 14:29:14 2008 +0200
+++ b/src/audacious/ui_fileopener.c	Fri May 30 16:05:03 2008 +0200
@@ -458,7 +458,9 @@
  * util_run_filebrowser(gboolean play_button)
  *
  * Inputs:
- *     - whether or not a play button should be used
+ *     - gboolean play_button
+ *       TRUE  - open files
+ *       FALSE - add files
  *
  * Outputs:
  *     - none
--- a/src/audacious/ui_fileopener.h	Fri May 30 14:29:14 2008 +0200
+++ b/src/audacious/ui_fileopener.h	Fri May 30 16:05:03 2008 +0200
@@ -22,9 +22,6 @@
 
 #include <gtk/gtk.h>
 
-#define NO_PLAY_BUTTON  FALSE
-#define PLAY_BUTTON     TRUE
-
 void run_filebrowser(gboolean clear_pl_on_ok);
 void hide_filebrowser(void);
 
--- a/src/audacious/ui_main.c	Fri May 30 14:29:14 2008 +0200
+++ b/src/audacious/ui_main.c	Fri May 30 16:05:03 2008 +0200
@@ -1271,7 +1271,7 @@
 void
 mainwin_eject_pushed(void)
 {
-    run_filebrowser(PLAY_BUTTON);
+    run_filebrowser(TRUE);
 }
 
 void
@@ -1758,7 +1758,7 @@
             show_about_window();
             break;
         case MAINWIN_GENERAL_PLAYFILE:
-            run_filebrowser(NO_PLAY_BUTTON);
+            run_filebrowser(FALSE);
             break;
         case MAINWIN_GENERAL_PLAYLOCATION:
             mainwin_show_add_url_window();
@@ -2723,7 +2723,7 @@
 void
 action_play_file( void )
 {
-    run_filebrowser(PLAY_BUTTON);
+    run_filebrowser(TRUE);
 }
 
 void
--- a/src/audacious/ui_playlist.c	Fri May 30 14:29:14 2008 +0200
+++ b/src/audacious/ui_playlist.c	Fri May 30 16:05:03 2008 +0200
@@ -688,7 +688,7 @@
 static void
 playlistwin_show_filebrowser(void)
 {
-    run_filebrowser(NO_PLAY_BUTTON);
+    run_filebrowser(FALSE);
 }
 
 static void
@@ -1796,7 +1796,7 @@
 void
 action_playlist_add_files(void)
 {
-    run_filebrowser(NO_PLAY_BUTTON);
+    run_filebrowser(FALSE);
 }
 
 void