comparison audacious/mainwin.c @ 289:8eab873f20a8 trunk

[svn] possible DND fix for konqueror. (cleaned up version of fixed version of my cleanups... i will NOT code at 3 AM again.).
author nenolod
date Wed, 14 Dec 2005 11:36:27 -0800
parents 763afa52f416
children ac6389064cf9
comparison
equal deleted inserted replaced
288:1e2bd3df8981 289:8eab873f20a8
1814 GtkSelectionData * selection_data, 1814 GtkSelectionData * selection_data,
1815 guint info, 1815 guint info,
1816 guint time, 1816 guint time,
1817 gpointer user_data) 1817 gpointer user_data)
1818 { 1818 {
1819 gchar **sourcelist, *path; 1819 gchar **iter, **sourcelist, *path;
1820 gchar *decoded; 1820 gchar *decoded;
1821 gboolean not_font = FALSE; 1821 gboolean not_font = FALSE;
1822 1822
1823 if (!selection_data->data) 1823 if (!selection_data->data)
1824 { 1824 {
1825 g_warning("DND data string is NULL"); 1825 g_warning("DND data string is NULL");
1826 return; 1826 return;
1827 } 1827 }
1828 1828
1829 sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1); 1829 iter = sourcelist = g_strsplit((gchar *)(selection_data->data),"\r\n",-1);
1830 1830
1831 for (path = *sourcelist; *path; path = *(++sourcelist)) 1831 for (path = *sourcelist; path, *path; path = *(++sourcelist))
1832 { 1832 {
1833 if (str_has_prefix_nocase(path, "fonts:///")) 1833 if (str_has_prefix_nocase(path, "fonts:///"))
1834 { 1834 {
1835 path += 8; 1835 path += 8;
1836 1836
1857 playlist_clear(); 1857 playlist_clear();
1858 not_font = TRUE; 1858 not_font = TRUE;
1859 } 1859 }
1860 playlist_add_url(path); 1860 playlist_add_url(path);
1861 } 1861 }
1862
1863 } 1862 }
1864 1863
1865 g_strfreev(sourcelist); 1864 g_strfreev(iter);
1866 1865
1867 if (not_font) 1866 if (not_font)
1868 bmp_playback_initiate(); 1867 bmp_playback_initiate();
1869 } 1868 }
1870 1869