Index: uikit.py ================================================================== --- uikit.py +++ uikit.py @@ -407,11 +407,11 @@ name = inspect.getsource(callback).strip() if callback.__name__=='' else str(callback) if kwargs.get("immediate"): del kwargs["immediate"] pos = 0 else: - pos = -1 + pos = len(uikit.idle_tasks) # Run callback right away if uikit.in_idle or conf.nothreads: log.UIKIT_RUN_NOW(name) callback(*args, **kwargs) # Spool them for Gtk idle handling @@ -551,13 +551,13 @@ # Use a str of "1:2:3" as treepath, # literally in Gtk2, TreePath-wrapped for Gtk3 def treepath(ls): if isinstance(ls, (list,tuple)): - ls = ls[0] + ls = ":".join(map(str, ls)) if ver==2: - return str(ls) + return ls else: return gtk.TreePath.new_from_string(str(ls)) # def treepath_to_str(tp): if ver==2: