GtkTargetEntry and GtkSelectionData
- From: Vikram Noel Ambrose <noel ambrose gmail com>
- To: gtk-list gnome org
- Subject: GtkTargetEntry and GtkSelectionData
- Date: Fri, 18 Dec 2009 13:58:06 -0500
I'm trying to understand how to pass data around from one treeview to
another using the Drag-and-Drop mechanism.
For example, say both treeviews, have a list store of the following
structure:
list_store = gtk_list_store_new(4,
G_TYPE_STRING,G_TYPE_STRING,G_TYPE_INT,G_TYPE_FLOAT);
How do we define GtkTargetEntry for this sort of structure?
The manual says GtkTargetEntry.info allows you to identify the type of
data. But where do you retrieve this information from in the
"drag-data-received" signal of the destination treeview?
How do you supply all components (columns) of the list_store to
gtk_selection_data_set()?. And consequently, how do you retrieve all
columns from the "drag-data-received" callback?
In essence I'm trying to understand how GtkTargetEntry and
GtkSelectionData are related.
Thanks,
Vikram.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]