I'm writing a simple calculator in GTK using Haskell and the gtk2hs bindings. I'm trying to implement a Basic/Scientific view like in windows calculator using Glade.
I've got a GTKTable of buttons, but when I try and hide some of them a blank space is left where the buttons where. To hide the buttons I'm have some code like this:
bSqrt <- xmlGetWidget xml castToButton "bSqrt"
widgetHide bSqrt
But when I hide the four buttons I want I have a gap like below on the right hand side:
I'm new to GTK and I couldn't find layout managers like you get in java swing. Is there an easier way to do this? Can I somehow invoke the layout manager to resize the buttons for me? I haven't been able to find a method for doing this in the documentation.
Thanks in advance,