Pointer in drag'ndrop ?
- From: "Florent. Devin" <Florent Devin lifl fr>
- To: GTK List <gtk-list gnome org>
- Subject: Pointer in drag'ndrop ?
- Date: Wed, 12 Jul 2000 09:42:29 +0200
Hi,
How can I pass a pointer in my dnd function ?
You have to use gtk_selection_data_set function, but how can I put
a pointer in the data field ?
I use this function to pass string,
void source_in_connector_get (GtkWidget *widget,
GdkDragContext *context,
GtkSelectionData *selection_data,
guint info,
guint time,
gpointer data)
{
.../...
gtk_selection_data_set (selection_data, selection_data->target, 8,
data, (gint) (strlen (data)));
.../...
}
But in this function my data is a pointer to an object, so how can I
pass
something different ?
--
Florent DEVIN
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]