projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add -P flag blocking port connections while loading session
[ardour.git]
/
libs
/
gtkmm2ext
/
scroomer.cc
diff --git
a/libs/gtkmm2ext/scroomer.cc
b/libs/gtkmm2ext/scroomer.cc
index 7c6d2c6350b324ebff9be05e9aea97492299b495..07e5b464528e3f9a1a8c4759b77e7811482c7185 100644
(file)
--- a/
libs/gtkmm2ext/scroomer.cc
+++ b/
libs/gtkmm2ext/scroomer.cc
@@
-18,7
+18,9
@@
*/
#include <iostream>
*/
#include <iostream>
-#include <gtkmm2ext/scroomer.h>
+
+#include "gtkmm2ext/scroomer.h"
+#include "gtkmm2ext/keyboard.h"
using namespace Gtkmm2ext;
using namespace Gtk;
using namespace Gtkmm2ext;
using namespace Gtk;
@@
-74,8
+76,8
@@
Scroomer::on_motion_notify_event (GdkEventMotion* ev)
grab_y = ev->y;
grab_y = ev->y;
- if (ev->state &
GDK_CONTROL_MASK
) {
- if (ev->state &
GDK_MOD1_MASK
) {
+ if (ev->state &
Keyboard::PrimaryModifier
) {
+ if (ev->state &
Keyboard::SecondaryModifier
) {
scale = 0.05;
} else {
scale = 0.1;
scale = 0.05;
} else {
scale = 0.1;