Re: Deleting items from a combobox

From: Mark Siner <msiner_at_gmail.com>
Date: Fri, 25 May 2007 06:35:39 -0700
To: "Dmitry Karasik" <dmitry_at_karasik.eu.org>

I was looking at the "methods" section of Prima::ListViewer. Here is
what it says:

delete_items ITEMS

    Deletes items from the list. ITEMS can be either an array, or a
reference to an array of item indices.

The ambiguity is that the contents of the ITEMS list are undefined.
Initially, I thought that the list contains the actual items to be
deleted and an array reference would contain indices. But after
looking at the listbox.pl example, it seems that it is a list of
indices as well. I think the problem is that you name the list ITEMS
when the list does not actually contain the same items that are in the
ListViewer. The method add_items also uses ITEMS, but does actually
pass items to be contained in the ListViewer. For delete_items, it
should possibly be INDICES instead of ITEMS. How does that sound? My
understanding of ComboBox and ListViewer may be incorrect.

-- 
Mark Siner
www.cs.arizona.edu/people/msiner
On 25 May 2007 08:59:06 +0200, Dmitry Karasik <dmitry_at_karasik.eu.org> wrote:
>         Hi Mark!
>
> On 24 May 07 at 19:34, "Mark" (Mark Siner) wrote:
>
>  Mark> The documentation seems a bit strange for these functions.
>
> If you can tell me what's strange, or better, send a patch, I'd definitely
> fix it.
>
>
> --
> Sincerely,
>         Dmitry Karasik
>
>
Received on Fri 25 May 2007 - 15:36:00 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET