diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index b73a7ad394..382b52a18e 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -295,7 +295,7 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value, gtk_combo_set_case_sensitive( GTK_COMBO(m_widget), TRUE ); if (style & wxNO_BORDER) - g_object_set( GTK_ENTRY( combo->entry ), "has-frame", FALSE, NULL ); + g_object_set (combo->entry, "has-frame", FALSE, NULL ); GtkWidget *list = combo->list; diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 3faedf4790..c3b61e8e3e 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -612,7 +612,7 @@ bool wxTextCtrl::Create( wxWindow *parent, m_text = gtk_entry_new(); if (style & wxNO_BORDER) - g_object_set( GTK_ENTRY(m_text), "has-frame", FALSE, NULL ); + g_object_set (m_text, "has-frame", FALSE, NULL); } m_parent->DoAddChild( this );