mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
labnag: s/LAB_EXIT_TIMEOUT/LAB_EXIT_CANCELLED/
This commit is contained in:
parent
364a1d5207
commit
2b3aadb6af
3 changed files with 3 additions and 3 deletions
|
|
@ -1233,7 +1233,7 @@ nag_run(struct nag *nag)
|
|||
wl_display_cancel_read(nag->display);
|
||||
}
|
||||
if (nag->pollfds[FD_TIMER].revents & POLLIN) {
|
||||
exit_status = LAB_EXIT_TIMEOUT;
|
||||
exit_status = LAB_EXIT_CANCELLED;
|
||||
break;
|
||||
}
|
||||
if (nag->pollfds[FD_SIGNAL].revents & POLLIN) {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#define LABWC_ACTION_PROMPT_CODES_H
|
||||
|
||||
#define LAB_EXIT_FAILURE 255
|
||||
#define LAB_EXIT_TIMEOUT 254
|
||||
#define LAB_EXIT_CANCELLED 254
|
||||
#define LAB_EXIT_SUCCESS 0
|
||||
|
||||
#endif /* LABWC_ACTION_PROMPT_CODES_H */
|
||||
|
|
|
|||
|
|
@ -934,7 +934,7 @@ action_check_prompt_result(pid_t pid, int exit_code)
|
|||
if (exit_code == LAB_EXIT_SUCCESS) {
|
||||
wlr_log(WLR_INFO, "Selected the 'then' branch");
|
||||
actions = action_get_actionlist(prompt->action, "then");
|
||||
} else if (exit_code == LAB_EXIT_TIMEOUT) {
|
||||
} else if (exit_code == LAB_EXIT_CANCELLED) {
|
||||
/* no-op */
|
||||
} else {
|
||||
wlr_log(WLR_INFO, "Selected the 'else' branch");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue