How to make GdkPixbuf round-cornered

2009-12-14 Thread Jianchun Zhou
Hi, all: I want to load an image as a GdkPixbuf from a image file, then make it's CORNERS totally transparency to create a round corner picture, and save it back into an image file. Now I just don't know how to make CORNERS transparency. Anybody can help me? Thank you in advance. -- Best Rega

TreeView column headers

2009-12-14 Thread Sebastian PajÄ…k
How can I make GtkTreeView column header clickable and non focusable at the same time? I want GtkTreeView not to pass focus to header area, but to keep it ALWAYS inside (for items it contains) whenever focus enters (e.g. from TAB key) or header is clicked. Is this possible? & How? Sebastian

Problems with print preview

2009-12-14 Thread Miroslav Rajcic
I knew that GTK toolkit on Windows has major problems with drawing print preview of a document, but it seems that the new GTK 2.18.x has the same problem on Linux too. Starting with Ubuntu 9.10 and Fedora 12, my print preview code just displays blank pages now :( Note that the same code is te