summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-03 15:41:07 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-03 15:41:07 +0000
commitbfa45291a71e56f9b3f768372ccdc423fd88065a (patch)
treea80de31fe06dbc6e5bef6733be22e5a9c43b7cdc /libs
parent4e17290025b9c426a338c1f65c53df129b98b8fb (diff)
fix mistake that prevented send processor boxes from correctly highlighting when showing sends; note that the semantics for the way DnDVBox handles selected/active are a bit confused by my recent changes to this, and they may change again in the future
git-svn-id: svn://localhost/ardour2/branches/3.0@10422 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/dndvbox.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/dndvbox.h b/libs/gtkmm2ext/gtkmm2ext/dndvbox.h
index e6f61113eb..cc917e846d 100644
--- a/libs/gtkmm2ext/gtkmm2ext/dndvbox.h
+++ b/libs/gtkmm2ext/gtkmm2ext/dndvbox.h
@@ -113,8 +113,8 @@ public:
return _selection;
}
- /** Set the `active' child; this is simply a child which is set to have the Gtk
- * STATE_ACTIVE for whatever purposes the client may have.
+ /** Set the `active' child; this is simply a child which is set to have the
+ * visual state "active" for whatever purposes the client may have.
* @param c Child, or 0 for none.
*/
void set_active (T* c) {
@@ -523,11 +523,11 @@ private:
return ButtonRelease (ev, child); /* EMIT SIGNAL */
}
- /** Setup a child's GTK state correctly */
+ /** Setup a child's visual state correctly */
void setup_child_state (T* c)
{
assert (c);
- c->set_visual_state (Selected, selected (c));
+ c->set_visual_state (Selected, _active == c);
}
void clear_selection ()