Re: gtk_clist_remove() question



"Ciemier, Christopher E. (CCIEMIER)" <CCIEMIER arinc com> writes:

> 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.

 - What version of GTK+?
 - A compilable test case is almost always extremely useful
   in reporting bugs.

See docs in gtk+/README for reporting bugs ... reporting
bugs to the bug tracker is actually preferred since otherwise
the chances are we'll forget about it.

Regards,
                                        Owen



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