Skip to content

WidgetTemplate as child of a Stack #502

Answered by eminfedar
eminfedar asked this question in Q&A
Discussion options

You must be logged in to vote

Actually it is working (my error was something else):

adw::ToastOverlay {
        #[wrap(Some)]
        set_child = &gtk::Stack{
        set_margin_all: 11,
        set_margin_top: 7,

        #[template]
        add_child = &SettingsPage {} -> {
            set_name: "settings",
        },

        #[template]
        add_child = &MainPage {} -> {
            set_name: "main",
        },
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eminfedar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant