projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c38a756
)
Change the kill prompt buttons to "Cancel" and "End Process"/"Disconnect" (for local...
author
Dana Jansens
<danakj@orodu.net>
Wed, 27 Feb 2008 03:22:35 +0000
(22:22 -0500)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 27 Feb 2008 03:32:20 +0000
(22:32 -0500)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index
3a46f82
..
20a4dff
100644
(file)
--- a/
openbox/client.c
+++ b/
openbox/client.c
@@
-3406,10
+3406,11
@@
static void client_prompt_kill(ObClient *self)
/* check if we're already prompting */
if (!self->kill_prompt) {
ObPromptAnswer answers[] = {
/* check if we're already prompting */
if (!self->kill_prompt) {
ObPromptAnswer answers[] = {
- {
_("Cancel")
, OB_KILL_RESULT_NO },
- {
_("Force Exit")
, OB_KILL_RESULT_YES }
+ {
0
, OB_KILL_RESULT_NO },
+ {
0
, OB_KILL_RESULT_YES }
};
gchar *m;
};
gchar *m;
+ const gchar *y;
if (client_on_localhost(self)) {
const gchar *sig;
if (client_on_localhost(self)) {
const gchar *sig;
@@
-3420,12
+3421,19
@@
static void client_prompt_kill(ObClient *self)
sig = "kill";
m = g_strdup_printf
sig = "kill";
m = g_strdup_printf
- (_("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);
+ (_("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);
+ y = _("End Process");
}
}
- else
+ else
{
m = g_strdup_printf
m = g_strdup_printf
- (_("The window \"%s\" does not seem to be responding. Do you want to disconnect it from the X server?"), self->original_title);
-
+ (_("The window \"%s\" does not seem to be responding. Do you want to disconnect it from the X server?"),
+ self->original_title);
+ y = _("Disconnect");
+ }
+ /* set the dialog buttons' text */
+ answers[0].text = _("Cancel"); /* "no" */
+ answers[1].text = y; /* "yes" */
self->kill_prompt = prompt_new(m, answers,
sizeof(answers)/sizeof(answers[0]),
self->kill_prompt = prompt_new(m, answers,
sizeof(answers)/sizeof(answers[0]),