i'm working on a gtk proyect using haskell. I have a table and a textview in an horizontalBox, and i need to scroll this table at the same time as the textview. I've tried some combinations but i couldn't do it.
This is mi code with the scrollingWindow working only for the textView.
vb <- vBoxNew False 0
containerAdd window vb
boxPackStart vb toolbar PackNatural 2
hseparator <- hSeparatorNew
boxPackStart vb hseparator PackNatural 2
horizontalBox <- hBoxNew False 5
sw <- scrolledWindowNew Nothing Nothing
containerAdd vb horizontalBox
table<- tableNew totalRows 1 True
tableGetColSpacing table 0
widgetSetSizeRequest table 50 675
containerAdd horizontalBox table
textview <- textViewNew
textViewSetWrapMode textview WrapChar
widgetSetSizeRequest textview 700 400
containerAdd sw textview
containerAdd horizontalBox sw