gtk_selection_data_get_text on drag and drop



Hi,

Nothing is wrong with your code, except the ugly hack..

You probably need to do something like list

gchar **list;
gint i = 0;

list = g_uri_list_extract_uris((const gchar *)
gtk_selection_data_get_data(selection_data));

if (list) {
while (list[i] != NULL) {

       filename = g_filename_from_uri(list[i], NULL, NULL);
       i++'
}
g_strfreev(list)
}

Hope that helps,

Kevin


This was exactly what I need... thank you! :)
I tested it and it works perfectly and it allows to get multiple
filenames...

Thank you very very much.

Best regards.

Thibault



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]