summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2010-12-23 17:52:29 +0000
committerKris <Kris.De.Gussem@hotmail.com>2010-12-23 17:52:29 +0000
commit94e5fe845bd66b66069df22c241867af20c6bcaf (patch)
tree0508fc2d89f5a64f6d2cfbab08e473e9aba6718e /src/ui
parentFix crash in cycle-selection (and restructure internals). (diff)
downloadinkscape-94e5fe845bd66b66069df22c241867af20c6bcaf.tar.gz
inkscape-94e5fe845bd66b66069df22c241867af20c6bcaf.zip
Mnemonics in "Fill and stroke", "Align and distribute", and "Transform" dialogs (Bug 170765)
(bzr r9981)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/align-and-distribute.cpp9
-rw-r--r--src/ui/dialog/transformation.cpp2
2 files changed, 7 insertions, 4 deletions
diff --git a/src/ui/dialog/align-and-distribute.cpp b/src/ui/dialog/align-and-distribute.cpp
index 48f0fbf22..f974ec6ce 100644
--- a/src/ui/dialog/align-and-distribute.cpp
+++ b/src/ui/dialog/align-and-distribute.cpp
@@ -467,7 +467,8 @@ public:
dialog.tooltips().set_tip(removeOverlapXGap,
_("Minimum horizontal gap (in px units) between bounding boxes"));
//TRANSLATORS: "H:" stands for horizontal gap
- removeOverlapXGapLabel.set_label(C_("Gap", "H:"));
+ removeOverlapXGapLabel.set_text_with_mnemonic(C_("Gap", "_H:"));
+ removeOverlapXGapLabel.set_mnemonic_widget(removeOverlapXGap);
removeOverlapYGap.set_digits(1);
removeOverlapYGap.set_size_request(60, -1);
@@ -477,7 +478,8 @@ public:
dialog.tooltips().set_tip(removeOverlapYGap,
_("Minimum vertical gap (in px units) between bounding boxes"));
/* TRANSLATORS: Vertical gap */
- removeOverlapYGapLabel.set_label(C_("Gap", "V:"));
+ removeOverlapYGapLabel.set_text_with_mnemonic(C_("Gap", "_V:"));
+ removeOverlapYGapLabel.set_mnemonic_widget(removeOverlapYGap);
dialog.removeOverlap_table().attach(removeOverlapXGapLabel, column, column+1, row, row+1, Gtk::FILL, Gtk::FILL);
dialog.removeOverlap_table().attach(removeOverlapXGap, column+1, column+2, row, row+1, Gtk::FILL, Gtk::FILL);
@@ -896,7 +898,7 @@ AlignAndDistribute::AlignAndDistribute()
_removeOverlapTable(1, 5, false),
_nodesTable(1, 4, true),
_anchorLabel(_("Relative to: ")),
- _selgrpLabel(_("Treat selection as group: "))
+ _selgrpLabel(_("_Treat selection as group: "), 1)
{
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
@@ -1038,6 +1040,7 @@ AlignAndDistribute::AlignAndDistribute()
_anchorBox.pack_start(_anchorLabel);
_anchorBox.pack_start(_combo);
+ _selgrpLabel.set_mnemonic_widget(_selgrp);
_selgrpBox.pack_start(_selgrpLabel);
_selgrpBox.pack_start(_selgrp);
_selgrp.set_active(prefs->getBool("/dialogs/align/sel-as-groups"));
diff --git a/src/ui/dialog/transformation.cpp b/src/ui/dialog/transformation.cpp
index c895f0be9..8da9914bc 100644
--- a/src/ui/dialog/transformation.cpp
+++ b/src/ui/dialog/transformation.cpp
@@ -104,7 +104,7 @@ Transformation::Transformation()
_scalar_transform_f ("_F:", _("Transformation matrix element F")),
_check_move_relative (_("Rela_tive move"), _("Add the specified relative displacement to the current position; otherwise, edit the current absolute position directly")),
- _check_scale_proportional (_("Scale proportionally"), _("Preserve the width/height ratio of the scaled objects")),
+ _check_scale_proportional (_("_Scale proportionally"), _("Preserve the width/height ratio of the scaled objects")),
_check_apply_separately (_("Apply to each _object separately"), _("Apply the scale/rotate/skew to each selected object separately; otherwise, transform the selection as a whole")),
_check_replace_matrix (_("Edit c_urrent matrix"), _("Edit the current transform= matrix; otherwise, post-multiply transform= by this matrix"))