Rename change_entry to entry_selected.
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 17 Aug 2009 22:14:15 +0000 (00:14 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Mon, 17 Aug 2009 22:14:15 +0000 (00:14 +0200)
src/gui/gui.py

index 30ae4e2745bd6290ac47487bfdffca6d57c748f9..815edc5be6fc2cda7afcbc6334a8a7565d63f5e2 100644 (file)
@@ -149,14 +149,14 @@ class View(object):
 class ListView(View):
     def __init__(self):
         super(ListView, self).__init__()
-        self.set_view(appuifw.Listbox(self.items(),self.change_entry))
+        self.set_view(appuifw.Listbox(self.items(),self.entry_selected))
 
-    def change_entry(self):
+    def entry_selected(self):
         """
         This function is called when the user selects an an entry (e.g.,
         navigates to it and push the ok button).
         """
-        super(ListView).change_entry()
+        super(ListView).entry_selected()
     
     def update(self,subject=None):
         #logger.log(u'Updated %s'%repr(self))
@@ -310,7 +310,7 @@ class EditableListView(SearchableListView,KeyBindingView):
             key_and_menu_bindings.append((get_key(key),key,description,execute_and_update_function))
         return key_and_menu_bindings
 
-    def change_entry(self):
+    def entry_selected(self):
         self.current_widget().change()
         self.refresh()
     def execute_and_update(self,function):