projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f76109d
)
repropagate button press event outside of FloatingTextEntry so that the click is...
author
Paul Davis
<paul@linuxaudiosystems.com>
Sun, 2 Nov 2014 16:25:31 +0000
(11:25 -0500)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Sun, 2 Nov 2014 16:25:49 +0000
(11:25 -0500)
gtk2_ardour/floating_text_entry.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/floating_text_entry.cc
b/gtk2_ardour/floating_text_entry.cc
index 0df7221c84417d2326fca9224b0c9af6edfffce0..6808a1f2c164a6a44c7558ec5bce2947535c7e2a 100644
(file)
--- a/
gtk2_ardour/floating_text_entry.cc
+++ b/
gtk2_ardour/floating_text_entry.cc
@@
-65,12
+65,18
@@
FloatingTextEntry::button_press (GdkEventButton* ev)
/* Clicked outside widget window - edit is done */
+ entry.remove_modal_grab ();
+
+ /* arrange re-propagation of the event once we go idle */
+
+ Glib::signal_idle().connect (sigc::bind_return (sigc::bind (sigc::ptr_fun (gtk_main_do_event), gdk_event_copy ((GdkEvent*) ev)), false));
+
if (entry_changed) {
use_text (entry.get_text ());
}
delete_when_idle ( this);
-
+
return false;
}