How to get the event in a g_signal_connect treeview callback ??
- From: <segv-tomate freesurf fr>
- To: <gtk-app-devel-list gnome org>
- Subject: How to get the event in a g_signal_connect treeview callback ??
- Date: Wed, 20 Nov 2002 11:57:05 +0100 (CET)
hi,
i have a treeview, and when a click on it, a call back is called and i
receive a GtkTreeSelection pointer
i have defined like this :
store = gtk_tree_store_new (N_COLUMNS,
G_TYPE_STRING, G_TYPE_STRING, GDK_TYPE_PIXBUF,
G_TYPE_STRING, GDK_TYPE_PIXBUF);
gtk_object_set_data (GTK_OBJECT(win), "store_tree", store);
tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
select = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree));
g_signal_connect (G_OBJECT (select), "changed",
G_CALLBACK (tree_selection_changed_cb),
NULL);
the callback is defined :
void
tree_selection_changed_cb (GtkTreeSelection *selection, gpointer data)
so when i click on the tree, i know which one was, but i don't know which
button was pressed
how can i know it???
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]