Re: CList manipulation

2000-10-24 Thread Darin Fisher
Andreas Scherf wrote: > Carl Seleborg wrote: > >> Hi all, >> >> I am very new to GTK, so if my questions are too basic, please point me to a >> good FAQ. :-) >> >> I'm fooling around with the CList widget, and after having gone though the >> header file for the widget, there seems (to me) to

Re: CList manipulation

2000-10-24 Thread Andreas Scherf
Carl Seleborg wrote: > > Hi all, > > I am very new to GTK, so if my questions are too basic, please point me to a > good FAQ. :-) > > I'm fooling around with the CList widget, and after having gone though the > header file for the widget, there seems (to me) to exist no simple way to > determin

Re: CList manipulation

2000-10-24 Thread Maher Awamy
This is how you do it: GList *selection; gint row; selection = GTK_CLIST(clist)->selection; if (!selection) { g_print("No selected rows\n"); } else { row = (gint) g_list_nth_data(selection,0); g_print("There are selected rows and the row is %d\n"); } HTH Maher On Tue,

CList manipulation

2000-10-24 Thread Carl Seleborg
Hi all, I am very new to GTK, so if my questions are too basic, please point me to a good FAQ. :-) I'm fooling around with the CList widget, and after having gone though the header file for the widget, there seems (to me) to exist no simple way to determine the selected row of a single-selection