tell what signal is going to be sent to the client when killing through the dialog
This commit is contained in:
parent
aeb1ebd04d
commit
a3babc4a99
1 changed files with 7 additions and 1 deletions
|
@ -3316,9 +3316,15 @@ static void client_prompt_kill(ObClient *self)
|
||||||
{ _("Yes"), OB_KILL_RESULT_YES }
|
{ _("Yes"), OB_KILL_RESULT_YES }
|
||||||
};
|
};
|
||||||
gchar *m;
|
gchar *m;
|
||||||
|
const gchar *sig;
|
||||||
|
|
||||||
|
if (self->kill_level == 0)
|
||||||
|
sig = "terminate";
|
||||||
|
else
|
||||||
|
sig = "kill";
|
||||||
|
|
||||||
m = g_strdup_printf
|
m = g_strdup_printf
|
||||||
(_("The window \"%s\" does not seem to be responding. Do you want to force it to exit?"), self->original_title);
|
(_("The window \"%s\" does not seem to be responding. Do you want to force it to exit by sending the %s signal?"), self->original_title, sig);
|
||||||
|
|
||||||
self->kill_prompt = prompt_new(m, answers,
|
self->kill_prompt = prompt_new(m, answers,
|
||||||
sizeof(answers)/sizeof(answers[0]),
|
sizeof(answers)/sizeof(answers[0]),
|
||||||
|
|
Loading…
Reference in a new issue