summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/barcontroller.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-07-12 19:07:07 +0200
committerPaul Davis <paul@linuxaudiosystems.com>2013-08-08 15:23:08 -0400
commita0ac0dca85417601e5792b04aabe9687868a9141 (patch)
tree5406e04c32c83ae4287cf2ce9314878adea77c2a /libs/gtkmm2ext/barcontroller.cc
parent443c0a22403e7ba95ebdd0efa71a572241c9d73d (diff)
implement visual-sensitivity (gray out) for faders
Note: bar-controller sensitivity state is not yet set if automation-mode changes to/from play, but the widget now supports that.
Diffstat (limited to 'libs/gtkmm2ext/barcontroller.cc')
-rw-r--r--libs/gtkmm2ext/barcontroller.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/barcontroller.cc b/libs/gtkmm2ext/barcontroller.cc
index 50c21e57e7..693151aaed 100644
--- a/libs/gtkmm2ext/barcontroller.cc
+++ b/libs/gtkmm2ext/barcontroller.cc
@@ -468,6 +468,12 @@ BarController::expose (GdkEventExpose* /*event*/)
break;
}
+ if (!darea.get_sensitive()) {
+ rounded_rectangle (context, 0, 0, darea.get_width(), darea.get_height(), 3);
+ context->set_source_rgba (0.505, 0.517, 0.525, 0.6);
+ context->fill ();
+ }
+
/* draw label */
double xpos = -1;