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

tdf#120420 fix for overwide Ubuntu 16.04 GtkSpinButtons

Change-Id: I581a7f4e8e10b8002fee5ddf9b24fdb867b2235e
Reviewed-on: https://gerrit.libreoffice.org/61694
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 50c2effd
...@@ -3624,6 +3624,7 @@ public: ...@@ -3624,6 +3624,7 @@ public:
{ {
disable_notify_events(); disable_notify_events();
gtk_entry_set_width_chars(m_pEntry, nChars); gtk_entry_set_width_chars(m_pEntry, nChars);
gtk_entry_set_max_width_chars(m_pEntry, nChars);
enable_notify_events(); enable_notify_events();
} }
...@@ -5313,7 +5314,10 @@ public: ...@@ -5313,7 +5314,10 @@ public:
GtkWidget* pChild = gtk_bin_get_child(GTK_BIN(m_pComboBox)); GtkWidget* pChild = gtk_bin_get_child(GTK_BIN(m_pComboBox));
assert(pChild && GTK_IS_ENTRY(pChild)); assert(pChild && GTK_IS_ENTRY(pChild));
GtkEntry* pEntry = GTK_ENTRY(pChild); GtkEntry* pEntry = GTK_ENTRY(pChild);
disable_notify_events();
gtk_entry_set_width_chars(pEntry, nChars); 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 virtual void select_entry_region(int nStartPos, int nEndPos) override
......
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