wxGTK1
Milan Babuskov
milanb at panonnet.net
Wed Dec 26 01:59:12 PST 2007
Vadim Zeitlin wrote:
> MB> There is a code in wxGenericTreeCtrl::Refresh that calls the control to
> MB> update.
> MB> I checked and the rect is the correct one.
> MB>
> MB> As the comments in code say, this should "schedule the area for later
> MB> updating in GtkUpdate()", but I don't see any code that would actually
> MB> call GtkUpdate() to do the job? My guess is that idle event handler
> MB> should do that, but g_isIdle is never true, so it never happens.
>
> It does happen to me, i.e. I see (under gdb) that it is called. But the
> rectangle is still not redrawn correctly for some reason.
I was thinking about this. Are you sure it gets called at the right
time? There are two Refresh calls. First one clears the selection on the
root node, and that one works properly, i.e. GtkUpdate does the job. But
then there's the second one that should draw selection on the newly
selected node, and I don't get GtkUpdate for that one. I assume it
should all be done in single GtkUpdate?
Thanks,
--
Milan Babuskov
http://www.flamerobin.org
More information about the wx-users
mailing list