[gtkada] Error when using a COMBO

Congedo François congedofr at hotmail.com
Tue Nov 4 15:38:54 CET 2003


I'm working with the library GTKAda for an application with the language ADA-95. I have a problem when using a GTK-COMBO, with a dynamic list of elements. When trying to show the COMBO after having deleted some items, I get the following error:

 

(main:2348): Gdk-WARNING **: [Invalid UTF-8] gdkpixmap-win32.c:200: GetDC failed
: Window Handle not valid.

 

(main:2348): Gdk-WARNING **: [Invalid UTF-8] gdkpixmap-win32.c:112: DeleteObject
 failed: Window Handle not valid.

 

 

Here is the coding used:

 

        -- List creation.

        the_List : String_List.Glist;
    begin

        -- Filling the list.
        for I in Tab'Range loop
            String_List.Append(the_List , Tab(I)); -- Tab(i)=item to show
        end loop;

        -- attach the list to the combo.
        Gtk.Combo.Set_Popdown_Strings (myWindow.myCombo, the_List);

        -- free the memory.
        String_List.Free(the_List);

 

If someone could help, I would be very pleased. 

Thanks.



--------------------------------------------------------------------------------

Congedo François
Diplômant HES
avenue Godefroy, 5
1208 Genève
Tel : 022 / 735 61 72      Natel : 076 / 544 01 71
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/gtkada/attachments/20031104/e8202185/attachment.htm 


More information about the gtkada mailing list