haskell - ComboBox doesn't show any of its strings -
i started using gtk2hs (gtk3 on hackage) , have run issues comboboxes. cannot make simple comboboxnewtext display strings. have commented out unneeded in application have basic framework actual box.
import graphics.ui.gtk import control.monad.io.class main = initgui window <- windownew set window [windowtitle := "table", containerborderwidth := 20, windowdefaultwidth := 800, windowdefaultheight := 600] table <- tablenew 10 10 true containeradd window table lbox <- hboxnew false 0 rbox <- hboxnew false 0 tableattachdefaults table lbox 0 3 0 10 tableattachdefaults table rbox 3 10 0 10 cb <- comboboxnewtext comboboxappendtext cb "test" boxpackstart lbox cb packgrow 10 on window deleteevent $ liftio mainquit >> return false widgetshowall window maingui
am missing something? gtk3 marked unstable iirc on hackage, bug? or doing incorrectly? adding comboboxsetactive cb 0
doesn't either. clarify, actual combobox appears when run program, doesn't contain strings/is blank. evernote image
as daniel wagner commented, seem bug in gtk3 package on hackage. fixed commit attached issue linked https://github.com/gtk2hs/gtk2hs/issues/10
Comments
Post a Comment