[Sugar-devel] [PATCH shell] Journal: fix editing of title in listview

Simon Schampijer simon at schampijer.de
Thu Sep 20 03:58:09 EDT 2012


From: Simon Schampijer <simon at laptop.org>

gtk_tree_view_set_cursor_on_cell expects as well the
cell renderer to be passed as argument [1].

[1] http://developer.gnome.org/gtk3/3.4/GtkTreeView.html#gtk-tree-view-set-cursor-on-cell

Signed-off-by: Simon Schampijer <simon at laptop.org>
---
 src/jarabe/journal/listview.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
index 369f364..46c3440 100644
--- a/src/jarabe/journal/listview.py
+++ b/src/jarabe/journal/listview.py
@@ -534,7 +534,8 @@ class ListView(BaseListView):
         metadata = model.get(row[ListModel.COLUMN_UID])
         self.cell_title.props.editable = model.is_editable(metadata)
 
-        tree_view.set_cursor_on_cell(path, column, start_editing=True)
+        tree_view.set_cursor_on_cell(path, column, self.cell_title,
+                                     start_editing=True)
 
     def __detail_cell_clicked_cb(self, cell, path):
         row = self.tree_view.get_model()[path]
-- 
1.7.11.4



More information about the Sugar-devel mailing list