summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-11-26 00:29:12 +0000
committerCarl Hetherington <carl@carlh.net>2010-11-26 00:29:12 +0000
commit1539ac1b9661f0c0bb313d8f0d9a72b6dc95aaf1 (patch)
tree4fb53c3a175339a899f39a7a8598d75aed254f02 /libs
parent54cbc45a5a40f4eefd64fa41ad9029f5f8f6a84f (diff)
Somewhat distasteful hack to fix #3469 (broken keyboard-entry of pan values)
git-svn-id: svn://localhost/ardour2/branches/3.0@8090 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/gtkmm2ext/barcontroller.cc6
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/barcontroller.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/barcontroller.cc b/libs/gtkmm2ext/barcontroller.cc
index 75e5d4e7d6..1b8c210fc9 100644
--- a/libs/gtkmm2ext/barcontroller.cc
+++ b/libs/gtkmm2ext/barcontroller.cc
@@ -398,6 +398,9 @@ BarController::switch_to_bar ()
darea.show ();
switching = false;
+
+ SpinnerActive (false); /* EMIT SIGNAL */
+
return FALSE;
}
@@ -421,6 +424,9 @@ BarController::switch_to_spinner ()
spinner.grab_focus ();
switching = false;
+
+ SpinnerActive (true); /* EMIT SIGNAL */
+
return FALSE;
}
diff --git a/libs/gtkmm2ext/gtkmm2ext/barcontroller.h b/libs/gtkmm2ext/gtkmm2ext/barcontroller.h
index f3eb2f41cd..1a0b78dabe 100644
--- a/libs/gtkmm2ext/gtkmm2ext/barcontroller.h
+++ b/libs/gtkmm2ext/gtkmm2ext/barcontroller.h
@@ -61,6 +61,11 @@ class BarController : public Gtk::Frame
boost::shared_ptr<PBD::Controllable> get_controllable() { return binding_proxy.get_controllable(); }
void set_controllable(boost::shared_ptr<PBD::Controllable> c) { binding_proxy.set_controllable(c); }
+ /** Emitted when the adjustment spinner is activated or deactivated;
+ * the parameter is true on activation, false on deactivation.
+ */
+ sigc::signal<void, bool> SpinnerActive;
+
protected:
Gtk::Adjustment& adjustment;
BindingProxy binding_proxy;