MessageWindow: Open new tab relative to the current one

This commit is contained in:
Daniel Brötzmann 2019-04-25 12:15:55 +02:00 committed by Philipp Hörist
parent f6c3d03261
commit 5d795b4c1e
1 changed files with 2 additions and 1 deletions

View File

@ -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)