[Gambas-user] Issue 17 in gambas: ComboBox.Add("item", idx) fails with GTK

gambas at ...2524... gambas at ...2524...
Thu Jan 27 09:23:35 CET 2011


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 17 by sot... at ...626...: ComboBox.Add("item",idx) fails with GTK
http://code.google.com/p/gambas/issues/detail?id=17

1) Describe the problem.
    Adding an item at given index to a CombobBox does not set the correct  
index.
    The inserted item appear at index+1 in the list. Try:
    ...
    ComboBox.List=["item1","item2","item3"]
    ComboBox.Add("Pick one...",0)
    ...
    With ComboBox.ReadOnly = true the text shown into the combo is. "Item1"
    opening  the list you see:
    Item1
    Pick one...
    Item 2
    Item 3

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: gb3 3496
Operating system: Linux
Distribution: Ubuntu 10.10
Architecture: x86_64
GUI component: GTK+
Desktop used: Gnome

3) Provide a little project that reproduces the bug or the crash.
    test.gz attached

4) If your project needs a database, try to provide it, or part of it.

5) Explain clearly how to reproduce the bug or the crash.

6) By doing that carefully, you have done 50% of the bug fix job!



Attachments:
	test.tar.gz  5.1 KB





More information about the User mailing list