[pygobject] overrides: Add support for iterables besides tuples for TreePath creation
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] overrides: Add support for iterables besides tuples for TreePath creation
- Date: Mon, 18 Feb 2013 11:03:52 +0000 (UTC)
commit 871878c7a1e18fbdbf0744e0dd52cbcc6b610cdb
Author: Simon Feltman <sfeltman src gnome org>
Date: Mon Feb 18 02:54:14 2013 -0800
overrides: Add support for iterables besides tuples for TreePath creation
Allow Gtk.TreePath to accept any iterable for creation of the path.
https://bugzilla.gnome.org/show_bug.cgi?id=682933
gi/overrides/Gtk.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 25f127f..dafdce1 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1160,7 +1160,7 @@ class TreePath(Gtk.TreePath):
def __new__(cls, path=0):
if isinstance(path, int):
path = str(path)
- elif isinstance(path, tuple):
+ elif not isinstance(path, _basestring):
path = ":".join(str(val) for val in path)
if len(path) == 0:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]