bool
AudioClock::button_release (GdkEventButton *ev, CairoCell* cell)
{
- cerr << "button press, cell = " << cell << endl;
-
if (dragging) {
gdk_pointer_ungrab (GDK_CURRENT_TIME);
dragging = false;
bool
AudioClock::scroll (GdkEventScroll *ev, CairoCell* cell)
{
- if (_session == 0) {
+ if (_session == 0 || !editable) {
return false;
}
{
disconnect_signals ();
- if (editable) {
- scroll_connection = display->scroll.connect (sigc::mem_fun (*this, &AudioClock::scroll));
- button_press_connection = display->button_press.connect (sigc::mem_fun (*this, &AudioClock::button_press));
- button_release_connection = display->button_release.connect (sigc::mem_fun (*this, &AudioClock::button_release));
- }
+ scroll_connection = display->scroll.connect (sigc::mem_fun (*this, &AudioClock::scroll));
+ button_press_connection = display->button_press.connect (sigc::mem_fun (*this, &AudioClock::button_press));
+ button_release_connection = display->button_release.connect (sigc::mem_fun (*this, &AudioClock::button_release));
}
void