[#2827] [GTKUI] Fix issue with loading GTKUI columns state

commit 1a2ff9b089 introduced a bug when loading GTKUI
column states due to changing ListViewColumnState class type.

Fixed by reverting ListViewColumnState to old style class
This commit is contained in:
bendikro 2016-05-06 21:23:35 +02:00 committed by Calum Lind
parent 21789e0692
commit c7b272561e
1 changed files with 6 additions and 2 deletions

View File

@ -23,8 +23,12 @@ signal_new('button-press-event', gtk.TreeViewColumn, SIGNAL_RUN_LAST, TYPE_NONE,
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
class ListViewColumnState(object): class ListViewColumnState: # pylint: disable=old-style-class
"""Used for saving/loading column state""" """
Class used for saving/loading column state.
Note: This must be old style class to avoid breaking existing user state file.
"""
def __init__(self, name, position, width, visible, sort, sort_order): def __init__(self, name, position, width, visible, sort, sort_order):
self.name = name self.name = name
self.position = position self.position = position