vcl/unx/gtk3/gtk3gtkinst.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 95b91bafa519e45177689e9459e621370a34a40b
Author: Caolán McNamara <[email protected]>
AuthorDate: Thu Oct 11 21:30:01 2018 +0100
Commit: Caolán McNamara <[email protected]>
CommitDate: Fri Oct 12 13:33:16 2018 +0200
tdf#120420 fix for overwide Ubuntu 16.04 GtkSpinButtons
Change-Id: I581a7f4e8e10b8002fee5ddf9b24fdb867b2235e
Reviewed-on: https://gerrit.libreoffice.org/61694
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 3c8fe4aeddd1..7caca86815a7 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -3624,6 +3624,7 @@ public:
{
disable_notify_events();
gtk_entry_set_width_chars(m_pEntry, nChars);
+ gtk_entry_set_max_width_chars(m_pEntry, nChars);
enable_notify_events();
}
@@ -5313,7 +5314,10 @@ public:
GtkWidget* pChild = gtk_bin_get_child(GTK_BIN(m_pComboBox));
assert(pChild && GTK_IS_ENTRY(pChild));
GtkEntry* pEntry = GTK_ENTRY(pChild);
+ disable_notify_events();
gtk_entry_set_width_chars(pEntry, nChars);
+ gtk_entry_set_max_width_chars(pEntry, nChars);
+ enable_notify_events();
}
virtual void select_entry_region(int nStartPos, int nEndPos) override
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits