summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-11-27 14:58:00 +0000
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2019-12-23 12:33:16 +0100
commit64f096344fc018c32c2890432058c4148602659c (patch)
tree04d7ad5bc102510e934dc78b65904a9a725a095a /include
parentResolves: tdf#129484 just install decimal key handler for spinbuttons (diff)
downloadcore-64f096344fc018c32c2890432058c4148602659c.tar.gz
core-64f096344fc018c32c2890432058c4148602659c.zip
don't put focus into unmapped windows
defer until the color selectors are activated to grab focus, otherwise esc doesn't work to close a dialog under gtk3 until focus is put into some visible widget Change-Id: I297c2738c4103024bbefd70bbcb5d72b8429dd3e Reviewed-on: https://gerrit.libreoffice.org/83917 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit e55a1dc163165cb79fc9113101d16ee8d3db7298) Reviewed-on: https://gerrit.libreoffice.org/83966 (cherry picked from commit 794d5a3bb225bbfaced4dd968734783f073ba70b) Reviewed-on: https://gerrit.libreoffice.org/84523 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'include')
-rw-r--r--include/svtools/ctrlbox.hxx1
-rw-r--r--include/svx/colorbox.hxx3
-rw-r--r--include/svx/colorwindow.hxx3
3 files changed, 6 insertions, 1 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index b11dc4cbff60..02170765f82a 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -255,6 +255,7 @@ private:
DECL_LINK(StyleUpdated, weld::Widget&, void);
DECL_LINK(ValueSelectHdl, SvtValueSet*, void);
DECL_LINK(FocusHdl, weld::Widget&, void);
+ DECL_LINK(ToggleHdl, weld::ToggleButton&, void);
DECL_LINK(NoneHdl, weld::Button&, void);
void UpdateEntries();
diff --git a/include/svx/colorbox.hxx b/include/svx/colorbox.hxx
index ed4241fc3ad7..8cad4a630b86 100644
--- a/include/svx/colorbox.hxx
+++ b/include/svx/colorbox.hxx
@@ -109,6 +109,9 @@ private:
void createColorWindow();
void LockWidthRequest();
ColorWindow* getColorWindow() const;
+
+ DECL_LINK(ToggleHdl, weld::ToggleButton&, void);
+
public:
ColorListBox(std::unique_ptr<weld::MenuButton> pControl, weld::Window* pWindow);
~ColorListBox();
diff --git a/include/svx/colorwindow.hxx b/include/svx/colorwindow.hxx
index 4398c0c073c3..8de82592bf8f 100644
--- a/include/svx/colorwindow.hxx
+++ b/include/svx/colorwindow.hxx
@@ -138,7 +138,6 @@ private:
DECL_LINK(SelectPaletteHdl, weld::ComboBox&, void);
DECL_LINK(AutoColorClickHdl, weld::Button&, void);
DECL_LINK(OpenPickerClickHdl, weld::Button&, void);
- DECL_LINK(FocusHdl, weld::Widget&, void);
static bool SelectValueSetEntry(ColorValueSet* pColorSet, const Color& rColor);
static NamedColor GetSelectEntryColor(SvtValueSet const * pColorSet);
@@ -161,6 +160,8 @@ public:
void SelectEntry(const Color& rColor);
NamedColor GetSelectEntryColor() const;
+ DECL_LINK(FocusHdl, weld::Widget&, void);
+
virtual void statusChanged( const css::frame::FeatureStateEvent& rEvent ) override;
};