GtkTreeView DND
- From: Paul Pogonyshev <pogonyshev gmx net>
- To: gtk-app-devel-list gnome org
- Subject: GtkTreeView DND
- Date: Mon, 22 Mar 2004 00:30:50 +0200
I installed a callback to a GtkTreeModel's (GtkListStore)
`row-inserted' signal. It gets called and tree path and
iterator both seem fine, but I cannot get values from
the inserted row---it just returns NULL's.
static void
handle_drag_and_drop(GtkTreeModel *tree_model,
GtkTreePath *tree_path, GtkTreeIter *iterator)
{
MyDataFormat *data;
gtk_tree_model_get(tree_model, iterator,
MY_DATA_COLUMN, &data, -1);
/* FAILS */
assert(data);
}
Everywhere else gtk_tree_model_get() works just fine and
the data is never NULL. Any ideas? I tried to connect
with both g_signal_connect() and g_signal_connect_after().
Paul
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]