X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fgtkmm2ext%2Fgtkmm2ext%2Fprompter.h;h=72d9f2149bdf0bfc066958bbaedad363d64f6a87;hb=11619a37bff79c050e39e434bc9899b516cbe4a1;hp=10870ee7522909eb2e649a8b4bc4cf396927a378;hpb=45d3ec1437cf661533bc7750c623865def4424df;p=ardour.git diff --git a/libs/gtkmm2ext/gtkmm2ext/prompter.h b/libs/gtkmm2ext/gtkmm2ext/prompter.h index 10870ee752..72d9f2149b 100644 --- a/libs/gtkmm2ext/gtkmm2ext/prompter.h +++ b/libs/gtkmm2ext/gtkmm2ext/prompter.h @@ -53,17 +53,22 @@ class Prompter : public Gtk::Dialog void change_labels (std::string ok, std::string cancel); void get_result (std::string &str, bool strip=true); - bool maybe_allow_response (GdkEventKey* ); protected: Gtk::Entry& the_entry() { return entry; } + void on_entry_changed (); + void on_show (); + private: Gtk::Entry entry; Gtk::HBox entryBox; Gtk::Label entryLabel; - + bool first_show; + bool can_accept_from_entry; + void init (); + void entry_activated (); }; } /* namespace */