Re: clist: avoid unselecting!



how can i avoid, that the user can unselect a clist-row by clicking, so that
there is allways a row highlighted?

should i connect something to the unselect signal?

I'm not completly sure if this will work but try:

        gtk_clist_set_selection_mode(GTK_CLIST(w), GTK_SELECTION_SINGLE);

In other words, setting the clist's selection mode to
GTK_SELECTION_SINGLE. It's worked for me but I don't know for sure if it
prevents unselecting rows such that the user can unselect *all* rows.


--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]