Re: [PATCH] example for gtk-demo demonstrating offscreen-rendered widgets with reflection-effect



A really useful addition for gtk-demo, demonstrating that GTK+ is ready
for The Bling. Matthias (Clasen), permission: Permission to commit?


Am Montag, den 24.12.2007, 01:05 +0100 schrieb Mirco Müller:
> Am Sonntag, den 23.12.2007, 14:56 +0100 schrieb Sven Neumann:
> 
> > > +  color[0] = (gdouble) style->bg[GTK_STATE_NORMAL].red;
> > > +  color[1] = (gdouble) style->bg[GTK_STATE_NORMAL].green;
> > > +  color[2] = (gdouble) style->bg[GTK_STATE_NORMAL].blue;
> > > +  color[0] /= (gdouble) 0xFFFF;
> > > +  color[1] /= (gdouble) 0xFFFF;
> > > +  color[2] /= (gdouble) 0xFFFF;
> > > +  cairo_set_source_rgb (cr, color[0], color[1], color[2]);
> > 
> > You probably want to use gdk_cairo_set_source_color() instead.
> 
> Agreed. Here's the updated patch.
> 
> Best regards...
> 
> Mirco
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
-- 
Mathias Hasselmann <mathias hasselmann gmx de>
Openismus GmbH: http://www.openismus.com/
Personal Site: http://taschenorakel.de/

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



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