From: Hongli L. <ho...@te...> - 2001-02-05 20:06:15
|
On Sun, 04 Feb 2001 17:38:16 Hongli Lai wrote: > I've added a new feature to GnomeZip: icons in the entry list. > Images are loaded and scaled using Gdk-Pixbuf. > But there's a problem: the edges doesn't look good. > I want to solve it this way: > Draw a white (or a color that matches a GtkCList's background color) > rectangle (invisible), with a dimension as big as the original icon file. > Then load the icon using GdkPixbuf, draw it on that rectangle, > convert it to a GdkPixbuf, scale it down to 16x16, convert it to > a GdkPixmap, and add it to the GtkCList. > > But I don't know how to draw such an invisible rectangle. > Can anybody help me? Never mind. Already found a solution :-) |