<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Le 24/11/2010 08:11, Julien Nabet a &eacute;crit&nbsp;:
<blockquote cite="mid:4CECBAB6.3030705@yahoo.fr" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <pre wrap="">Date: Tue, 23 Nov 2010 22:20:36 -0500
From: Kohei Yoshida <a moz-do-not-send="true"
 class="moz-txt-link-rfc2396E" href="mailto:kyoshida@novell.com">&lt;kyoshida@novell.com&gt;</a>
Subject: Re: [Libreoffice] [PATCH] try to correct some timers in sc +
        question
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:libreoffice@lists.freedesktop.org">libreoffice@lists.freedesktop.org</a>
Message-ID: &lt;1290568836.2532.14.camel@localhost&gt;
Content-Type: text/plain; charset="UTF-8"

Hi Julien,

On Sat, 2010-11-20 at 01:19 +0100, Julien Nabet wrote:
  </pre>
  <blockquote type="cite" style="color: rgb(0, 0, 0);">
    <pre wrap=""><span class="moz-txt-citetags">&gt; </span>Hello,
<span class="moz-txt-citetags">&gt; </span>
<span class="moz-txt-citetags">&gt; </span>Here's a try to correct some timers in scmod.cxx.
<span class="moz-txt-citetags">&gt; </span>Here's what I did and why.
<span class="moz-txt-citetags">&gt; </span>
<span class="moz-txt-citetags">&gt; </span>1) In IMPL_LINK( ScModule, SpellTimerHdl, Timer*, EMPTYARG )
<span class="moz-txt-citetags">&gt; </span>I just added aSpellTimer.Stop() when there's neither input from keyboard 
<span class="moz-txt-citetags">&gt; </span>nor ContinueOnlineSpelling.
<span class="moz-txt-citetags">&gt; </span>+ I changed the function to have 1 return only.
<span class="moz-txt-citetags">&gt; </span>
<span class="moz-txt-citetags">&gt; </span>2) In IMPL_LINK( ScModule, IdleHandler, Timer*, EMPTYARG )
<span class="moz-txt-citetags">&gt; </span>I removed all the things with bSpell since it seems that 
<span class="moz-txt-citetags">&gt; </span>ContinueOnlineSpelling is managed by SpellTimerHdl
<span class="moz-txt-citetags">&gt; </span>I'd like to add a stop but i'd like first to understand what's the use 
<span class="moz-txt-citetags">&gt; </span>of all the SC_IDLE_STEP, SC_IDLE_MAX, nIdleCount...
<span class="moz-txt-citetags">&gt; </span>
<span class="moz-txt-citetags">&gt; </span>I repeat, this patch is just a try. If I'm all wrong, sorry for the 
<span class="moz-txt-citetags">&gt; </span>noise and please, explain my mistakes.
  </pre>
  </blockquote>
  <pre wrap="">Well, I applaud your attempt to challenge this rather difficult task,
and sorry it took me so long to get back to you.

I took a closer look at this issue, and while I don't yet have a
complete picture of how this can be fixed, I can at least see that the
problem is not with the spell check timer, but the idle timer.  The
spell check timer itself actually turns itself off rather nicely after
it does what it needs.  The idle timer, OTOH, keeps on running pretty
much forever.  I guess my previous comment about the spell check timer
may have given you the wrong impression.  Sorry about that.

So, let's not change the spell check timer since it doesn't look broken,
and let's focus on fixing the idle timer itself.

  </pre>
</blockquote>
Hello,<br>
<br>
To know how to fix the idle timer I'd like first understand well how it
works since it seems to be simpler than idletimer. Could you tell me
when and how the spelltimer is stopped ? (I haven't seen where it had a
stop).<br>
<br>
Julien.<br>
<br>
</body>
</html>