From 5bcef2615a837705b605b3e7731280631d05228f Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Thu, 30 Aug 2012 21:12:45 +0000 Subject: [PATCH] GTK3 fix. Fix cursor positioning bug on adding and editing in name display editor svn: r20297 --- src/gui/configure.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/gui/configure.py b/src/gui/configure.py index 4d759f723..644772e50 100644 --- a/src/gui/configure.py +++ b/src/gui/configure.py @@ -638,9 +638,7 @@ class GrampsPreferences(ConfigureDialog): node = self.fmt_model.append(row=[i, f, fmt, _nd.format_str(self.examplename, fmt)]) path = self.fmt_model.get_path(node) - self.format_list.set_cursor(path, - focus_column=self.name_column, - start_editing=True) + self.format_list.set_cursor(path, self.name_column, True) self.edit_button.set_sensitive(False) self.remove_button.set_sensitive(False) self.insert_button.set_sensitive(False) @@ -651,9 +649,7 @@ class GrampsPreferences(ConfigureDialog): self.edit_button.set_sensitive(False) self.remove_button.set_sensitive(False) self.insert_button.set_sensitive(False) - self.format_list.set_cursor(path, - focus_column=self.name_column, - start_editing=True) + self.format_list.set_cursor(path, self.name_column, True) def __check_for_name(self, name, oldnode): """