diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-01-28 13:12:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-02-04 22:37:24 +0100 |
commit | 5d0eba55bf516e94111aa4ed45c107cce6523124 (patch) | |
tree | 58299c774e8c1ced0eea3c4abd488d6b6d358c14 /cui | |
parent | 2b77e50cfe6fa06b7f7193d0a170553bdab63718 (diff) |
Resolves: tdf#122930 paper tray is to update on focus-in
which adds the problem that GtkComboBox doesn't send a focus-in,
but its toggle does, to find and use that instead
Change-Id: I18d46511bf2e6997539a8413f574a94b24b4583f
Reviewed-on: https://gerrit.libreoffice.org/67016
Tested-by: Jenkins
Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/page.hxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/page.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/inc/page.hxx b/cui/source/inc/page.hxx index 7fe4681343f9..315d6a36fd82 100644 --- a/cui/source/inc/page.hxx +++ b/cui/source/inc/page.hxx @@ -135,7 +135,7 @@ private: void Init_Impl(); DECL_LINK(LayoutHdl_Impl, weld::ComboBox&, void); - DECL_LINK(PaperBinHdl_Impl, weld::ComboBox&, void); + DECL_LINK(PaperBinHdl_Impl, weld::Widget&, void); DECL_LINK(SwapOrientation_Impl, weld::Button&, void); void SwapFirstValues_Impl( bool bSet ); DECL_LINK(BorderModify_Impl, weld::MetricSpinButton&, void); diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx index c9cc5f5dfd64..81ad11e810f6 100644 --- a/cui/source/tabpages/page.cxx +++ b/cui/source/tabpages/page.cxx @@ -308,7 +308,7 @@ void SvxPageDescPage::Init_Impl() // adjust the handler m_xLayoutBox->connect_changed(LINK(this, SvxPageDescPage, LayoutHdl_Impl)); - m_xPaperTrayBox->connect_changed(LINK(this, SvxPageDescPage, PaperBinHdl_Impl)); + m_xPaperTrayBox->connect_focus_in(LINK(this, SvxPageDescPage, PaperBinHdl_Impl)); m_xPaperSizeBox->connect_changed(LINK(this, SvxPageDescPage, PaperSizeSelect_Impl)); m_xPaperWidthEdit->connect_value_changed( LINK(this, SvxPageDescPage, PaperSizeModify_Impl)); m_xPaperHeightEdit->connect_value_changed(LINK(this, SvxPageDescPage, PaperSizeModify_Impl)); @@ -802,7 +802,7 @@ IMPL_LINK_NOARG(SvxPageDescPage, LayoutHdl_Impl, weld::ComboBox&, void) UpdateExample_Impl( true ); } -IMPL_LINK_NOARG(SvxPageDescPage, PaperBinHdl_Impl, weld::ComboBox&, void) +IMPL_LINK_NOARG(SvxPageDescPage, PaperBinHdl_Impl, weld::Widget&, void) { if (m_xPaperTrayBox->get_count() > 1) // already filled |