[HELP] Get a child widget from a Notebook page #1700
-
I have a Notebook with Listbox as child for every page.
It hasn't append() function which I need, for example. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You have to cast the gtk::Widget as gtk::ListBox. |
Beta Was this translation helpful? Give feedback.
-
Also please use discussions for any questions you might have |
Beta Was this translation helpful? Give feedback.
You have to cast the gtk::Widget as gtk::ListBox.
let listbox = current_page_child.downcast::<gtk::ListBox>().unwrap()