On Thu, 2005-09-01 at 12:34 +1000, Neil Hodgson wrote:
> Iago Rubio:
>
> > I finally was able to track it down to ScintillaGTK.cxx
> > ScintillaGTK::CreateCallTipWindow(PRectangle rc):1350
> >
> > gdk_window_resize(PWidget(ct.wCallTip)->window, rc.Width(), rc.Height
> > ());
> >
> > At this point PWidget(ct.wCallTip)->window is allways NULL despite of
> > ct.wCallTip.Created() returning TRUE or FALSE, so despite of ct.wCallTip
> > being initallized at the start of this function or not.
>
> This code is there to reduce the size of the calltip window when
> starting a nested call. If we have an API
>
> a(Window w,ErrorDescription e)
> b(int x)
>
> and type "a(b(", then the long calltip window originally shown for
> "a" needs to be reduced. At this point PWidget(ct.wCallTip)->window is
> a valid window.
Ah ! Now I see. In my tests I've never used nested calltips. That's why
I allways got that error.
Thanks for the hint.
> It looks like it will all work with a simple guard condition:
>
> if (PWidget(ct.wCallTip)->window) {
> gdk_window_resize(...
Yes, I did it in my local copy but as I did not understand completely
how it worked, I didn't submit it as a patch.
> so this has been committed to CVS.
Great, thanks.
--
Iago Rubio
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest