13
0

Propter may accept current value

This commit is contained in:
Robin Gareus 2021-04-12 05:25:51 +02:00
parent b52c6b5c47
commit baf8fe7bc5
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -46,9 +46,12 @@ public:
entryLabel.set_label (prompt);
}
void set_initial_text (std::string txt) {
void set_initial_text (std::string txt, bool allow_replace = false) {
entry.set_text (txt);
entry.select_region (0, entry.get_text_length());
if (allow_replace) {
on_entry_changed ();
}
}
void change_labels (std::string ok, std::string cancel);