unsigned int num_of_cols = GetColumnCount();
unsigned int num_of_rows = GetRowCount();
- GtkRadioButton *rbtn = (GtkRadioButton*) NULL;
+ GtkRadioButton *rbtn = NULL;
GtkWidget *table = gtk_table_new( num_of_rows, num_of_cols, FALSE );
gtk_table_set_col_spacings( GTK_TABLE(table), 1 );
gtk_container_add( GTK_CONTAINER(m_widget), table );
wxString label;
- GSList *radio_button_group = (GSList *) NULL;
+ GSList *radio_button_group = NULL;
for (unsigned int i = 0; i < (unsigned int)n; i++)
{
if ( i != 0 )
}
#if wxUSE_TOOLTIPS
-void wxRadioBox::ApplyToolTip(GtkTooltips * WXUNUSED(tips), const gchar *tip)
+void wxRadioBox::GTKApplyToolTip(GtkTooltips * WXUNUSED(tips), const gchar *tip)
{
// set this tooltip for all radiobuttons which don't have their own tips
unsigned n = 0;
{
if ( !GetItemToolTip(n) )
{
- wxToolTip::Apply(GTK_WIDGET(node->GetData()->button), tip);
+ wxToolTip::GTKApply(GTK_WIDGET(node->GetData()->button), tip);
}
}
}
if ( tooltip )
buf = wxGTK_CONV(tooltip->GetTip());
- wxToolTip::Apply(GTK_WIDGET(m_buttonsInfo[n]->button), buf);
+ wxToolTip::GTKApply(GTK_WIDGET(m_buttonsInfo[n]->button), buf);
}
#endif // wxUSE_TOOLTIPS
{
GtkWidget *button = GTK_WIDGET( node->GetData()->button );
- windows.push_back(button->window);
+ // don't put NULL pointers in the 'windows' array!
+ if (button->window)
+ windows.push_back(button->window);
node = node->GetNext();
}