Re: cairo functions too use instead of gdk ones



Hi.

Replacements would probably look like this:

> gdk_gc_new

cairo_create() or gdk_cairo_create() if you're using GTK+

> gdk_gc_set_foreground

cairo_set_source_rgb() or gdk_cairo_set_source_color()

> gdk_pixmap_create_from_xpm

This last one is a bit tricky, since you should not use GdkPixmaps
anymore. For equivalent result, you'll need to
 - create new cairo surface that will serve as a replacement for GdkPixmap
 - load XPM into GdkPixbuf
 - paint that pixbuf onto your new surface

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com


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