[Libreoffice-commits] core.git: vcl/unx

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Oct 12 11:33:41 UTC 2018


 vcl/unx/gtk3/gtk3gtkinst.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 95b91bafa519e45177689e9459e621370a34a40b
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Oct 11 21:30:01 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
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 <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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


More information about the Libreoffice-commits mailing list