I'm working on a GTK4 application in Rust but having difficulty understanding EntryBuffer
s. I cant seem to find a function that returns the contained text of an EntryBuffer
. I've tried to_string()
, but I always get a string containing "EntryBuffer"
instead of the actual text inputted.
let input = Entry::new();
println!("input: {}", input.buffer().to_string()); // returns "EntryBuffer"