Combox gtk_entry_set_text: assertion 'text != NULL'

Linux specific forum
User avatar
wichtel
User
User
Posts: 71
Joined: Fri May 02, 2003 11:14 am
Location: Germany
Contact:

Combox gtk_entry_set_text: assertion 'text != NULL'

Post by wichtel »

Hi,
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()

PB 5.40 LTS, W7,8,10 64bit and Mint x64
Oma
Enthusiast
Enthusiast
Posts: 312
Joined: Thu Jun 26, 2014 9:17 am
Location: Germany

Re: Combox gtk_entry_set_text: assertion 'text != NULL'

Post by Oma »

Hi wichtel,

confirmed on PB5.40 and PB5.31 with gtk3. It works on gtk2.
It should be posted in Linux-Bugs.

Regards, Charly
PureBasic 5.4-5.7, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de
User avatar
wichtel
User
User
Posts: 71
Joined: Fri May 02, 2003 11:14 am
Location: Germany
Contact:

Re: Combox gtk_entry_set_text: assertion 'text != NULL'

Post by wichtel »

Thank you.
I wonder as libgtk-3-dev was part of the install prerequisites.
PB 5.40 LTS, W7,8,10 64bit and Mint x64
Post Reply