summaryrefslogtreecommitdiff
path: root/gtk2_ardour/session_dialog.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-03-24 00:00:33 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-03-24 14:10:39 -0600
commitccc9042bf27f47628836dac33a52f71f9af96587 (patch)
tree1fefbbae47fb3b574cc17065d8b3c4c19aaa5d44 /gtk2_ardour/session_dialog.h
parent78cf1ed1194e54348f23ea66ed5d7cc693b2a65d (diff)
detect whether or not user edited the name for a new session
Suprisingly hard/irritating. Thanks, GTK! (Gtk::Entry::set_text() emits all the same signals that actual user interaction can trigger, except for key events)
Diffstat (limited to 'gtk2_ardour/session_dialog.h')
-rw-r--r--gtk2_ardour/session_dialog.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/session_dialog.h b/gtk2_ardour/session_dialog.h
index 49a0084f52..728572bee7 100644
--- a/gtk2_ardour/session_dialog.h
+++ b/gtk2_ardour/session_dialog.h
@@ -65,6 +65,7 @@ public:
void set_provided_session (std::string const & name, std::string const & path);
void clear_name ();
+ bool was_new_name_edited() const { return new_name_was_edited; }
private:
bool new_only;
@@ -143,6 +144,9 @@ private:
void setup_new_session_page ();
Gtk::Entry new_name_entry;
+ bool new_name_was_edited;
+ bool new_name_edited (GdkEventKey*);
+
Gtk::FileChooserButton new_folder_chooser;
struct SessionTemplateColumns : public Gtk::TreeModel::ColumnRecord {