diff --git a/webtoolbar.py b/webtoolbar.py
index 654f720..0c2c63f 100644
a
|
b
|
class WebEntry(iconentry.IconEntry): |
178 | 178 | selection.select_iter(model[-1].iter) |
179 | 179 | self._set_text(model[-1][0]) |
180 | 180 | else: |
181 | | index = model.get_path(selected)[0] |
182 | | if index > 0: |
183 | | selection.select_path(index - 1) |
184 | | self._set_text(model[index - 1][0]) |
| 181 | # model.iter_previos is returning True or False |
| 182 | # instead of GtkTreeIter |
| 183 | up_iter = model.iter_previous(selected) |
| 184 | if up_iter: |
| 185 | selection.select_iter(up_iter) |
| 186 | self._set_text(model.get(up_iter, 0)[0]) |
185 | 187 | return True |
186 | 188 | elif keyname == 'Down': |
187 | 189 | if selected is None: |