aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/org/gnu/emacs/EmacsDialog.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/java/org/gnu/emacs/EmacsDialog.java b/java/org/gnu/emacs/EmacsDialog.java
index bc0333e99b9..9f9124ce99c 100644
--- a/java/org/gnu/emacs/EmacsDialog.java
+++ b/java/org/gnu/emacs/EmacsDialog.java
@@ -166,14 +166,14 @@ public class EmacsDialog implements DialogInterface.OnDismissListener
166 if (size >= 2) 166 if (size >= 2)
167 { 167 {
168 button = buttons.get (1); 168 button = buttons.get (1);
169 dialog.setButton (DialogInterface.BUTTON_NEUTRAL, 169 dialog.setButton (DialogInterface.BUTTON_NEGATIVE,
170 button.name, button); 170 button.name, button);
171 } 171 }
172 172
173 if (size >= 3) 173 if (size >= 3)
174 { 174 {
175 button = buttons.get (2); 175 button = buttons.get (2);
176 dialog.setButton (DialogInterface.BUTTON_NEGATIVE, 176 dialog.setButton (DialogInterface.BUTTON_NEUTRAL,
177 button.name, button); 177 button.name, button);
178 } 178 }
179 } 179 }
@@ -274,10 +274,8 @@ public class EmacsDialog implements DialogInterface.OnDismissListener
274 if (size >= 2) 274 if (size >= 2)
275 { 275 {
276 button = buttons.get (1); 276 button = buttons.get (1);
277 dialog.setButton (DialogInterface.BUTTON_NEUTRAL,
278 button.name, button);
279 buttonView 277 buttonView
280 = dialog.getButton (DialogInterface.BUTTON_NEUTRAL); 278 = dialog.getButton (DialogInterface.BUTTON_NEGATIVE);
281 buttonView.setEnabled (button.enabled); 279 buttonView.setEnabled (button.enabled);
282 } 280 }
283 281
@@ -285,7 +283,7 @@ public class EmacsDialog implements DialogInterface.OnDismissListener
285 { 283 {
286 button = buttons.get (2); 284 button = buttons.get (2);
287 buttonView 285 buttonView
288 = dialog.getButton (DialogInterface.BUTTON_NEGATIVE); 286 = dialog.getButton (DialogInterface.BUTTON_NEUTRAL);
289 buttonView.setEnabled (button.enabled); 287 buttonView.setEnabled (button.enabled);
290 } 288 }
291 } 289 }