Factor Dialog: Add mnemonics
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 30 Jul 2011 12:14:18 +0000 (14:14 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 30 Jul 2011 12:14:18 +0000 (14:14 +0200)
src/ui/gui/factor-dialog.c
src/ui/gui/factor.ui

index f3fa2234cf7630db62fe381197c451ce4699c990..26702450ef9e1153d22e0075e768c2127594a676 100644 (file)
@@ -340,10 +340,18 @@ factor_dialog (PsppireDataWindow *dw)
 
   {
     GtkWidget *hbox = get_widget_assert (fd.xml, "hbox6");
-    GtkWidget *eigenvalue_extraction = psppire_scanf_new (_("Eigenvalues over %4.2f times the mean eigenvalue"), &fd.mineigen);
+    GtkWidget *eigenvalue_extraction ;
 
-    fd.nfactors_toggle = get_widget_assert (fd.xml, "nfactors-radiobutton");
     fd.mineigen_toggle = get_widget_assert (fd.xml, "mineigen-radiobutton");
+
+    eigenvalue_extraction = psppire_scanf_new (_("_Eigenvalues over %4.2f times the mean eigenvalue"), &fd.mineigen);
+
+    g_object_set (eigenvalue_extraction,
+                 "use-underline", TRUE,
+                 "mnemonic-widget", fd.mineigen_toggle,
+                 NULL);
+
+    fd.nfactors_toggle = get_widget_assert (fd.xml, "nfactors-radiobutton");
     fd.n_factors = get_widget_assert (fd.xml, "spinbutton-nfactors");
     fd.extract_iterations = get_widget_assert (fd.xml, "spinbutton-extract-iterations");
     fd.covariance_toggle = get_widget_assert (fd.xml,  "covariance-radiobutton");
index 6782f6bf7e4ccae228cc0e7d5e3199382eb47e9e..9705f891519a7cc499c7606965db1893c72c3c9c 100644 (file)
                 </child>
               </object>
               <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
                 <property name="position">1</property>
               </packing>
             </child>
                 <child type="label">
                   <object class="GtkLabel" id="label1">
                     <property name="visible">True</property>
-                    <property name="label" translatable="yes">Variables:</property>
+                    <property name="label" translatable="yes">_Variables:</property>
                     <property name="use_markup">True</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">psppire-var-view1</property>
                   </object>
                 </child>
               </object>
                     <child>
                       <object class="GtkLabel" id="label5">
                         <property name="visible">True</property>
-                        <property name="label" translatable="yes">Method: </property>
+                        <property name="label" translatable="yes">_Method: </property>
+                        <property name="use_underline">True</property>
+                        <property name="mnemonic_widget">combobox1</property>
                       </object>
                       <packing>
                         <property name="expand">False</property>
                                 <property name="layout_style">spread</property>
                                 <child>
                                   <object class="GtkRadioButton" id="correlations-radiobutton">
-                                    <property name="label" translatable="yes">Correlation matrix</property>
+                                    <property name="label" translatable="yes">Co_rrelation matrix</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">False</property>
+                                    <property name="use_underline">True</property>
                                     <property name="draw_indicator">True</property>
                                   </object>
                                   <packing>
                                 </child>
                                 <child>
                                   <object class="GtkRadioButton" id="covariance-radiobutton">
-                                    <property name="label" translatable="yes">Covariance matrix</property>
+                                    <property name="label" translatable="yes">Co_variance matrix</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">False</property>
+                                    <property name="use_underline">True</property>
                                     <property name="draw_indicator">True</property>
                                     <property name="group">correlations-radiobutton</property>
                                   </object>
                                 <property name="layout_style">spread</property>
                                 <child>
                                   <object class="GtkCheckButton" id="unrotated-button">
-                                    <property name="label" translatable="yes">Unrotated factor solution</property>
+                                    <property name="label" translatable="yes">_Unrotated factor solution</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">False</property>
+                                    <property name="use_underline">True</property>
                                     <property name="draw_indicator">True</property>
                                   </object>
                                   <packing>
                                 </child>
                                 <child>
                                   <object class="GtkCheckButton" id="scree-button">
-                                    <property name="label" translatable="yes">Scree plot</property>
+                                    <property name="label" translatable="yes">_Scree plot</property>
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">False</property>
+                                    <property name="use_underline">True</property>
                                     <property name="draw_indicator">True</property>
                                   </object>
                                   <packing>
                                   <object class="GtkLabel" id="label7">
                                     <property name="visible">True</property>
                                     <property name="xalign">0</property>
-                                    <property name="label" translatable="yes">Number of factors:</property>
+                                    <property name="label" translatable="yes">_Number of factors:</property>
+                                    <property name="use_underline">True</property>
+                                    <property name="mnemonic_widget">nfactors-radiobutton</property>
                                   </object>
                                   <packing>
                                     <property name="position">1</property>
                     <child>
                       <object class="GtkLabel" id="label6">
                         <property name="visible">True</property>
-                        <property name="label" translatable="yes">Maximum iterations for convergence:</property>
+                        <property name="label" translatable="yes">Ma_ximum iterations for convergence:</property>
+                        <property name="use_underline">True</property>
+                        <property name="mnemonic_widget">spinbutton-extract-iterations</property>
                       </object>
                       <packing>
                         <property name="position">0</property>
                     <child>
                       <object class="GtkLabel" id="label13">
                         <property name="visible">True</property>
-                        <property name="label" translatable="yes">Maximum iterations for convergence:</property>
+                        <property name="label" translatable="yes">Ma_ximum iterations for convergence:</property>
+                        <property name="use_underline">True</property>
+                        <property name="mnemonic_widget">spinbutton-rot-iterations</property>
                       </object>
                       <packing>
                         <property name="position">0</property>