gtk_selection_data_get_text on drag and drop

2011-05-17 Thread Thibault Duponchelle
Hi, I have a question about drag and drop handling. Currently, I've add this code to handle drag and drop : gtk_drag_dest_set(emuwin, GTK_DEST_DEFAULT_ALL, NULL, 0, GDK_ACTION_COPY); gtk_drag_dest_add_text_targets(emuwin); g_signal_connect(emuwin, "drag-data-received", G_CALLBACK(on_drag_and_dro

Re: gtk_selection_data_get_text on drag and drop

2011-05-17 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/17/2011 09:07 AM, Thibault Duponchelle wrote: > Hi, > > I have a question about drag and drop handling. > > Currently, I've add this code to handle drag and drop : > > gtk_drag_dest_set(emuwin, GTK_DEST_DEFAULT_ALL, NULL, 0, GDK_ACTION_COPY);

gtk_selection_data_get_text on drag and drop

2011-05-17 Thread Thibault Duponchelle
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) { > >file