fix home button issue in python3
svn: r21066
This commit is contained in:
parent
ce7192c034
commit
0ffe2869d6
@ -252,6 +252,8 @@ class FlatNodeMap(object):
|
||||
:param type: an object handle
|
||||
:Returns: the path, or None if handle does not link to a path
|
||||
"""
|
||||
if isinstance(handle, UNITYPE):
|
||||
handle = handle.encode('utf-8')
|
||||
index = self._hndl2index.get(handle)
|
||||
if index is None:
|
||||
return None
|
||||
|
@ -848,6 +848,8 @@ class TreeBaseModel(GObject.Object, Gtk.TreeModel):
|
||||
"""
|
||||
Get the node for a handle.
|
||||
"""
|
||||
if isinstance(handle, UNITYPE):
|
||||
handle = handle.encode('utf-8')
|
||||
return self.handle2node.get(handle)
|
||||
|
||||
def handle2path(self, handle):
|
||||
|
Loading…
Reference in New Issue
Block a user