From 26e1cc24a2ace4da0b8d2648e0ea9b4103c10ef6 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 7 Jun 2021 23:25:59 +0200 Subject: [PATCH] [DEV] correct signal handle --- src/org/atriasoft/ewol/widget/Entry.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/org/atriasoft/ewol/widget/Entry.java b/src/org/atriasoft/ewol/widget/Entry.java index a0e0a0e..ecb3499 100644 --- a/src/org/atriasoft/ewol/widget/Entry.java +++ b/src/org/atriasoft/ewol/widget/Entry.java @@ -41,10 +41,6 @@ import org.atriasoft.gale.key.KeyType; * ~~~~~~~~~~~~~~~~~~~~~~ */ public class Entry extends Widget { - //private int colorIdCursor; //!< color property of the text cursor - //private int colorIdSelection; //!< color property of the text selection - //private int colorIdTextBg; //!< color property of the text background - /// color property of the text foreground private int colorIdTextFg; /// Cursor must be display only when the widget has the focus @@ -159,7 +155,7 @@ public class Entry extends Widget { if (this.shape.changeStatusIn(newStatusId)) { if (!this.periodicConnectionHanble.isConnected()) { Log.error("REQUEST: connection on operiodic call"); - this.periodicConnectionHanble = EwolObject.getObjectManager().periodicCall.connectDynamic(this, eventTime -> { periodicCall(eventTime);}); + this.periodicConnectionHanble = EwolObject.getObjectManager().periodicCall.connect(this, Entry::periodicCall); } markToRedraw(); } @@ -612,12 +608,12 @@ public class Entry extends Widget { * Periodic call to update grapgic display * @param _event Time generic event */ - protected void periodicCall(final EventTime event) { + protected static void periodicCall(final Entry self, final EventTime event) { Log.verbose("Periodic call on Entry(" + event + ")"); - if (!this.shape.periodicCall(event)) { - this.periodicConnectionHanble.close(); + if (!self.shape.periodicCall(event)) { + self.periodicConnectionHanble.close(); } - markToRedraw(); + self.markToRedraw(); } /**