Fix wxSpinButton best size for GTK+ 3.12 and later, closes #17051

This commit is contained in:
Paul Cornett
2015-07-16 07:13:42 -07:00
parent 4b704d4193
commit 8749496b15

View File

@@ -92,6 +92,10 @@ bool wxSpinButton::Create(wxWindow *parent,
g_object_ref(m_widget);
gtk_entry_set_width_chars(GTK_ENTRY(m_widget), 0);
#if GTK_CHECK_VERSION(3,12,0)
if (gtk_check_version(3,12,0) == NULL)
gtk_entry_set_max_width_chars(GTK_ENTRY(m_widget), 0);
#endif
gtk_spin_button_set_wrap( GTK_SPIN_BUTTON(m_widget),
(int)(m_windowStyle & wxSP_WRAP) );