[Sugar-devel] How to have "CellRenderer.props" take effect, without a UI refresh?
silbe at activitycentral.com
Mon Jul 30 14:32:58 EDT 2012
Ajay Garg <ajay at activitycentral.com> writes:
>> [adding short-circuit logic to
>> What we should do is enhancing the logic to
>> a) just redraw instead of querying the back-end again for changes we
>> triggered ourselves and / or
>> b) update our model based on the change notifications rather than
>> throwing away our state.
> Well, that's exactly what I did, via the patch
Not really AFAICT. You're still inhibiting the refresh completely,
without doing a redraw. You're also doing a gratuitous data store query
for each favourite star. I'm expecting that to have considerable impact
> I guess, if we could somehow cause the mouse to PROGRAMMATICALLY
> hover-away/disappear-momentarily when the star/favorite-icon is clicked, we
> could be done.
> However, I am not able to find a way to do this via pygtk.
As discussed on IRC, the way to _trigger_ _a_ _redraw_ (not: move the
pointer) is something like this:
x_, y_, width, height = self.allocation
area = (0, 0, width, height)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 489 bytes
Desc: not available
More information about the Sugar-devel