Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix wxSpinButton best size for GTK+ 3.12 and later, see #17051
  • Loading branch information
paulcor committed Jul 16, 2015
1 parent e315ef0 commit 312ae4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gtk/spinbutt.cpp
Expand Up @@ -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) );

Expand Down

0 comments on commit 312ae4c

Please sign in to comment.