gtk_cell_renderer_toggle_new()



Why do all toggles get activated or deactivated in a treeview when only
one gets clicked?  Also, moving the mouse over the rows seems to
redisplay the toggles as checked or unchecked depending on the value of
the last toggle.

The program reads data from an xml file and displays it in a treeview.
Each node has a flag called "Disable".  As the xml gets read a new
record gets prepended to the treeview for each node and the toggle
should get set depending on the value of "Disable".  All the other
fields get the correct data.  However, all of the toggles get set to the
value of the last value of "Disable".  Similarly, when one of the
toggles get clicked, it seems to work until the mouse moves accross the
treeview.  Then all the toggles change to the last value of the last
toggle clicked.

Does anyone know why this happens and how to fix it?

Thanks in advance,

--dhk




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