Re: CList manipulation
- From: "Maher Awamy" <muhri muhri net>
- To: Carl Seleborg <carl seleborg ifrance com>, gtk-list gnome org
- Subject: Re: CList manipulation
- Date: 24 Oct 2000 16:40:00 CDT
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, 24 Oct 2000 23:30:20 +0200, Carl Seleborg said:
> 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 list, or at least to know if a
> row is selected. Is there something I have missed? Should I look somewhere else?
>
> Thanks in advance for your answers.
> -- Carl
>
> ______________________________________________________________________________
> Vous avez un site perso ?
> 2 millions de francs à gagner sur i(france) !
> Webmasters : ZE CONCOURS ! http://www.ifrance.com/_reloc/concours.emailif
>
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
--
muhri muhri net -- http://www.muhri.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]