Am Thu, 23 Sep 2010 21:11:57 +0200
schrieb Tadej Borovšak <tadeb...@gmail.com>:

> 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

Well it's an pretty old app. From devhelp I saw that PNGs should be easier.

Thanks for your help.

> Tadej

_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to