Allow to pre-seed Tabbable detached state.
authorRobin Gareus <robin@gareus.org>
Mon, 20 Feb 2017 21:55:31 +0000 (22:55 +0100)
committerRobin Gareus <robin@gareus.org>
Mon, 20 Feb 2017 21:55:31 +0000 (22:55 +0100)
libs/gtkmm2ext/gtkmm2ext/tabbable.h
libs/gtkmm2ext/tabbable.cc

index e72a86d2d85a3aff94308059f727ffe284aa1017..d7e1429ada668a288d4458108f3266a45f3d1614 100644 (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);
index 5e4752454e6cfd6c8547b56799f59399b2307165..e4637d6bffbd8bab7c2740f90bad67bbe2bf9b28 100644 (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)
 {
 }