[prev in list] [next in list] [prev in thread] [next in thread] 

List:       alsaplayer-devel
Subject:    [Alsaplayer-devel][patch] doubleslash between path and filename in gtk_queue interface
From:       Aleksandr Koltsoff <czr () iohazard ! tts ! fi>
Date:       2003-07-13 12:50:42
[Download RAW message or body]

Hello, please cc responses, I don't subscribe to the list.

The attached patch removes two superflous slashes from within
PlaylistWindow.cpp which cause extra slash to be added to playlists
when user selects files using the gtk file selection dialog. This is
annoying, although not critical. The double-slashes get stored to
saved playlists as well.

against 0.99.75 (cvs has the same problem).

ak.


diff -Naur alsaplayer-0.99.75/interface/gtk/PlaylistWindow.cpp \
                alsaplayer-0.99.75.doubleslash/interface/gtk/PlaylistWindow.cpp
--- alsaplayer-0.99.75/interface/gtk/PlaylistWindow.cpp	2003-04-17 14:45:42.000000000 \
                +0300
+++ alsaplayer-0.99.75.doubleslash/interface/gtk/PlaylistWindow.cpp	2003-07-13 \
15:12:04.000000000 +0300 @@ -508,7 +508,7 @@
 		sel = g_strdup(gtk_entry_get_text(GTK_ENTRY(GTK_FILE_SELECTION(add_file)->selection_entry)));
  if (sel && strlen(sel)) {
 			if (!strstr(sel, "http://"))
-				paths.push_back(std::string(current_dir) + "/" + sel);
+				paths.push_back(std::string(current_dir) + sel);
 			else
 				paths.push_back(sel);
 			GDK_THREADS_LEAVE();
@@ -525,7 +525,7 @@
 		
 		gtk_clist_get_text(file_list, index, 0, &path);
 		if (path) {
-			paths.push_back(std::string(current_dir) + "/" + path);
+			paths.push_back(std::string(current_dir) + path);
 		}
 		next = next->next;
 	}


_______________________________________________
alsaplayer-devel mailing list
alsaplayer-devel@lists.tartarus.org
http://lists.tartarus.org/mailman/listinfo/alsaplayer-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic