<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Em 13-07-2013 02:13, Mattias Gaertner
escreveu:<br>
</div>
<blockquote cite="mid:20130713071325.6c2d8069@limapholos"
type="cite">
<pre wrap="">On Fri, 12 Jul 2013 15:36:26 -0700 (PDT)
Éderson Cássio <a class="moz-txt-link-rfc2396E" href="mailto:ederson_cassio@yahoo.com.br"><ederson_cassio@yahoo.com.br></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">[...]
It was a problem for which I could produce a solution in the LCL code, but Mattias Gaertner said me the problem doesn't occur on all systems. Well, I found one situation when the problem occurs, on my system.
It's not only a "my system" problem, it's a problem in the way the GTK2 Lazarus widgetset interacts with some systems (including mine). I say that because other GTK2 applications have a normal behavior, even Lazarus applications when my system language is "English". Maybe an "if" would solve the problem; I just want to keep talking to someone who can guide me in the LCL changes without causing disasters. Mattias gave me an advice (thanks!), and I have found a new direction.
</pre>
</blockquote>
<pre wrap="">
It is possible to add the changes via an IFDEF. For example:
{$IfDef EnableGtk2AccentKeyMod2}
// new solution ...
{$Else}
// old solution ...
{$EndIf}
Then you can ask people to test this by adding a
-dEnableGtk2AccentKeyMod2 to their IDE options.
Can you create a patch for this?
Mattias
--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
Mattias, thanks for your help.<br>
I don't know how I can create a patch... everything I know is that I
must download the sources from SVN, but I'm raw about these kind of
task (ashamed...)<br>
If I give some simple instructions, can you or somebody create it?<br>
<br>
In <u><b>lcl/interfaces/gtk2/gtk2proc.inc</b></u>, line 2278, we
have:<br>
<br>
<pre wrap="">CheckDeadKey;</pre>
<br>
We just need to do the solution you gave (I created a new name for
the directive):<br>
<br>
<pre wrap="">{$IfDef GTK2LatinAccents}
gtk_im_context_filter_keypress(im_context, AEvent);
{$Else}
CheckDeadKey;
{$EndIf}</pre>
<br>
Thanks, I hope it will be useful for some people asking in the
forums!<br>
<br>
Éderson<br>
<br>
<br>
</body>
</html>