Re: gtk_clist_remove() question
- From: Owen Taylor <otaylor redhat com>
- To: "Ciemier, Christopher E. (CCIEMIER)" <CCIEMIER arinc com>
- Cc: "'gtk-devel-list gnome org'" <gtk-devel-list gnome org>
- Subject: Re: gtk_clist_remove() question
- Date: 08 Nov 2001 15:27:37 -0500
"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]