RE: Reposting [INIMSS] How to get the currently selected row of a GtkCList?
- From: martyn 2 russell bt com
- To: gtk-app-devel-list gnome org
- Subject: RE: Reposting [INIMSS] How to get the currently selected row of a GtkCList?
- Date: Mon, 4 Feb 2002 17:33:04 -0000
This is one way to do it....
**************************************************************************
gint count = clist->rows;
GList *list = NULL;
for(index=0;index<count;index++)
{
list = g_list_nth(clist->row_list, index);
if(GTK_CLIST_ROW(list)->state == GTK_STATE_SELECTED)
/* selected item */
}
**************************************************************************
Martyn
-----Original Message-----
From: Dino Cherian K [mailto:inimss yahoo com]
Sent: 04 February 2002 15:32
To: gtk-app-devel
Subject: Reposting [INIMSS] How to get the currently selected row of a
GtkCList?
Hi
How can I get the currently selected row of a GtkCList, from an event
handler of another widget?
For Example, how to get the currently selected row's number from a
"button_click" event handler.
Thanks
Dino CK
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]