make tabs reorderable
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 8 Jul 2015 17:22:29 +0000 (13:22 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 22 Feb 2016 20:31:21 +0000 (15:31 -0500)
libs/gtkmm2ext/tabbable.cc

index e4c86e838469096110c7e499a71097db616a8182..9c3b4694e1065119d2a1457138ced1923068516a 100644 (file)
@@ -47,6 +47,7 @@ Tabbable::add_to_notebook (Notebook& notebook, const string& tab_title, int posi
 {
        notebook.insert_page (_contents, tab_title, position, false);
        notebook.set_tab_detachable (_contents);
+       notebook.set_tab_reorderable (_contents);
 
        _parent_notebook = &notebook;
        _tab_title = tab_title;
@@ -169,6 +170,7 @@ Tabbable::delete_event_handler (GdkEventAny *ev)
 
                        _parent_notebook->insert_page (_contents, _tab_title, _notebook_position);
                        _parent_notebook->set_tab_detachable (_contents);
+                       _parent_notebook->set_tab_reorderable (_contents);
                        _parent_notebook->set_current_page (_parent_notebook->page_num (_contents));
                }