summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/audio_clock.h')
-rw-r--r--gtk2_ardour/audio_clock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/audio_clock.h b/gtk2_ardour/audio_clock.h
index f0790dcbc8..6c2f9c838c 100644
--- a/gtk2_ardour/audio_clock.h
+++ b/gtk2_ardour/audio_clock.h
@@ -62,6 +62,8 @@ class AudioClock : public Gtk::HBox
static sigc::signal<void> ModeChanged;
static std::vector<AudioClock*> clocks;
+ static bool has_focus() { return _has_focus; }
+
private:
ARDOUR::Session *session;
Mode _mode;
@@ -171,9 +173,11 @@ class AudioClock : public Gtk::HBox
bool field_button_press_event (GdkEventButton *ev, Field);
bool field_button_release_event (GdkEventButton *ev, Field);
bool field_button_scroll_event (GdkEventScroll *ev, Field);
+ bool field_key_press_event (GdkEventKey *, Field);
bool field_key_release_event (GdkEventKey *, Field);
bool field_focus_in_event (GdkEventFocus *, Field);
bool field_focus_out_event (GdkEventFocus *, Field);
+ bool drop_focus_handler (GdkEventFocus*);
void set_smpte (nframes_t, bool);
void set_bbt (nframes_t, bool);
@@ -196,6 +200,8 @@ class AudioClock : public Gtk::HBox
void set_size_requests ();
static const uint32_t field_length[(int)AudioFrames+1];
+ static bool _has_focus;
+
};
#endif /* __audio_clock_h__ */