[Vala] xpm file in vala
- From: "Matías De la Puente" <mfpuente ar gmail com>
- To: vala-list gnome org
- Subject: [Vala] xpm file in vala
- Date: Sat, 13 Dec 2008 16:49:57 -0200
Hello all!!
I want to access a xpm file from vala, i created this vapi file:
namespace MyXpms
{
[CCode (cname="my_xpm", cheader_filename="my.xpm")]
public string[] my_xpm;
}
vala generates this
#include <my.xpm>
but i want this
#include "my.xpm"
Is there a way to specify a local header file?
My objective is to create a Gdk.Pixbuf from a xpm data (without adding the string to the vala file)
var pixbuf = new Gdk.Pixbuf.from_xpm_data (MyXpms.my_xpm);
Any other suggestion is welcome.
Thanks!!
Matias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]