[Pkg-privacy-commits] [nautilus-wipe] 63/224: Add mnemonic accessors
Ulrike Uhlig
u-guest at moszumanska.debian.org
Thu Jul 7 19:45:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch master
in repository nautilus-wipe.
commit 28f3a170b22506679f0954022a3f01f57f9594f0
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Sat Feb 27 00:42:52 2010 +0100
Add mnemonic accessors
Add accessors to most UI elements for a better accessibility.
---
nautilus-srm/nautilus-srm.c | 2 +-
nautilus-srm/operation-manager.c | 15 ++++++++-------
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/nautilus-srm/nautilus-srm.c b/nautilus-srm/nautilus-srm.c
index 80b4481..cb855f2 100644
--- a/nautilus-srm/nautilus-srm.c
+++ b/nautilus-srm/nautilus-srm.c
@@ -542,7 +542,7 @@ run_fill_operation (GtkWindow *parent,
/* confirm dialog */
confirm_primary_text,
_("This operation may take a while."),
- _("Wipe available diskspace"),
+ _("_Wipe available diskspace"),
/* progress dialog */
_("Wiping available diskspace..."),
/* operation launcher */
diff --git a/nautilus-srm/operation-manager.c b/nautilus-srm/operation-manager.c
index 16a0018..8dc8984 100644
--- a/nautilus-srm/operation-manager.c
+++ b/nautilus-srm/operation-manager.c
@@ -198,7 +198,7 @@ display_operation_error (struct NautilusSrmOperationData *opdata,
g_free (short_error);
/* add the details expander */
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
- expander = gtk_expander_new (_("Details"));
+ expander = gtk_expander_new_with_mnemonic (_("_Details"));
gtk_container_add (GTK_CONTAINER (content_area), expander);
scroll = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
@@ -315,7 +315,7 @@ operation_confirm_dialog (GtkWindow *parent,
GtkWidget *expander;
GtkWidget *box;
- expander = gtk_expander_new (_("Options"));
+ expander = gtk_expander_new_with_mnemonic (_("_Options"));
gtk_container_add (GTK_CONTAINER (content_area), expander);
box = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (expander), box);
@@ -329,7 +329,7 @@ operation_confirm_dialog (GtkWindow *parent,
hbox = gtk_hbox_new (FALSE, 5);
gtk_box_pack_start (GTK_BOX (box), hbox, FALSE, TRUE, 0);
- label = gtk_label_new (_("Number of passes:"));
+ label = gtk_label_new_with_mnemonic (_("Number of _passes:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
/* store columns: setting value (enum)
@@ -337,6 +337,7 @@ operation_confirm_dialog (GtkWindow *parent,
* descriptive text (string) */
store = gtk_list_store_new (3, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING);
combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (store));
+ gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo);
/* number of passes column */
renderer = gtk_cell_renderer_spin_new ();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), renderer, FALSE);
@@ -379,8 +380,8 @@ operation_confirm_dialog (GtkWindow *parent,
if (fast) {
GtkWidget *check;
- check = gtk_check_button_new_with_label (
- _("Fast and insecure mode (no /dev/urandom, no synchronize mode)")
+ check = gtk_check_button_new_with_mnemonic (
+ _("_Fast and insecure mode (no /dev/urandom, no synchronize mode)")
);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), *fast);
g_signal_connect (check, "toggled",
@@ -391,8 +392,8 @@ operation_confirm_dialog (GtkWindow *parent,
if (zeroise) {
GtkWidget *check;
- check = gtk_check_button_new_with_label (
- _("Last pass with zeros instead of random data")
+ check = gtk_check_button_new_with_mnemonic (
+ _("Last pass with _zeros instead of random data")
);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), *zeroise);
g_signal_connect (check, "toggled",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/nautilus-wipe.git
More information about the Pkg-privacy-commits
mailing list