Kaydet (Commit) e3993341 authored tarafından Caolán McNamara's avatar Caolán McNamara

when gtk3 >= 3.22.0 set natural size propagate

so 1-10 in format numbering etc isn't slightly clipped
with a scrollbar on top of it

Change-Id: I55909993d4b4c846ca0aeff2f2cd458dfa59d860
Reviewed-on: https://gerrit.libreoffice.org/61262
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst ea7b290a
...@@ -5387,6 +5387,17 @@ private: ...@@ -5387,6 +5387,17 @@ private:
if (gtk_label_get_use_underline(pLabel)) if (gtk_label_get_use_underline(pLabel))
m_aMnemonicLabels.push_back(pLabel); m_aMnemonicLabels.push_back(pLabel);
} }
else if (GTK_IS_SCROLLED_WINDOW(pWidget))
{
#if GTK_CHECK_VERSION(3, 22, 0)
// while the .ui version is 3.18, do this in code when possible
if (gtk_check_version(3, 22, 0) == nullptr)
{
gtk_scrolled_window_set_propagate_natural_width(GTK_SCROLLED_WINDOW(pWidget), true);
gtk_scrolled_window_set_propagate_natural_height(GTK_SCROLLED_WINDOW(pWidget), true);
}
#endif
}
else if (GTK_IS_WINDOW(pWidget)) else if (GTK_IS_WINDOW(pWidget))
{ {
if (m_pStringReplace != nullptr) { if (m_pStringReplace != nullptr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment