Re: [Vala] Creating bindings for Oracle OCI

2009-06-15 Thread Jiří Zárevúcky
Hello. Delegates in VAPI are, in fact, bindings to function pointer (which delegates translate to). So in order to be able to do that, there have to be those pointers defined in the C header (otherwise it won't compile with GCC). If they aren't, you can still define them, but have to use a

Re: [Vala] [Genie] Help me please !

2009-06-15 Thread Frederik
Nicolas wrote: Hi, I'm using this function: newfont = new FontSelectionDialog(Select font:) var response = newfont.run() if response is ResponseType.OK font_desc = new FontDescription() font_desc.from_string(newfont.get_font_name())

Re: [Vala] byte array - string

2009-06-15 Thread Jiří Zárevúcky
Actually, now that I think of it, there is one more problem. There is a convert () method, that converts from one charset to another. The problem is that its input and output are both of string type, which should always be UTF-8 in Vala. So I think it would be better to have something like:

[Vala] [Genie] Help me please !

2009-06-15 Thread Nicolas
Hi Frederik, Thank you it work ! Can you help one more time please, i have this problem: newcolor = new ColorSelectionDialog (Choose your prefered background color:) var response = newcolor.run() if response is ResponseType.OK color : Color var

Re: [Vala] [Genie] Help me please !

2009-06-15 Thread Jiří Zárevúcky
Your problem is that colorsel property has type Widget. You have to cast it to ColorSelection. Just two general notes about your question: - keep your questions in one thread - don't name the thread help me please. use something informative, for god's sake... 2009/6/15 Nicolas

[Vala] Command-line options, input files, and header generation

2009-06-15 Thread William Swanson
Hello, I couldn't find any good documentation on how Vala generates code in response to the different input files and command-line options, so I did some experiments and came up with the following results. This information might be useful for others, so I though I'd share it. Please correct me if

[Vala] Simple help needed with setting Pango Attributes...

2009-06-15 Thread Fredderic
Okay... This should be easy, but I can't figure it. How do I create a GtkLabel with bold text, without using markup? I presently use: new Gtk.Label(b+text+/b) but I need it to display a string that contains markup-like text, and I'd rather not have to escape the text, just so I can add

Re: [Vala] Simple help needed with setting Pango Attributes...

2009-06-15 Thread Dov Grobgeld
There are two ways you can do it. One by using styles, and the second by using markup. They are both as easy. To use the style approach you set a name for your widget and then associate that name with a given style. I described this in my Gtk perl tutorial a few years back: