Adding nth child to Dazzle.Multipaned

Hello all!

I’m currently using Dazzle.Multipaned to implement my application. I’ve found myself in a situation where I need to dynamically add child widgets to the Multipaned widget, but in the second-to-last position, so I can’t just call add directly. Is there a way to add a child in a specific position? Or a way to insert a widget and have it always be packed at the end regardless of when I added it to the parent?

You can use the index child property. In C that would look something like:

gtk_container_child_set (GTK_CONTAINER (multi_paned), GTK_WIDGET (child),
                         "index", 3,
                         NULL);
1 Like

Thanks that helped me, too.

Maybe Christian’s new library is your choice:

Christian Hergert / libpanel · GitLab (gnome.org)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.