File 0001-Fix-wxSpinButton-best-size-for-GTK-3.12-and-later-se.patch of Package wxWidgets-3_0

From 312ae4c92cec95954557347c2b7a9e24d4398a59 Mon Sep 17 00:00:00 2001
From: Paul Cornett <paulcor@users.noreply.github.com>
Date: Thu, 16 Jul 2015 07:13:27 -0700
Subject: [PATCH] Fix wxSpinButton best size for GTK+ 3.12 and later, see
 #17051

---
 src/gtk/spinbutt.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gtk/spinbutt.cpp b/src/gtk/spinbutt.cpp
index cdb3bca..a2285fb 100644
--- a/src/gtk/spinbutt.cpp
+++ b/src/gtk/spinbutt.cpp
@@ -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) );
 
-- 
2.7.0

openSUSE Build Service is sponsored by