]> git.saurik.com Git - wxWidgets.git/commitdiff
A couple more.
authorOve Kaaven <ovek@arcticnet.no>
Thu, 15 Apr 1999 13:24:06 +0000 (13:24 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Thu, 15 Apr 1999 13:24:06 +0000 (13:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/spinbutt.cpp
src/gtk/statbox.cpp
src/gtk/stattext.cpp
src/gtk1/spinbutt.cpp
src/gtk1/statbox.cpp
src/gtk1/stattext.cpp

index a3d1af0557c4058e513e2ac17c1842a7665a0f89..afbd61ee1ec1b8e51bae5b22555a212e091c9566 100644 (file)
@@ -121,28 +121,28 @@ wxSpinButton::~wxSpinButton()
 
 int wxSpinButton::GetMin() const
 {
-    wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+    wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
 
     return (int)ceil(m_adjust->lower);
 }
 
 int wxSpinButton::GetMax() const
 {
-    wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+    wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
 
     return (int)ceil(m_adjust->upper);
 }
 
 int wxSpinButton::GetValue() const
 {
-    wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+    wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
 
     return (int)ceil(m_adjust->value);
 }
 
 void wxSpinButton::SetValue( int value )
 {
-    wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+    wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
 
     float fpos = (float)value;
     m_oldPos = fpos;
@@ -155,7 +155,7 @@ void wxSpinButton::SetValue( int value )
 
 void wxSpinButton::SetRange(int minVal, int maxVal)
 {
-    wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+    wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
 
     float fmin = (float)minVal;
     float fmax = (float)maxVal;
@@ -174,7 +174,7 @@ void wxSpinButton::SetRange(int minVal, int maxVal)
 
 void wxSpinButton::OnSize( wxSizeEvent &WXUNUSED(event) )
 {
-    wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+    wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
 
     m_width = 16;
     gtk_widget_set_usize( m_widget, m_width, m_height );
@@ -201,5 +201,3 @@ wxSpinEvent::wxSpinEvent(wxEventType commandType, int id):
   wxScrollEvent(commandType, id)
 {
 }
-
-
index 2bef39033731f9383cf3fdf6fa7754dff9eb8a66..c4d3cb49edafdc7a69dbe1c89ae06a6400f70f54 100644 (file)
@@ -43,7 +43,7 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label
 
     m_isStaticBox = TRUE;
     
-    m_widget = gtk_frame_new(m_label);
+    m_widget = gtk_frame_new(m_label.mbc_str());
 
     m_parent->AddChild( this );
 
@@ -66,7 +66,7 @@ void wxStaticBox::SetLabel( const wxString &label )
 {
     wxControl::SetLabel( label );
     GtkFrame *frame = GTK_FRAME( m_widget );
-    gtk_frame_set_label( frame, GetLabel() );
+    gtk_frame_set_label( frame, GetLabel().mbc_str() );
 }
 
 void wxStaticBox::ApplyWidgetStyle()
@@ -74,4 +74,3 @@ void wxStaticBox::ApplyWidgetStyle()
     SetWidgetStyle();
     gtk_widget_set_style( m_widget, m_widgetStyle );
 }
-
index 721c31843dfd3731bcb1f5c41118564772552ea6..102a55b09ad85b2465e2e58ce2b90d7b1193c19c 100644 (file)
@@ -57,7 +57,7 @@ bool wxStaticText::Create(wxWindow *parent,
     // because the label is not yet created and because SetLabel() has a side
     // effect of changing the control size which might not be desirable
     wxControl::SetLabel(label);
-    m_widget = gtk_label_new( m_label );
+    m_widget = gtk_label_new( m_label.mbc_str() );
 
     GtkJustification justify;
     if ( style & wxALIGN_CENTER )
@@ -103,7 +103,7 @@ void wxStaticText::SetLabel( const wxString &label )
 {
     wxControl::SetLabel(label);
 
-    gtk_label_set( GTK_LABEL(m_widget), m_label );
+    gtk_label_set( GTK_LABEL(m_widget), m_label.mbc_str() );
 
     // adjust the label size to the new label
 
index a3d1af0557c4058e513e2ac17c1842a7665a0f89..afbd61ee1ec1b8e51bae5b22555a212e091c9566 100644 (file)
@@ -121,28 +121,28 @@ wxSpinButton::~wxSpinButton()
 
 int wxSpinButton::GetMin() const
 {
-    wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+    wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
 
     return (int)ceil(m_adjust->lower);
 }
 
 int wxSpinButton::GetMax() const
 {
-    wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+    wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
 
     return (int)ceil(m_adjust->upper);
 }
 
 int wxSpinButton::GetValue() const
 {
-    wxCHECK_MSG( (m_widget != NULL), 0, "invalid spin button" );
+    wxCHECK_MSG( (m_widget != NULL), 0, _T("invalid spin button") );
 
     return (int)ceil(m_adjust->value);
 }
 
 void wxSpinButton::SetValue( int value )
 {
-    wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+    wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
 
     float fpos = (float)value;
     m_oldPos = fpos;
@@ -155,7 +155,7 @@ void wxSpinButton::SetValue( int value )
 
 void wxSpinButton::SetRange(int minVal, int maxVal)
 {
-    wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+    wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
 
     float fmin = (float)minVal;
     float fmax = (float)maxVal;
@@ -174,7 +174,7 @@ void wxSpinButton::SetRange(int minVal, int maxVal)
 
 void wxSpinButton::OnSize( wxSizeEvent &WXUNUSED(event) )
 {
-    wxCHECK_RET( (m_widget != NULL), "invalid spin button" );
+    wxCHECK_RET( (m_widget != NULL), _T("invalid spin button") );
 
     m_width = 16;
     gtk_widget_set_usize( m_widget, m_width, m_height );
@@ -201,5 +201,3 @@ wxSpinEvent::wxSpinEvent(wxEventType commandType, int id):
   wxScrollEvent(commandType, id)
 {
 }
-
-
index 2bef39033731f9383cf3fdf6fa7754dff9eb8a66..c4d3cb49edafdc7a69dbe1c89ae06a6400f70f54 100644 (file)
@@ -43,7 +43,7 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label
 
     m_isStaticBox = TRUE;
     
-    m_widget = gtk_frame_new(m_label);
+    m_widget = gtk_frame_new(m_label.mbc_str());
 
     m_parent->AddChild( this );
 
@@ -66,7 +66,7 @@ void wxStaticBox::SetLabel( const wxString &label )
 {
     wxControl::SetLabel( label );
     GtkFrame *frame = GTK_FRAME( m_widget );
-    gtk_frame_set_label( frame, GetLabel() );
+    gtk_frame_set_label( frame, GetLabel().mbc_str() );
 }
 
 void wxStaticBox::ApplyWidgetStyle()
@@ -74,4 +74,3 @@ void wxStaticBox::ApplyWidgetStyle()
     SetWidgetStyle();
     gtk_widget_set_style( m_widget, m_widgetStyle );
 }
-
index 721c31843dfd3731bcb1f5c41118564772552ea6..102a55b09ad85b2465e2e58ce2b90d7b1193c19c 100644 (file)
@@ -57,7 +57,7 @@ bool wxStaticText::Create(wxWindow *parent,
     // because the label is not yet created and because SetLabel() has a side
     // effect of changing the control size which might not be desirable
     wxControl::SetLabel(label);
-    m_widget = gtk_label_new( m_label );
+    m_widget = gtk_label_new( m_label.mbc_str() );
 
     GtkJustification justify;
     if ( style & wxALIGN_CENTER )
@@ -103,7 +103,7 @@ void wxStaticText::SetLabel( const wxString &label )
 {
     wxControl::SetLabel(label);
 
-    gtk_label_set( GTK_LABEL(m_widget), m_label );
+    gtk_label_set( GTK_LABEL(m_widget), m_label.mbc_str() );
 
     // adjust the label size to the new label