<div>self.get_property('window').invalidate_rect(self.get_allocation(), True)</div><div>self.get_property('window').process_updates(True)</div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">
2012/7/30 Sascha Silbe <span dir="ltr"><<a href="mailto:silbe@activitycentral.com" target="_blank">silbe@activitycentral.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Ajay Garg <<a href="mailto:ajay@activitycentral.com">ajay@activitycentral.com</a>> writes:<br>
<br>
>> [adding short-circuit logic to<br>
>> jarabe.journal.listview.BaseListView.refresh()]<br>
</div>[...]<br>
<div class="im">>> What we should do is enhancing the logic to<br>
>><br>
>> a) just redraw instead of querying the back-end again for changes we<br>
>> triggered ourselves and / or<br>
>> b) update our model based on the change notifications rather than<br>
>> throwing away our state.<br>
>><br>
><br>
> Well, that's exactly what I did, via the patch<br>
> <a href="http://git.sugarlabs.org/dextrose/mainline/commit/ad3897946e013f1ff4020aeab35375ccb122758b" target="_blank">http://git.sugarlabs.org/dextrose/mainline/commit/ad3897946e013f1ff4020aeab35375ccb122758b</a><br>
<br>
</div>Not really AFAICT. You're still inhibiting the refresh completely,<br>
without doing a redraw. You're also doing a gratuitous data store query<br>
for each favourite star. I'm expecting that to have considerable impact<br>
on performance.<br>
<div class="im"><br>
<br>
> I guess, if we could somehow cause the mouse to PROGRAMMATICALLY<br>
> hover-away/disappear-momentarily when the star/favorite-icon is clicked, we<br>
> could be done.<br>
> However, I am not able to find a way to do this via pygtk.<br>
<br>
</div>Fortunately. :-P<br>
<br>
As discussed on IRC, the way to _trigger_ _a_ _redraw_ (not: move the<br>
pointer) is something like this:<br>
<br>
x_, y_, width, height = self.allocation<br>
area = (0, 0, width, height)<br>
self.window.invalidate_rect(area, False)<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Sascha<br>
--<br>
<a href="http://sascha.silbe.org/" target="_blank">http://sascha.silbe.org/</a><br>
<a href="http://www.infra-silbe.de/" target="_blank">http://www.infra-silbe.de/</a><br>
</div></div><br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br>