Commit 5d795b4c authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist

MessageWindow: Open new tab relative to the current one

parent f6c3d032
......@@ -317,7 +317,8 @@ class MessageWindow:
id_ = tab_label_box.connect('button-press-event',
self.on_tab_eventbox_button_press_event, control.widget)
control.handlers[id_] = tab_label_box
self.notebook.append_page(control.widget, tab_label_box)
position = self.notebook.get_current_page() + 1
self.notebook.insert_page(control.widget, tab_label_box, position)
self.notebook.set_tab_reorderable(control.widget, True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment