Allow to pre-seed Tabbable detached state.

This commit is contained in:
Robin Gareus 2017-02-20 22:55:31 +01:00
parent 15eb6f716d
commit 3ecd5d6f08
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class VisibilityTracker;
class LIBGTKMM2EXT_API Tabbable : public WindowProxy {
public:
Tabbable (Gtk::Widget&, const std::string&);
Tabbable (Gtk::Widget&, const std::string&, bool tabbed_by_default = true);
~Tabbable ();
void add_to_notebook (Gtk::Notebook& notebook, const std::string& tab_title);

View File

@ -35,11 +35,11 @@ using namespace Gtkmm2ext;
using namespace Gtk;
using std::string;
Tabbable::Tabbable (Widget& w, const string& name)
Tabbable::Tabbable (Widget& w, const string& name, bool tabbed_by_default)
: WindowProxy (name)
, _contents (w)
, _parent_notebook (0)
, tab_requested_by_state (true)
, tab_requested_by_state (tabbed_by_default)
{
}