11/*******************************************************************************
2- * Copyright (c) 2000, 2025 IBM Corporation and others.
2+ * Copyright (c) 2000, 2026 IBM Corporation and others.
33 *
44 * This program and the accompanying materials
55 * are made available under the terms of the Eclipse Public License 2.0
@@ -171,18 +171,18 @@ long gtk_commit (long imcontext, long text) {
171171long gtk_draw (long widget , long cairo ) {
172172 if ((state & OBSCURED ) != 0 ) return 0 ;
173173 long result = super .gtk_draw (widget , cairo );
174- drawCaretInFocus (widget , cairo );
174+ drawCaretInFocus (cairo );
175175 return result ;
176176}
177177
178178@ Override
179179void gtk4_draw (long widget , long cairo , Rectangle bounds ) {
180180 if ((state & OBSCURED ) != 0 ) return ;
181181 super .gtk4_draw (widget , cairo , bounds );
182- drawCaretInFocus (widget , cairo );
182+ drawCaretInFocus (cairo );
183183}
184184
185- void drawCaretInFocus (long widget , long cairo ) {
185+ void drawCaretInFocus (long cairo ) {
186186 /*
187187 * blink is needed to be checked as gtk_draw() signals sent from other parts of the canvas
188188 * can interfere with the blinking state. This will ensure that we are only draw/redrawing the
@@ -191,12 +191,12 @@ void drawCaretInFocus(long widget, long cairo) {
191191 * Additionally, only draw the caret if it has focus. See bug 528819.
192192 */
193193 if (caret != null && blink == true && caret .isFocusCaret ()) {
194- drawCaret (widget , cairo );
194+ drawCaret (cairo );
195195 blink = false ;
196196 }
197197}
198198
199- private void drawCaret (long widget , long cairo ) {
199+ private void drawCaret (long cairo ) {
200200 if (this .isDisposed ()) return ;
201201 if (cairo == 0 ) error (SWT .ERROR_NO_HANDLES );
202202
0 commit comments