I’m a beginner in Rust development as well as using gtk, who started a project to help generate bootscreens for linux from video files.
The “phenomenal” UI (generated by Glade) is supposed to work like
GtkAssisant, but requires the ability to configure extra stuff like if the video should be scaled, where it should be placed, text properties (font, color, placement, etc.) and probably more.
The goal is to move from step 1-4 and add validation for each step.
Disabling the tabs is where I’m hitting a snag.
gtk_stack_get_pages, but I’m limited to gtk3.
getting the page by the page name from Glade
For example, page 2 is called
builder.get_object("step__video").unwrap() just fails.
I can’t find where
gtkbuilder.c uses that “packing” information or which property it assigns it to.
iterating over all the children of
Well, iterating works, but I don’t know if the order is stable and I can’t find a way to properly identify the tab; properly meaning it should be
page.get_text() == "3. Generation". As mentioned above, the packing information doesn’t seem to be present in a property (that I can find), so I can’t seem to use that information either.
I’ve been at it for a while and probably tried other things that I can’t remember. It’s either:
- open a
GtkAssistantdialog from a big button that replaces the stack
- Start a
GtkAssistantstraight away and add the options in a menu
- ask you guys for help