probably not honoring SetBackgroundColour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37295
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
for (int i = 0; i < n; i++)
{
if ( i != 0 )
for (int i = 0; i < n; i++)
{
if ( i != 0 )
- radio_button_group = gtk_radio_button_group( GTK_RADIO_BUTTON(m_radio) );
+ radio_button_group = gtk_radio_button_get_group( GTK_RADIO_BUTTON(m_radio) );
label.Empty();
for ( const wxChar *pc = choices[i]; *pc; pc++ )
label.Empty();
for ( const wxChar *pc = choices[i]; *pc; pc++ )
if (chief)
{
// we are part of the group started by chief
if (chief)
{
// we are part of the group started by chief
- radioButtonGroup = gtk_radio_button_group( GTK_RADIO_BUTTON(chief->m_widget) );
+ radioButtonGroup = gtk_radio_button_get_group( GTK_RADIO_BUTTON(chief->m_widget) );
// Build the colorized version of the label (markup only allowed
// under GTK2):
// 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
if (m_foregroundColour.Ok())
{
// If the color has been set, create a markup string to pass to
gtk_label_set_markup( GTK_LABEL(m_widget), wxGTK_CONV( colorlabel ) );
}
else
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))
// adjust the label size to the new label unless disabled
if (!HasFlag(wxST_NO_AUTORESIZE))