Hover decorations in GtkIconView

2010-03-26 Thread Debarshi Ray
I have a custom GtkCellRendererPixbuf which I am using to render some thumbnails in a GtkIconView. Now when the mouse passes over a rendered thumbnail I want to slightly highlight/decorate it. As far as I can understand from the documentation my render_vfunc should get GTK_CELL_RENDERER_PRELIT in

Re: Hover decorations in GtkIconView

2010-03-26 Thread Tadej Borovšak
Hi. I don't think items in icon view can be in prelit state. They are either selected or not. You'll probably need to create custom icon view widget to get on-hover effect. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com

Re: Hover decorations in GtkIconView

2010-03-26 Thread Debarshi Ray
I don't think items in icon view can be in prelit state. They are either selected or not. You'll probably need to create custom icon view widget to get on-hover effect. Can this be accomplished with a custom GtkIconView or do I need to write it from scratch? Thanks, Debarshi -- One reason

Re: Faster UTF-8 decoding in GLib

2010-03-26 Thread Behdad Esfahbod
Sorry for replying so late. I saw a few replies implying that the developer time to implement a (to me, unmeasurably) useful feature has been spent already so I should go ahead and commit it. There are various flaws with that argument: - It ignores the fact that writing a patch is a small

Re: Faster UTF-8 decoding in GLib

2010-03-26 Thread Behdad Esfahbod
Final note: Please file separate bugs for any individual optimization you think is worth performing (or is an obvious improvement). Thanks, behdad On 03/26/2010 01:25 PM, Behdad Esfahbod wrote: Sorry for replying so late. I saw a few replies implying that the developer time to implement a (to

Re: Faster UTF-8 decoding in GLib

2010-03-26 Thread Daniel Elstner
Hi Behdad, Am Freitag, den 26.03.2010, 13:25 -0400 schrieb Behdad Esfahbod: * The construct borrowed from glibmm, as beautiful as it is, is WRONG for 6-byte-long UTF-8. It just doesn't work. We historically support those sequences. What? In what way exactly is it wrong? --Daniel