bool
MidiRegionView::button_press (GdkEventButton* ev)
{
+ if (ev->button != 1) {
+ return false;
+ }
+
_last_x = ev->x;
_last_y = ev->y;
-
+
group->w2i (_last_x, _last_y);
if (_mouse_state != SelectTouchDragging) {
-
+
_pressed_button = ev->button;
_mouse_state = Pressed;
-
+
return true;
}
double event_x, event_y;
framepos_t event_frame = 0;
+ if (ev->button != 1) {
+ return false;
+ }
+
event_x = ev->x;
event_y = ev->y;
if (name_highlight) {
name_highlight->property_outline_what() = 0x0;
+ name_highlight->property_fill_color_rgba() = UINT_RGBA_CHANGE_A(fill_color,64);
}
}
if (name_highlight) {
name_highlight->property_outline_what() = 0x4;
+ name_highlight->property_fill_color_rgba() = fill_color;
}
}