summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/selected-style.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-07-10 01:19:23 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-07-10 01:19:23 +0000
commit37706949227c13b309baa9ce49201d4c536a662e (patch)
tree036a16a97615afbdc89c8d2f44cd0bf192b118ad /src/ui/widget/selected-style.cpp
parentFix for 168658 : Font substitution warning dialog - CSS font fallbacks (diff)
downloadinkscape-37706949227c13b309baa9ce49201d4c536a662e.tar.gz
inkscape-37706949227c13b309baa9ce49201d4c536a662e.zip
Fix for 167781 : opacity in selected style loses focus on kbd value scroll
(bzr r11534)
Diffstat (limited to 'src/ui/widget/selected-style.cpp')
-rw-r--r--src/ui/widget/selected-style.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp
index 37b3f8a1a..88341a0e8 100644
--- a/src/ui/widget/selected-style.cpp
+++ b/src/ui/widget/selected-style.cpp
@@ -336,6 +336,8 @@ SelectedStyle::SelectedStyle(bool /*layout*/)
_opacity_sb.signal_populate_popup().connect(sigc::mem_fun(*this, &SelectedStyle::on_opacity_menu));
_opacity_sb.signal_value_changed().connect(sigc::mem_fun(*this, &SelectedStyle::on_opacity_changed));
+ // Connect to key-press to ensure focus is consistent with other spin buttons when using the keys vs mouse-click
+ g_signal_connect (G_OBJECT (_opacity_sb.gobj()), "key-press-event", G_CALLBACK (spinbutton_keypress), _opacity_sb.gobj());
_fill_place.add(_na[SS_FILL]);
_fill_place.set_tooltip_text(__na[SS_FILL]);