From 4d13f24dee9167d0a8ef4d47b94e38e7d5729ae3 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 4 Nov 2009 05:18:38 +0000 Subject: [PATCH] work around probable bug in GTK+ 2.18 when calling WriteText on a new, empty control, #11409 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/textctrl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index dddbd8509a..204ea58855 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -740,6 +740,9 @@ bool wxTextCtrl::Create( wxWindow *parent, // a single-line text control: no need for scrollbars m_widget = m_text = gtk_entry_new(); + // work around probable bug in GTK+ 2.18 when calling WriteText on a + // new, empty control, see http://trac.wxwidgets.org/ticket/11409 + gtk_entry_get_text((GtkEntry*)m_text); if (style & wxNO_BORDER) g_object_set (m_text, "has-frame", FALSE, NULL);