diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-07-15 16:23:11 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:22 -0500 |
commit | 347ba94bcd2b7daa61c141090584e1619af26bc1 (patch) | |
tree | bd7cf03ad49bd8429270bd0adc7dfa244e4ebaa6 /libs/gtkmm2ext/tabbable.cc | |
parent | 5288dd057ba760310a3c63a037975911f2fc8b12 (diff) |
add ::make_visible() to Tabbable class
Diffstat (limited to 'libs/gtkmm2ext/tabbable.cc')
-rw-r--r-- | libs/gtkmm2ext/tabbable.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/tabbable.cc b/libs/gtkmm2ext/tabbable.cc index 4249da7fff..b2430c832d 100644 --- a/libs/gtkmm2ext/tabbable.cc +++ b/libs/gtkmm2ext/tabbable.cc @@ -263,3 +263,13 @@ Tabbable::set_state (const XMLNode& node, int version) return ret; } + +void +Tabbable::make_visible () +{ + if (current_toplevel() == _window) { + _window->present (); + } else { + show_tab (); + } +} |