[Sugar-devel] [PATCH shell] Journal: fix editing of title in listview
Manuel Quiñones
manuq at laptop.org
Thu Sep 20 07:52:08 EDT 2012
Perfect. Please push.
2012/9/20 Simon Schampijer <simon at schampijer.de>:
> 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
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
--
.. manuq ..
More information about the Sugar-devel
mailing list