[orca/new-settings] profile-combo initialization into a new method for a better integration and scalablity reasons



commit 49e1b843d5241392c824bc189a464e7bebadff2e
Author: Javier Hernández <javiube gmail com>
Date:   Tue Aug 17 12:13:15 2010 +0200

    profile-combo initialization into a new method for a better integration and scalablity reasons

 src/orca/orca_gui_prefs.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index e84f499..23ed287 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -2167,7 +2167,11 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
         #
         self.profilesCombo = self.get_widget('availableProfilesComboBox')
         self.profilesComboModel = self.get_widget('model9')
-        
+        self.__initProfileCombo()        
+
+    def __initProfileCombo(self):
+        """Adding available profiles and setting active as the active one"""
+
         availableProfiles = self.__getAvailableProfiles()
         iterChilds = {}
         self.profilesComboModel.clear()
@@ -4290,6 +4294,8 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
 
         self._populateKeyBindings()
 
+        self.__initProfileCombo() 
+
     def cancelButtonClicked(self, widget):
         """Signal handler for the "clicked" signal for the cancelButton
            GtkButton widget. The user has clicked the Cancel button.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]