GTK3 fix. Fix cursor positioning bug on adding and editing in name display editor

svn: r20297
This commit is contained in:
Gary Burton 2012-08-30 21:12:45 +00:00
parent 2527c24014
commit 5bcef2615a

View File

@ -638,9 +638,7 @@ class GrampsPreferences(ConfigureDialog):
node = self.fmt_model.append(row=[i, f, fmt, node = self.fmt_model.append(row=[i, f, fmt,
_nd.format_str(self.examplename, fmt)]) _nd.format_str(self.examplename, fmt)])
path = self.fmt_model.get_path(node) path = self.fmt_model.get_path(node)
self.format_list.set_cursor(path, self.format_list.set_cursor(path, self.name_column, True)
focus_column=self.name_column,
start_editing=True)
self.edit_button.set_sensitive(False) self.edit_button.set_sensitive(False)
self.remove_button.set_sensitive(False) self.remove_button.set_sensitive(False)
self.insert_button.set_sensitive(False) self.insert_button.set_sensitive(False)
@ -651,9 +649,7 @@ class GrampsPreferences(ConfigureDialog):
self.edit_button.set_sensitive(False) self.edit_button.set_sensitive(False)
self.remove_button.set_sensitive(False) self.remove_button.set_sensitive(False)
self.insert_button.set_sensitive(False) self.insert_button.set_sensitive(False)
self.format_list.set_cursor(path, self.format_list.set_cursor(path, self.name_column, True)
focus_column=self.name_column,
start_editing=True)
def __check_for_name(self, name, oldnode): def __check_for_name(self, name, oldnode):
""" """