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
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
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,
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