[maemo-developers] How to add a rounded border or even framework around itemsoficonview

From: Zhu, Peter J peter.j.zhu at intel.com
Date: Thu Nov 22 17:38:23 EET 2007
Hi Lucas,

Thanks for pointing this. After a brief look at code, it seems that eog uses cell-renderer to deal with state of PRELIGHT/SELECT/ACTIVE of items while uses eog_thumbnail_add_frame to draw a thin frame around each item in its NORMAL state. I'm curious why not just use cell-renderer to draw a thin frame around item? Is it possible?

Peter

Lucas Rocha wrote:
> Hi,
> 
>> Thanks for replying. It's nice.
>> 
>> My question of "rounded border" means a frame around the item during
>> NORMAL state rather than selection. Any suggestions on this? 
> 
> Another alternative is to write your own pixbuf cell renderer and
> paint it however you want. Have a look at EOG's source code (based on
> GNOME Control Center code):
> 
> http://svn.gnome.org/svn/eog/trunk/src/eog-pixbuf-cell-renderer.c
> http://svn.gnome.org/svn/eog/trunk/src/eog-pixbuf-cell-renderer.h
> 
> It's quite simple stuff.
> 
> --lucasr
> 
>> Lucas Rocha wrote:
>>> Hi Peter,
>>> 
>>> I guess by "rounded border" you mean the selection border, right?
>>> 
>>> In Maemo GTK+, we applied a patch to make the selection to be drawn
>>> around the whole item (image and text) instead of just the text. The
>>> respective upstream bug report (with the patch) is here:
>>> 
>>>   http://bugzilla.gnome.org/show_bug.cgi?id=382544
>>> 
>>> One of the patches theme makes it possible to properly theme the
>>> selection drawing what would allow you to even use an picture.
>>> 
>>> --lucasr
>>> 
>>> Em Qui, 2007-11-22 às 15:17 +0800, ext Zhu, Peter J escreveu:
>>>> Hi,
>>>> 
>>>> How to add a rounded border or even a nice picture around items of
>>>> iconview? I guess it might a bit of mystery of applying style to
>>>> widget of iconview. Any one can give an example here?  Thank you
>>>> very much. 
>>>> 
>>>> Best Regards
>>>> Peter

More information about the maemo-developers mailing list