gtk_clist_remove() question



Hello,

I have encountered a few problems with the gtk_clist_remove() function.
When attempting to delete the last row in a clist (running in
GTK_SELECTION_BROWSE mode), the row is properly removed from view, but GTK
does not automatically select a new row.  This does not comply with the
concept of the "browse" mode.

The problem also surfaces in the "select_row" callback.  When the callback
is executed (right after gtk_clist_remove() is called), invalid row data is
passed.  The value provided is out of bounds by one row.  For example, if
the list has 5 rows, the callback is made with a "row value" of 5 (when it
should be 4, due to index considerations).  

The gtk_clist_remove() function appears to work fine as long as there is no
attempt to delete the last row.  Any ideas or work-arounds are appreciated.

--Chris



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