diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-03 03:11:31 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-03 03:11:31 +0000 |
commit | 5b8472314e0471eb19244b6e949bde0ce90cc3e8 (patch) | |
tree | 776fadc13962358b5891813c335ec2587a3e53a4 /libs/gtkmm2ext/tearoff.cc | |
parent | cf45b07f73c9b2c8d19365d27b4f8f5004822095 (diff) |
Add option to show or hide zoom toolbar.
git-svn-id: svn://localhost/ardour2/branches/3.0@8413 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/tearoff.cc')
-rw-r--r-- | libs/gtkmm2ext/tearoff.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gtkmm2ext/tearoff.cc b/libs/gtkmm2ext/tearoff.cc index bc8829d94f..0f214dda95 100644 --- a/libs/gtkmm2ext/tearoff.cc +++ b/libs/gtkmm2ext/tearoff.cc @@ -112,7 +112,7 @@ TearOff::set_can_be_torn_off (bool yn) } void -TearOff::set_visible (bool yn) +TearOff::set_visible (bool yn, bool force) { /* don't change visibility if torn off */ @@ -120,7 +120,7 @@ TearOff::set_visible (bool yn) return; } - if (_visible != yn) { + if (_visible != yn || force) { _visible = yn; if (yn) { show_all(); |