Skip to content

Commit

Permalink
Merge pull request #602 from HannesWell/replace-typedListener2
Browse files Browse the repository at this point in the history
Use Widget.removeTypedListener() in CheckTableCombo
  • Loading branch information
lcaron committed Jun 22, 2024
2 parents 3f39d77 + 28c4892 commit ddeb685
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ public void removeModifyListener(final ModifyListener listener) {
if (listener == null) {
SWT.error(SWT.ERROR_NULL_ARGUMENT);
}
this.removeListener(SWT.Modify, listener);
this.removeTypedListener(SWT.Modify, listener);
}

/**
Expand All @@ -1699,12 +1699,8 @@ public void removeModifyListener(final ModifyListener listener) {
* @see #addSelectionListener
*/
public void removeSelectionListener(final SelectionListener listener) {
checkWidget();
if (listener == null) {
SWT.error(SWT.ERROR_NULL_ARGUMENT);
}
this.removeListener(SWT.Selection, listener);
this.removeListener(SWT.DefaultSelection, listener);
this.removeTypedListener(SWT.Selection, listener);
this.removeTypedListener(SWT.DefaultSelection, listener);
}

/**
Expand All @@ -1728,11 +1724,7 @@ public void removeSelectionListener(final SelectionListener listener) {
* @since 3.3
*/
public void removeVerifyListener(final VerifyListener listener) {
checkWidget();
if (listener == null) {
SWT.error(SWT.ERROR_NULL_ARGUMENT);
}
this.removeListener(SWT.Verify, listener);
this.removeTypedListener(SWT.Verify, listener);
}

/**
Expand Down

0 comments on commit ddeb685

Please sign in to comment.