Rosa Mannini wrote:
>
> Hello!
>
> I found some problems to handle ctree signals. Particularly I found rather
> hard to handle selections. What does the argument node (GList) represent?
The GList is a datatype from the glib (intensively used in gtk) that
implements
linked lists. In a gtk_clist or ctree, you can handle multiple selection
by scanning
the list of rows and searching for selected rows.
Here is some sample code to scan a clist and get text put in the rows.
It should also applies for ctrees as they are related to clists.
GList *l;
gint row,i,cnt=0;
gchar **line,
if (GTK_CLIST (clist)->selection) {
line = g_new(gchar *,MAX_COL);
for (l = GTK_CLIST (clist)->selection; l; l = l->next) {
row=GPOINTER_TO_INT (l->data);
for (i=0;i<MAX_COL;i++)
gtk_clist_get_text(GTK_CLIST
(clist),row,i,&line[i]);
cnt++;
}
> Is it part of GtkCTreeNode structure? How can I use
> gtk_ctree_node_get_text(...)? It always returns false to me, even if I set
> a string of text in the cells.
Hope that helps.
/********************************************************/
/* Stéphane Genaud */
/* ICPS, Université Louis Pasteur */
/* Pôle API, Bd. S. Brant, F-67400 Illkirch */
/* tel : (33)(0)388655047, 0619058113 (SFR) */
/********************************************************/
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.