You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
Adding the line println!("Time from label: {}", label.text().as_str()); below it works. However a breakpoint there with gdb fails to yield a string in the console
(gdb) print label.text().as_str()
Could not find function named 'gtk::auto::label::Label::text'
(gdb) print gtk::auto::label::LabelExt::text(label)
No symbol 'gtk::auto::label::LabelExt::text' in current context
Looking at label itself doesn't help either as I don't know how to call the functions I want from inner or pointer
That's a general Rust question, nothing really to do with gtk-rs or gtk. Can you ask that on https://users.rust-lang.org and link your question from here?
When debugging with
gdb
, it's not clear how to call functions of gtk objects.Take this for example
gtk3-rs/examples/clock/main.rs
Line 19 in 8b57ba7
Adding the line
println!("Time from label: {}", label.text().as_str());
below it works. However a breakpoint there withgdb
fails to yield a string in the consoleLooking at
label
itself doesn't help either as I don't know how to call the functions I want frominner
orpointer
How do I use
gdb
withgtk-rs
?The text was updated successfully, but these errors were encountered: