diff options
| author | Ralf Stephan <ralf@ark.in-berlin.de> | 2006-01-24 10:54:41 +0000 |
|---|---|---|
| committer | rwst <rwst@users.sourceforge.net> | 2006-01-24 10:54:41 +0000 |
| commit | afc910c44d61701dbd1e76fe7525b54c2a79ba2a (patch) | |
| tree | 9fe80762ae5a9989ec5982bdfc13ca341656ac62 /src/ui/widget/registered-widget.cpp | |
| parent | * src/libavoid/connector.cpp, src/libavoid/connector.h, (diff) | |
| download | inkscape-afc910c44d61701dbd1e76fe7525b54c2a79ba2a.tar.gz inkscape-afc910c44d61701dbd1e76fe7525b54c2a79ba2a.zip | |
mnemonics for all widgets in the Doc Props dialog
(fixes #1384494-9+B)
(bzr r26)
Diffstat (limited to 'src/ui/widget/registered-widget.cpp')
| -rw-r--r-- | src/ui/widget/registered-widget.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/ui/widget/registered-widget.cpp b/src/ui/widget/registered-widget.cpp index 918742e75..e1f0ee7a4 100644 --- a/src/ui/widget/registered-widget.cpp +++ b/src/ui/widget/registered-widget.cpp @@ -62,7 +62,9 @@ RegisteredCheckButton::init (const Glib::ustring& label, const Glib::ustring& ti { _button = new Gtk::CheckButton; _tt.set_tip (*_button, tip); - _button->add (*manage (new Gtk::Label (label))); + Gtk::Label *l = new Gtk::Label (label); + l->set_use_underline (true); + _button->add (*manage (l)); _button->set_alignment (right? 1.0 : 0.0, 0.5); _key = key; _wr = ≀ @@ -117,7 +119,9 @@ void RegisteredUnitMenu::init (const Glib::ustring& label, const Glib::ustring& key, Registry& wr) { _label = new Gtk::Label (label, 1.0, 0.5); + _label->set_use_underline (true); _sel = new UnitMenu (); + _label->set_mnemonic_widget (*_sel); _sel->setUnitType (UNIT_TYPE_LINEAR); _wr = ≀ _key = key; @@ -240,7 +244,9 @@ void RegisteredColorPicker::init (const Glib::ustring& label, const Glib::ustring& title, const Glib::ustring& tip, const Glib::ustring& ckey, const Glib::ustring& akey, Registry& wr) { _label = new Gtk::Label (label, 1.0, 0.5); + _label->set_use_underline (true); _cp = new ColorPicker (title,tip,0,true); + _label->set_mnemonic_widget (*_cp); _ckey = ckey; _akey = akey; _wr = ≀ @@ -295,7 +301,9 @@ RegisteredSuffixedInteger::init (const Glib::ustring& label, const Glib::ustring _key = key; _label = new Gtk::Label (label); _label->set_alignment (1.0, 0.5); + _label->set_use_underline(); _sb = new Gtk::SpinButton (_adj, 1.0, 0); + _label->set_mnemonic_widget (*_sb); _suffix = new Gtk::Label (suffix); _hbox.pack_start (*_sb, true, true, 0); _hbox.pack_start (*_suffix, false, false, 0); @@ -348,10 +356,10 @@ const Glib::ustring& key, Registry& wr) { _hbox = new Gtk::HBox; _hbox->add (*manage (new Gtk::Label (label))); - _rb1 = manage (new Gtk::RadioButton (label1)); + _rb1 = manage (new Gtk::RadioButton (label1, true)); _hbox->add (*_rb1); Gtk::RadioButtonGroup group = _rb1->get_group(); - _rb2 = manage (new Gtk::RadioButton (group, label2, false)); + _rb2 = manage (new Gtk::RadioButton (group, label2, true)); _hbox->add (*_rb2); _rb2->set_active(); _tt.set_tip (*_rb1, tip1); |
