Re: gnome-panel rounded corners



A Sex, 2003-11-14 às 14:27, Mark McLoughlin escreveu:
> Hey,
> 
> On Fri, 2003-11-14 at 14:28, iain wrote:
> > On Fri, 2003-11-14 at 14:09, Mark McLoughlin wrote:
> > 
> > > 	The way I'm weighing this up, it just isn't worth it unless we can
> > > think of a better way to do it.
> > 
> > Just off the top of my head, why don't we overlay it onto the background
> > of the panel? Put the users choosen background down first then
> > alphablend the curved corners on top? If there is no user background
> > then just put the curves.
> 
> 	That could work. The downside is that you always have the inefficiency
> of a pixmap background for every panel ...

   Indeed, this is the wrong approach.  IMHO, a better approach would be
to create a new Gtk+ container (probably derived from GtkHBox) for the
panel, one which would take care of drawing the rounded corners in the
usual expose event handler.  And the drawing would be simply blitting
one GdkPixbuf for each rounded corner.

  Regards.

> 
> Cheers,
> Mark.
> 
> _______________________________________________
> desktop-devel-list mailing list
> desktop-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/desktop-devel-list
-- 
Gustavo J. A. M. Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]