I have started to port some programs from Windows to Linux.
I got stuck right away with an editable combobox.
The code below works in Windows.
If an item in the combobox is selected, it gets displayed.
On Linux I get [WARNING] Gtk (CRITICAL): gtk_entry_set_text: assertion 'text != NULL' failed
Is that a bug? Should it work? Or is there a workaround?
Thanks
Code: Select all
Procedure Window(x = 0, y = 0, width = 300, height = 200)
Window_0 = OpenWindow(#PB_Any, x, y, width, height, "", #PB_Window_SystemMenu)
Combo_0 = ComboBoxGadget(#PB_Any, 10, 10, 200, 20, #PB_ComboBox_Editable)
AddGadgetItem(Combo_0, -1, "bla1")
AddGadgetItem(Combo_0, -1, "bla2")
AddGadgetItem(Combo_0, -1, "bla3")
AddGadgetItem(Combo_0, -1, "bla4")
EndProcedure
Procedure Events()
Repeat
EventID = WaitWindowEvent()
Until EventID=#PB_Event_CloseWindow
EndProcedure
Window()
Events()