GTK2: gtk_radio_button_group -> _set_group; A missed gtk_label_set to set_text. Add a FIXME note for wxStaticText

probably not honoring SetBackgroundColour


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2006-02-04 00:09:16 +00:00
parent 2e14a11616
commit 78e017d8f3
3 changed files with 4 additions and 3 deletions

View File

@@ -119,6 +119,7 @@ void wxStaticText::SetLabel( const wxString &label )
// Build the colorized version of the label (markup only allowed
// under GTK2):
// FIXME: Does this handle background correct? I recall bug reports - MR
if (m_foregroundColour.Ok())
{
// If the color has been set, create a markup string to pass to
@@ -131,7 +132,7 @@ void wxStaticText::SetLabel( const wxString &label )
gtk_label_set_markup( GTK_LABEL(m_widget), wxGTK_CONV( colorlabel ) );
}
else
gtk_label_set( GTK_LABEL(m_widget), wxGTK_CONV( label1 ) );
gtk_label_set_text( GTK_LABEL(m_widget), wxGTK_CONV( label1 ) );
// adjust the label size to the new label unless disabled
if (!HasFlag(wxST_NO_AUTORESIZE))