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

From: Lucas Rocha lucas.rocha at nokia.com
Date: Thu Nov 22 15:44:00 EET 2007
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