{
gtk_set_locale();
+ if (!wxOKlibc()) wxConv_current = &wxConv_local;
+
gtk_init( &argc, &argv );
wxSetDetectableAutoRepeat( TRUE );
GtkBin *bin = GTK_BIN( child->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str = label->label;
+ wxString str = wxString(label->label,*wxConv_current);
- return (str[1] == 'X');
+ return (str[1] == _T('X'));
}
wxFAIL_MSG(_T("wrong checklistbox index"));
GtkBin *bin = GTK_BIN( child->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str = label->label;
+ wxString str = wxString(label->label,*wxConv_current);
if (check == (str[1] == _T('X'))) return;
wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") );
- if (string == label->label)
+ if (string == wxString(label->label,*wxConv_current))
return count;
child = child->next;
wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") );
- return label->label;
+ return wxString(label->label,*wxConv_current);
}
child = child->next;
count++;
wxFAIL_MSG( _T("wxChoice: invalid index in GetString()") );
- return "";
+ return _T("");
}
wxString wxChoice::GetStringSelection() const
wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") );
- return label->label;
+ return wxString(label->label,*wxConv_current);
}
int wxChoice::Number() const
GtkBin *bin = GTK_BIN( child->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str(GET_REAL_LABEL(label->label));
+ wxString str(GET_REAL_LABEL(label->label),*wxConvCurrent);
deletedLabels.Add(str);
// save data
GtkBin *bin = GTK_BIN( child->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str = GET_REAL_LABEL(label->label);
+ wxString str = wxString(GET_REAL_LABEL(label->label),*wxConvCurrent);
if (str == item)
return count;
GtkBin *bin = GTK_BIN( child->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str = GET_REAL_LABEL(label->label);
+ wxString str = wxString(GET_REAL_LABEL(label->label),*wxConvCurrent);
return str;
}
GtkBin *bin = GTK_BIN( selection->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str = GET_REAL_LABEL(label->label);
+ wxString str = wxString(GET_REAL_LABEL(label->label),*wxConvCurrent);
return str;
}
{
gtk_set_locale();
+ if (!wxOKlibc()) wxConv_current = &wxConv_local;
+
gtk_init( &argc, &argv );
wxSetDetectableAutoRepeat( TRUE );
GtkBin *bin = GTK_BIN( child->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str = label->label;
+ wxString str = wxString(label->label,*wxConv_current);
- return (str[1] == 'X');
+ return (str[1] == _T('X'));
}
wxFAIL_MSG(_T("wrong checklistbox index"));
GtkBin *bin = GTK_BIN( child->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str = label->label;
+ wxString str = wxString(label->label,*wxConv_current);
if (check == (str[1] == _T('X'))) return;
wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") );
- if (string == label->label)
+ if (string == wxString(label->label,*wxConv_current))
return count;
child = child->next;
wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") );
- return label->label;
+ return wxString(label->label,*wxConv_current);
}
child = child->next;
count++;
wxFAIL_MSG( _T("wxChoice: invalid index in GetString()") );
- return "";
+ return _T("");
}
wxString wxChoice::GetStringSelection() const
wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") );
- return label->label;
+ return wxString(label->label,*wxConv_current);
}
int wxChoice::Number() const
GtkBin *bin = GTK_BIN( child->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str(GET_REAL_LABEL(label->label));
+ wxString str(GET_REAL_LABEL(label->label),*wxConvCurrent);
deletedLabels.Add(str);
// save data
GtkBin *bin = GTK_BIN( child->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str = GET_REAL_LABEL(label->label);
+ wxString str = wxString(GET_REAL_LABEL(label->label),*wxConvCurrent);
if (str == item)
return count;
GtkBin *bin = GTK_BIN( child->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str = GET_REAL_LABEL(label->label);
+ wxString str = wxString(GET_REAL_LABEL(label->label),*wxConvCurrent);
return str;
}
GtkBin *bin = GTK_BIN( selection->data );
GtkLabel *label = GTK_LABEL( bin->child );
- wxString str = GET_REAL_LABEL(label->label);
+ wxString str = wxString(GET_REAL_LABEL(label->label),*wxConvCurrent);
return str;
}