Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#14 "Up" for changing running order for LaTeX jobs not working

open-accepted
nobody
None
9
2011-03-28
2010-08-12
Anonymous
No

When pressing "Up" in the Preferences / Tools / * -> Properties window to change the order of Jobs, nothing happens and a TypeError exception is thrown. This is due to incorrect calling of the .swap() method, it wants two parameters to swap with each other - only one is provided. To actually swap the selected row with the one above it, use the following patch (it can probably be made less clumsy):

--- .gnome2/gedit/plugins/GeditLaTeXPlugin/src/preferences/dialog.py.orig 2010-08-12 14:28:04.442006000 +0100
+++ .gnome2/gedit/plugins/GeditLaTeXPlugin/src/preferences/dialog.py 2010-08-12 14:41:41.787708000 +0100
@@ -249,7 +249,11 @@

def _on_move_up_job_clicked(self, button):
store, iter = self._view_job.get_selection().get_selected()
- store.swap(iter)
+ path = store.get_path(iter)
+ row = path[0]
+ if not row > 0: return
+ prev = store.get_iter((row - 1,) + path[1:])
+ store.swap(iter, prev)

def _on_add_extension_clicked(self, button):
extension = self._entry_new_extension.get_text()

Discussion

    • priority: 5 --> 9
    • labels: 1165133 -->
    • milestone: 897289 -->
    • status: open --> open-accepted