Re: [Vala] Question about the "Standard Enumerations" value
- From: "Marcelo Lira" <setanta gmail com>
- To: heimdall_spe <heimdall_spe yahoo fr>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Question about the "Standard Enumerations" value
- Date: Fri, 22 Feb 2008 11:06:51 -0300
So I guess, it would be something like that in vala :
button.set_relief(XXXXX);
But XXXX isn't "GTK_RELIEF_NONE"...
GTK_RELIEF_NONE turn into Gtk.ReliefStyle.NONE
But since you will be "using Gtk;" your line should be:
button.set_relief (ReliefStyle.NONE)
This information is on gtk vapi file, this is the style you will find
it, which will be easy to map to the GTK+ ones:
[CCode (cprefix = "GTK_RELIEF_", cheader_filename = "gtk/gtk.h")]
public enum ReliefStyle {
NORMAL,
HALF,
NONE,
}
Regards,
--
Marcelo Lira dos Santos
http://setanta.wordpress.com
INdT: http://www.indt.org.br
CInLUG: http://www.cin.ufpe.br/~cinlug
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]