move text_filter file

This commit is contained in:
tetenpapier 2022-08-12 17:34:02 +02:00
parent 5f5450487f
commit c004b3a619
3 changed files with 4 additions and 3 deletions

View File

@ -33,6 +33,7 @@ pub use self::style::*;
#[cfg(feature = "tables-api")]
pub use self::tables::*;
pub use self::text_filter::*;
pub use self::utils::*;
pub use self::widget::color_editors::*;
pub use self::widget::combo_box::*;
@ -45,7 +46,6 @@ pub use self::widget::progress_bar::*;
pub use self::widget::selectable::*;
pub use self::widget::slider::*;
pub use self::widget::tab::*;
pub use self::widget::text_filter::*;
pub use self::widget::tree::*;
pub use self::window::child_window::*;
pub use self::window::*;
@ -82,6 +82,7 @@ mod style;
mod tables;
#[cfg(test)]
mod test;
pub mod text_filter;
mod utils;
mod widget;
mod window;

View File

@ -17,7 +17,8 @@ impl TextFilter {
}
/// Creates a new TextFilter with a custom filter.
pub fn new_with_filter(label: String, mut filter: String) -> Self {
pub fn new_with_filter(label: String, filter: String) -> Self {
let mut filter = filter.clone();
filter.push('\0');
let ptr = filter.as_mut_ptr();
Self {

View File

@ -10,5 +10,4 @@ pub mod selectable;
pub mod slider;
pub mod tab;
pub mod text;
pub mod text_filter;
pub mod tree;