summaryrefslogtreecommitdiff
path: root/libs/widgets/widgets/prompter.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-05-18 16:01:56 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-05-18 16:04:41 -0600
commit618c7a6bf26949461039f8b379f45ae2a9491668 (patch)
tree9017e61f441b8ef5328f956435c109418443d1d3 /libs/widgets/widgets/prompter.h
parent4c8f562053e20e926d750cea85cf5d257475c3e6 (diff)
tweak Prompter API to allow skipping the default "Cancel" button
Diffstat (limited to 'libs/widgets/widgets/prompter.h')
-rw-r--r--libs/widgets/widgets/prompter.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/widgets/widgets/prompter.h b/libs/widgets/widgets/prompter.h
index afe6733d1b..94e0ad65cc 100644
--- a/libs/widgets/widgets/prompter.h
+++ b/libs/widgets/widgets/prompter.h
@@ -38,8 +38,8 @@ namespace ArdourWidgets {
class LIBWIDGETS_API Prompter : public Gtk::Dialog
{
public:
- Prompter (bool modal = false);
- Prompter (Gtk::Window& parent, bool modal = false);
+ Prompter (bool modal = false, bool with_cancel_button = true);
+ Prompter (Gtk::Window& parent, bool modal = false, bool with_cancel_button = true);
~Prompter () {};
void set_prompt (std::string prompt) {
@@ -68,7 +68,7 @@ private:
bool first_show;
bool can_accept_from_entry;
- void init ();
+ void init (bool with_cancel);
void entry_activated ();
};