Merge pull request #454 from AsadJivani/incorrect_layout_sorting_notebook

Incorrect layout sorting in notebook
This commit is contained in:
Matt Rose 2021-06-22 15:01:37 -04:00 committed by GitHub
commit 5206952542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ class Notebook(Container, Gtk.Notebook):
def create_layout(self, layout): def create_layout(self, layout):
"""Apply layout configuration""" """Apply layout configuration"""
def child_compare(a, b): def child_compare(a, b):
order_a = children[a]['order'] order_a = int(children[a]['order'])
order_b = children[b]['order'] order_b = int(children[b]['order'])
if (order_a == order_b): if (order_a == order_b):
return 0 return 0