[ekiga] Accessibility fixes



commit 1a5e1331a89a3a99d827e0fbaa9333e0ff09e6a6
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Mon Jan 28 18:39:54 2013 +0100

    Accessibility fixes
    
    Add shortcuts to check boxes and fixes shortcuts to comboboxes.  Fixes
    bug #511462.

 lib/engine/gui/gtk-core/form-dialog-gtk.cpp |    3 ++-
 plugins/ldap/ldap-book.cpp                  |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/lib/engine/gui/gtk-core/form-dialog-gtk.cpp b/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
index df4f5f2..69ae48f 100644
--- a/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
+++ b/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
@@ -799,7 +799,7 @@ FormDialog::boolean (const std::string name,
 
   grow_fields (advanced);
 
-  widget = gtk_check_button_new_with_label (description.c_str ());
+  widget = gtk_check_button_new_with_mnemonic (description.c_str ());
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), value);
   if (advanced) {
 
@@ -1018,6 +1018,7 @@ FormDialog::single_choice (const std::string name,
   model = gtk_list_store_new (SingleChoiceSubmitter::COLUMN_NUMBER,
 			      G_TYPE_STRING, G_TYPE_STRING);
   widget = gtk_combo_box_new_with_model (GTK_TREE_MODEL (model));
+  gtk_label_set_mnemonic_widget (GTK_LABEL (label), widget);
   renderer = gtk_cell_renderer_text_new ();
   gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (widget), renderer, TRUE);
   gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), renderer,
diff --git a/plugins/ldap/ldap-book.cpp b/plugins/ldap/ldap-book.cpp
index 1ece8d5..3761530 100644
--- a/plugins/ldap/ldap-book.cpp
+++ b/plugins/ldap/ldap-book.cpp
@@ -984,8 +984,8 @@ OPENLDAP::BookForm (boost::shared_ptr<Ekiga::FormRequestSimple> request,
    */
   request->text ("authcID", _("Bind _ID:"), info.authcID, _("User ID; leave blank for anonymous / nonauthenticated"));
   request->private_text ("password", _("_Password:"), info.password, _("The password for the user ID above, if any"));
-  request->boolean ("startTLS", _("Use TLS"), info.starttls);
-  request->boolean ("sasl", _("Use SASL"), info.sasl);
+  request->boolean ("startTLS", _("Use _TLS"), info.starttls);
+  request->boolean ("sasl", _("Use SAS_L"), info.sasl);
   {
     std::map<std::string, std::string> mechs;
     const char **mechlist;



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