-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<packing> tags not supported by builder #349
Comments
Hi! Thanks for the report! The |
I am using |
I see, that's probably the explanation then. I personally like glade, and I think that it's a real pity that it does not support gtk4. The alternative which is often proposed is to write the mainWindow :: IO Gtk.Window
mainWindow = do
mainBox <- new Gtk.Box [ #visible := True
, #canFocus := False
, #orientation := Gtk.OrientationVertical ]
recreateButton <- new Gtk.Button [ #label := "button1"
, #visible := True
, #canFocus := True
, #receivesDefault := True
, #valign := Gtk.AlignFill
, #vexpand := False ]
#append mainBox recreateButton
startFitButton <- new Gtk.ToggleButton [ #label := "button2"
, #visible := True
, #canFocus := True
, #receivesDefault := True
, #valign := Gtk.AlignFill
, #vexpand := False ]
#append mainBox startFitButton
new Gtk.Window [ #canFocus := False
, #title := "Main window"
, #child := mainBox ] I would argue that this is as readable as the XML (perhaps more), and the types are checked at compile time. Anyway, I am closing since it seems like there is little that we can do on the |
I found very useful command that convert
|
Thanks, that seems useful! |
I'm trying to use builder to create UI from XML files created by Glade. Glade creates
<packing>
tags inside various controls tags.Example ui file:
When I try to compile I get error:
I have to manually remove this tags from file every time when I edit UI.
The text was updated successfully, but these errors were encountered: