Skip to content

Commit efa812b

Browse files
committed
fix: yad entry malfunctions when labels are specified
1 parent 290f369 commit efa812b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

inputbox/src/backend/general.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,16 @@ impl CommandBackend for Yad {
172172

173173
cmd.arg("--button");
174174
if let Some(label) = &input.cancel_label {
175-
cmd.arg(format!("{label}{sep}gtk-cancel"));
175+
cmd.arg(format!("{label}{sep}gtk-cancel:1"));
176176
} else {
177-
cmd.arg("yad-cancel");
177+
cmd.arg("yad-cancel:1");
178178
}
179179

180180
cmd.arg("--button");
181181
if let Some(label) = &input.ok_label {
182-
cmd.arg(format!("{label}{sep}gtk-ok"));
182+
cmd.arg(format!("{label}{sep}gtk-ok:0"));
183183
} else {
184-
cmd.arg("yad-ok");
184+
cmd.arg("yad-ok:0");
185185
}
186186
}
187187
if let Some(width) = input.width {

0 commit comments

Comments
 (0)