Does the .gif file have transparency? If not, try making the "background" areas of the image transparent, and see what happens.
Chris On 6/22/05, Lola Smith <[EMAIL PROTECTED]> wrote: > Hello, > > I have a pixbuf in a file which I have to change the > color of everytime I use it. Is it even possible to > change the background color of an image? I tried this: > > image = gdk_pixbuf_new_from_file("picture.gif", > &error); > // convert GdkPixbuf to GtkWidget > widget = gtk_image_new_from_pixbuf (image); > gtk_widget_modify_bg (widget, GTK_STATE_NORMAL, > &my_color); > > But this doesn't work :-(( > > Can someone help? > Thanks a lot !! > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list