@@ -2822,7 +2822,7 @@ pub fn setup_checkbox(
28222822 if (element .focus == .unspecified )
28232823 element .focus = .can_focus ;
28242824
2825- try element .set_text (allocator , self , element .type .checkbox .text , true );
2825+ try element .set_text (allocator , self , element .type .checkbox .text );
28262826
28272827 if (try self .load_texture (allocator , "ios-checkbox-on" )) | texture | {
28282828 element .type .checkbox .on_texture = texture ;
@@ -2879,7 +2879,7 @@ pub fn setup_label(
28792879 else
28802880 element .focus = .accessibility_focus ;
28812881 }
2882- try element .set_text (allocator , self , element .type .label .text , true );
2882+ try element .set_text (allocator , self , element .type .label .text );
28832883
28842884 // Is there a background for this label?
28852885 if (element .background .image_name ) | name | {
@@ -2934,9 +2934,9 @@ pub fn setup_text_input(
29342934 element .type .text_input .text = .empty ;
29352935 element .type .text_input .runes = .empty ;
29362936 if (element .type .text_input .initial_text ) | text | {
2937- try element .set_text (allocator , self , text , true );
2937+ try element .set_text (allocator , self , text );
29382938 } else {
2939- try element .set_text (allocator , self , "" , true );
2939+ try element .set_text (allocator , self , "" );
29402940 }
29412941 if (element .type .text_input .placeholder_text ) | text | {
29422942 try element .set_placeholder_text (allocator , self , text );
@@ -3031,7 +3031,7 @@ pub fn setup_button(
30313031 element .background .image_name .? ,
30323032 });
30333033
3034- try element .set_text (allocator , display , element .type .button .text , true );
3034+ try element .set_text (allocator , display , element .type .button .text );
30353035
30363036 if (element .type .button .icon_default_name ) | icon_default | {
30373037 if (try display .load_texture (allocator , icon_default )) | texture | {
@@ -3535,7 +3535,7 @@ test "button sizing" {
35353535 try std .testing .expect (display .resources .by_uid .count () > 0 );
35363536 _ = try display .load_font (allocator , "Roboto-Light" );
35373537
3538- try button .set_text (allocator , display , "Hello" , true );
3538+ try button .set_text (allocator , display , "Hello" );
35393539 display .relayout ();
35403540 try eq (83 , @trunc (button .rect .width ));
35413541 try eq (100 , @trunc (panel .rect .width ));
0 commit comments