[10523] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: Drawing in GtkDrawingArea

daemon@ATHENA.MIT.EDU (Federico Mena Quintero)
Sun Nov 29 21:48:04 1998

Date: Sun, 29 Nov 1998 21:46:58 -0500
From: Federico Mena Quintero <federico@nuclecu.unam.mx>
To: gtk-list@redhat.com
In-reply-to: <3661EA17.227BD69F@jps.net> (message from Marsel Osipov on Sun,
	29 Nov 1998 16:43:03 -0800)
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

>    color->pixel = (gulong)(pixel.red()*65536 + pixel.green()*256 + pixel.blue());

This is not useful at all, since gdk_color_alloc() will fill in the
pixel field for you.  Is this code taken from somewhere like the Gtk
tutorial?  People seem to be doing it a lot...

  Federico

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post