Группа :: Звук
Пакет: xmms
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: xmms-1.2.6-filebrowser_get_files.patch
diff -urN xmms-1.2.6.orig/xmms/util.c xmms-1.2.6/xmms/util.c
--- xmms-1.2.6.orig/xmms/util.c Tue Jan 8 21:59:19 2002
+++ xmms-1.2.6/xmms/util.c Tue Feb 19 22:27:24 2002
@@ -730,9 +730,13 @@
/*
* There got to be some clean way to do this too
*/
- gtk_label_get(GTK_LABEL(GTK_BIN(filesel->history_pulldown)->child), &ptr);
+ ptr = gtk_file_selection_get_filename(filesel);
+ g_return_if_fail(ptr != NULL);
+ ptr = g_dirname(ptr);
+ g_return_if_fail(ptr != NULL);
/* This will give an extra slash if the current dir is the root. */
cfg.filesel_path = g_strconcat(ptr, "/", NULL);
+ g_free(ptr);
node = GTK_CLIST(filesel->file_list)->selection;
while (node)