summaryrefslogtreecommitdiff
path: root/devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-06-20 16:23:28 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-06-20 16:23:28 +0000
commit7ae7b018ccf7760013f368fcb83aad9ecd8982a8 (patch)
treee83ee6693050a76e305a95a376451aa583df151e /devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java
parenttextproc/rubygem-gitlab-grit: make it work with rubygem-mime-types again (diff)
With the power of USES=dos2unix, get rid of most patches and files
with CRLF. While there, run make makepatch, rename patches to use the new scheme, and various fixes. With hat: portmgr Sponsored by: Absolight
Diffstat (limited to 'devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java')
-rw-r--r--devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java52
1 files changed, 26 insertions, 26 deletions
diff --git a/devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java b/devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java
index a64a92dd2f20..b1dbcc7a39be 100644
--- a/devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java
+++ b/devel/charva/files/patch-java_src_charvax_swing_ButtonGroup.java
@@ -1,26 +1,26 @@
---- java/src/charvax/swing/ButtonGroup.java.orig 2005-12-17 15:27:30.000000000 +0100
-+++ java/src/charvax/swing/ButtonGroup.java 2009-11-16 10:26:42.000000000 +0100
-@@ -63,9 +63,10 @@
- * Adds the specified button to the group.
- */
- public void add(AbstractButton button_) {
-+ if (getSelection() != null)
-+ button_.setSelected(false);
- _buttons.add(button_);
- button_.addItemListener(this);
-- button_.setSelected(false);
- }
-
- /**
-@@ -133,10 +134,9 @@
- for (Enumeration e = _buttons.elements(); e.hasMoreElements();) {
-
- AbstractButton b = (AbstractButton) e.nextElement();
-- if (source != b || statechange != ItemEvent.SELECTED) {
-+ if (source != b && statechange == ItemEvent.SELECTED) {
- if (b.isSelected()) {
- b._selected = false;
-- b.setEnabled(true);
- }
- }
- }
+--- java/src/charvax/swing/ButtonGroup.java.orig 2016-06-20 12:40:44 UTC
++++ java/src/charvax/swing/ButtonGroup.java
+@@ -63,9 +63,10 @@ public class ButtonGroup
+ * Adds the specified button to the group.
+ */
+ public void add(AbstractButton button_) {
++ if (getSelection() != null)
++ button_.setSelected(false);
+ _buttons.add(button_);
+ button_.addItemListener(this);
+- button_.setSelected(false);
+ }
+
+ /**
+@@ -133,10 +134,9 @@ public class ButtonGroup
+ for (Enumeration e = _buttons.elements(); e.hasMoreElements();) {
+
+ AbstractButton b = (AbstractButton) e.nextElement();
+- if (source != b || statechange != ItemEvent.SELECTED) {
++ if (source != b && statechange == ItemEvent.SELECTED) {
+ if (b.isSelected()) {
+ b._selected = false;
+- b.setEnabled(true);
+ }
+ }
+ }