mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
NO-OP: whitespace, indent
This commit is contained in:
parent
8a7e452265
commit
50303d90bd
8 changed files with 264 additions and 267 deletions
|
|
@ -88,14 +88,14 @@ bool
|
||||||
Editor::mouse_sample (samplepos_t& where, bool& in_track_canvas) const
|
Editor::mouse_sample (samplepos_t& where, bool& in_track_canvas) const
|
||||||
{
|
{
|
||||||
/* gdk_window_get_pointer() has X11's XQueryPointer semantics in that it only
|
/* gdk_window_get_pointer() has X11's XQueryPointer semantics in that it only
|
||||||
pays attentions to subwindows. this means that menu windows are ignored, and
|
* pays attentions to subwindows. this means that menu windows are ignored, and
|
||||||
if the pointer is in a menu, the return window from the call will be the
|
* if the pointer is in a menu, the return window from the call will be the
|
||||||
the regular subwindow *under* the menu.
|
* the regular subwindow *under* the menu.
|
||||||
|
*
|
||||||
this matters quite a lot if the pointer is moving around in a menu that overlaps
|
* this matters quite a lot if the pointer is moving around in a menu that overlaps
|
||||||
the track canvas because we will believe that we are within the track canvas
|
* the track canvas because we will believe that we are within the track canvas
|
||||||
when we are not. therefore, we track enter/leave events for the track canvas
|
* when we are not. therefore, we track enter/leave events for the track canvas
|
||||||
and allow that to override the result of gdk_window_get_pointer().
|
* and allow that to override the result of gdk_window_get_pointer().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!within_track_canvas) {
|
if (!within_track_canvas) {
|
||||||
|
|
@ -420,18 +420,17 @@ Editor::step_mouse_mode (bool next)
|
||||||
void
|
void
|
||||||
Editor::button_selection (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_type)
|
Editor::button_selection (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_type)
|
||||||
{
|
{
|
||||||
|
|
||||||
/* in object/audition/timefx/gain-automation mode,
|
/* in object/audition/timefx/gain-automation mode,
|
||||||
any button press sets the selection if the object
|
* any button press sets the selection if the object
|
||||||
can be selected. this is a bit of hack, because
|
* can be selected. this is a bit of hack, because
|
||||||
we want to avoid this if the mouse operation is a
|
* we want to avoid this if the mouse operation is a
|
||||||
region alignment.
|
* region alignment.
|
||||||
|
*
|
||||||
note: not dbl-click or triple-click
|
* note: not dbl-click or triple-click
|
||||||
|
*
|
||||||
Also note that there is no region selection in internal edit mode, otherwise
|
* Also note that there is no region selection in internal edit mode, otherwise
|
||||||
for operations operating on the selection (e.g. cut) it is not obvious whether
|
* for operations operating on the selection (e.g. cut) it is not obvious whether
|
||||||
to cut notes or regions.
|
* to cut notes or regions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
MouseMode eff_mouse_mode = effective_mouse_mode ();
|
MouseMode eff_mouse_mode = effective_mouse_mode ();
|
||||||
|
|
@ -1399,8 +1398,7 @@ Editor::button_press_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemTyp
|
||||||
bool
|
bool
|
||||||
Editor::button_press_dispatch (GdkEventButton* ev)
|
Editor::button_press_dispatch (GdkEventButton* ev)
|
||||||
{
|
{
|
||||||
/* this function is intended only for buttons 4 and above.
|
/* this function is intended only for buttons 4 and above. */
|
||||||
*/
|
|
||||||
|
|
||||||
Gtkmm2ext::MouseButton b (ev->state, ev->button);
|
Gtkmm2ext::MouseButton b (ev->state, ev->button);
|
||||||
return button_bindings->activate (b, Gtkmm2ext::Bindings::Press);
|
return button_bindings->activate (b, Gtkmm2ext::Bindings::Press);
|
||||||
|
|
@ -1409,8 +1407,7 @@ Editor::button_press_dispatch (GdkEventButton* ev)
|
||||||
bool
|
bool
|
||||||
Editor::button_release_dispatch (GdkEventButton* ev)
|
Editor::button_release_dispatch (GdkEventButton* ev)
|
||||||
{
|
{
|
||||||
/* this function is intended only for buttons 4 and above.
|
/* this function is intended only for buttons 4 and above. */
|
||||||
*/
|
|
||||||
|
|
||||||
Gtkmm2ext::MouseButton b (ev->state, ev->button);
|
Gtkmm2ext::MouseButton b (ev->state, ev->button);
|
||||||
return button_bindings->activate (b, Gtkmm2ext::Bindings::Release);
|
return button_bindings->activate (b, Gtkmm2ext::Bindings::Release);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue