From f76109d8734983e696959df7e7dc62722d621ccf Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 2 Nov 2014 08:54:51 -0500 Subject: use modal grab and event_is_inside_widget_window() to provide "expected" behaviour when editing in a FloatingTextEntry --- gtk2_ardour/floating_text_entry.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/floating_text_entry.h') diff --git a/gtk2_ardour/floating_text_entry.h b/gtk2_ardour/floating_text_entry.h index 41ad7f6d35..0471a19596 100644 --- a/gtk2_ardour/floating_text_entry.h +++ b/gtk2_ardour/floating_text_entry.h @@ -33,12 +33,19 @@ class FloatingTextEntry : public ArdourWindow private: Gtk::Entry entry; + bool entry_changed; + + /* handlers for Entry events */ bool key_press (GdkEventKey*); + void activated (); + bool button_press (GdkEventButton*); + void changed (); + + /* handlers for window events */ + void on_realize (); void on_hide (); - void activated (); - }; #endif // __ardour_window_h__ -- cgit v1.2.3