Re: Highlight row in tree view



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Aug 18, 2006 at 09:03:44AM +1000, Donald Malcolm wrote:
I have a tree view. In my program I want to highlight (select/set focus)
one row of the tree view. That highlighted row should be the same as if
the user had clicked on that row.

Please let me know how I may set the row.

You might want to try:
        gtk_widget_set_state(cell, GTK_STATE_SELECTED);
        ...
        gtk_widget_set_state(cell, GTK_STATE_NORMAL);

But see the manual for caveats and counterindications :-)

HTH
- -- tomÃÂs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFE5VKcBcgs9XrR2kYRAqA6AJ9TETYySffp7dh4KJ/3IyjWoC/GrACfWORp
VQZFfyZB/LmaR7+4lZzcHzM=
=/j/u
-----END PGP SIGNATURE-----




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