Re: [gtk-list] Re: GtkCTreeNode
- From: Vandoorselaere Yoann <yoann roco-productions com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: GtkCTreeNode
- Date: Mon, 21 Dec 1998 15:43:30 +0100
Dave Cole wrote:
> > I'm currently writing an application using the ctree widget...
> > anybody could tell me what is the way to get the data pointer from a
> > selected node ?
>
> gtk_ctree_node_get_row_data(ctree, node)
>
> This will return the user data pointer that you previously stored via
> gtk_ctree_node_set_row_data().
>
> To react to the user selecting nodes in the ctree, use the
> "tree_select_row" signal on the GtkCTree widget.
>
> - Dave
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GCS dpu s-:+ a C++$ ULS++$ P+++$>++++ L++>+++$ E+>++ W N++ !o K w++$ O !M-
> !V(-) PS+ PE- Y+ PGP !t-- 5++ X R tv b+ DI+++ D G e++ h--- r+++ y++++
> ------END GEEK CODE BLOCK------
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
This is what i've done :
gtk_signal_connect(GTK_OBJECT(ctree), "tree_select_row",
GTK_SIGNAL_FUNC(get_ctree_row), NULL);
in gtk_ctree_row :void get_ctree_row(GtkCTree *ctree, GtkCTreeNode *row, gint
column) {
selected = row;
}
after:
data = gtk_ctree_node_get_row_data(GTK_CTREE(ctree), selected);
it return NULL
idea ?
--
-- Yoann
It is well known that M$ products don't call free() after a malloc()
The unix community wishes them "good luck" for their future development...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]