summaryrefslogtreecommitdiff
path: root/gtk2_ardour/public_editor.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-06-25 21:27:37 +0200
committerRobin Gareus <robin@gareus.org>2014-06-25 21:47:54 +0200
commita3c378cf62939c85bcfa3b4c55b68c9163c5e21e (patch)
treee12ed4ef7caf02422df4dd7378269295c5b60a95 /gtk2_ardour/public_editor.h
parent1bd4e448defb93c879bf25167cf42b6d8534eb73 (diff)
move utility functions into a dedicated namespace
Diffstat (limited to 'gtk2_ardour/public_editor.h')
-rw-r--r--gtk2_ardour/public_editor.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/public_editor.h b/gtk2_ardour/public_editor.h
index 35c75e469e..184cb77d52 100644
--- a/gtk2_ardour/public_editor.h
+++ b/gtk2_ardour/public_editor.h
@@ -84,6 +84,11 @@ class VerboseCursor;
class XMLNode;
struct SelectionRect;
+namespace ARDOUR_UI_UTILS {
+bool relay_key_press (GdkEventKey* ev, Gtk::Window* win);
+bool forward_key_press (GdkEventKey* ev);
+}
+
using ARDOUR::framepos_t;
using ARDOUR::framecnt_t;
@@ -408,8 +413,8 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulDestructible, publi
static PublicEditor* _instance;
- friend bool relay_key_press (GdkEventKey*, Gtk::Window*);
- friend bool forward_key_press (GdkEventKey*);
+ friend bool ARDOUR_UI_UTILS::relay_key_press (GdkEventKey*, Gtk::Window*);
+ friend bool ARDOUR_UI_UTILS::forward_key_press (GdkEventKey*);
PBD::Signal0<void> SnapChanged;
PBD::Signal0<void> MouseModeChanged;