]> git.saurik.com Git - wxWidgets.git/commitdiff
fix to not show ampersands in the static box title (needed after the previous change)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Jul 2002 14:09:32 +0000 (14:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Jul 2002 14:09:32 +0000 (14:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/statbox.cpp
src/gtk1/statbox.cpp

index 22c946136c3f19457f3f844811d774dcb219e9c5..3884e299b71b2f562c16932110f229e3c5207081 100644 (file)
@@ -58,14 +58,14 @@ bool wxStaticBox::Create( wxWindow *parent,
         return FALSE;
     }
 
-    m_widget = gtk_frame_new(label.empty() ? (char *)NULL : label.mbc_str());
+    wxControl::SetLabel(label);
+
+    m_widget = gtk_frame_new(m_label.empty() ? (char *)NULL : m_label.mbc_str());
 
     m_parent->DoAddChild( this );
 
     PostCreation();
 
-    SetLabel(label);
-
     InheritAttributes();
 
     // need to set non default alignment?
@@ -90,7 +90,7 @@ void wxStaticBox::SetLabel( const wxString &label )
     wxControl::SetLabel( label );
 
     gtk_frame_set_label( GTK_FRAME( m_widget ),
-                         label.empty() ? (char *)NULL : label.mbc_str() );
+                         m_label.empty() ? (char *)NULL : m_label.mbc_str() );
 }
 
 void wxStaticBox::ApplyWidgetStyle()
index 22c946136c3f19457f3f844811d774dcb219e9c5..3884e299b71b2f562c16932110f229e3c5207081 100644 (file)
@@ -58,14 +58,14 @@ bool wxStaticBox::Create( wxWindow *parent,
         return FALSE;
     }
 
-    m_widget = gtk_frame_new(label.empty() ? (char *)NULL : label.mbc_str());
+    wxControl::SetLabel(label);
+
+    m_widget = gtk_frame_new(m_label.empty() ? (char *)NULL : m_label.mbc_str());
 
     m_parent->DoAddChild( this );
 
     PostCreation();
 
-    SetLabel(label);
-
     InheritAttributes();
 
     // need to set non default alignment?
@@ -90,7 +90,7 @@ void wxStaticBox::SetLabel( const wxString &label )
     wxControl::SetLabel( label );
 
     gtk_frame_set_label( GTK_FRAME( m_widget ),
-                         label.empty() ? (char *)NULL : label.mbc_str() );
+                         m_label.empty() ? (char *)NULL : m_label.mbc_str() );
 }
 
 void wxStaticBox::ApplyWidgetStyle()