string was empty.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15773
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- m_widget = gtk_frame_new(m_label.empty() ? (char *)NULL : m_label.mbc_str());
+ m_widget = gtk_frame_new(label.empty() ? (char *)NULL : label.mbc_str());
m_parent->DoAddChild( this );
m_parent->DoAddChild( this );
if ( xalign )
gtk_frame_set_label_align(GTK_FRAME( m_widget ), xalign, 0.0);
if ( xalign )
gtk_frame_set_label_align(GTK_FRAME( m_widget ), xalign, 0.0);
Show( TRUE );
return TRUE;
Show( TRUE );
return TRUE;
{
wxControl::SetLabel( label );
{
wxControl::SetLabel( label );
- gtk_frame_set_label( GTK_FRAME( m_widget ), GetLabel().mbc_str() );
+ gtk_frame_set_label( GTK_FRAME( m_widget ),
+ label.empty() ? (char *)NULL : label.mbc_str() );
}
void wxStaticBox::ApplyWidgetStyle()
}
void wxStaticBox::ApplyWidgetStyle()
- m_widget = gtk_frame_new(m_label.empty() ? (char *)NULL : m_label.mbc_str());
+ m_widget = gtk_frame_new(label.empty() ? (char *)NULL : label.mbc_str());
m_parent->DoAddChild( this );
m_parent->DoAddChild( this );
if ( xalign )
gtk_frame_set_label_align(GTK_FRAME( m_widget ), xalign, 0.0);
if ( xalign )
gtk_frame_set_label_align(GTK_FRAME( m_widget ), xalign, 0.0);
Show( TRUE );
return TRUE;
Show( TRUE );
return TRUE;
{
wxControl::SetLabel( label );
{
wxControl::SetLabel( label );
- gtk_frame_set_label( GTK_FRAME( m_widget ), GetLabel().mbc_str() );
+ gtk_frame_set_label( GTK_FRAME( m_widget ),
+ label.empty() ? (char *)NULL : label.mbc_str() );
}
void wxStaticBox::ApplyWidgetStyle()
}
void wxStaticBox::ApplyWidgetStyle()