[Vala] Set C representation of namespace manually?

2014-02-23 Thread Matthias Klumpp
Hi! For a library project, I would like to have some control over the namespace-C-naming (especially the automatic camel-case-to-underscore conversion). For example if I have a namespace namespace MyProject { class Tree; } This translates to function names in form of MyProjectTree

Re: [Vala] Set C representation of namespace manually?

2014-02-23 Thread Matthias Klumpp
2014-02-24 0:05 GMT+01:00 Luca Bruno lethalma...@gmail.com: Yes you can, put some CCode on top of your namespace: https://wiki.gnome.org/Projects/Vala/Manual/Attributes#CCode_Attribute Make sure you put the same CCode on all the files for the same namespace. Ah, I didn't know that we have

Re: [Vala] Register object in SYSTEM bus

2012-11-07 Thread Matthias Klumpp
Hi! Have you created a DBus interface file? Are you running that stuff as root? Cheers, Matthias 2012/11/7 rastersoft ras...@rastersoft.com: Hi all: I'm trying to register an object in dbus'SYSTEM bus, but I'm unable to do so. I try with: [DBus (name = com.rastersoft.gamed)] public

Re: [Vala] Getting results from an async callback

2012-07-28 Thread Matthias Klumpp
with PackageKit, AppStream and the Ubuntu Software Center at time) - Are you doing that lib cross-distributional? (Very important for me ^^) @list: Sorry for the OT Cheers, Matthias 2012/7/27 tomw t...@ubilix.com: On Fr, 2012-07-27 at 17:34 +0200, Matthias Klumpp wrote: Hi! You recieve a AsyncResult

Re: [Vala] Getting results from an async callback

2012-07-27 Thread Matthias Klumpp
Hi! You recieve a AsyncResult in that callback. For examples how to use PackageKit in Vala, see my Listaller[1] project or - for a less-complex example (Listaller uses some internal PK APIs) - just checkout this snipped which addresses your question:

[Vala] Crazy Vala callback behavior

2011-12-17 Thread Matthias Klumpp
Hi! This is a bit difficult to reproduce, so I'm not sure if this really is a bug. I am mixing Vala and C code. I implement an internal class in Vala, which defines the following callback: public signal Results request_whatprovides (uint filters, uint provides, [CCode (array_length = false,

Re: [Vala] VAPI Generation Problems

2011-10-10 Thread Matthias Klumpp
I get exactly the same errors, but I get a working vapi file - although some symbols seem to be missing. 2011/10/10 Andrew Higginson at.higgin...@gmail.com: Hi, On 09/10/11 18:04, bsquared wrote: It looks like you need to add packages to the command line.  I found the wiki page

Re: [Vala] Binding issues

2011-07-04 Thread Matthias Klumpp
On Mon, 04 Jul 2011 22:45:59 +0200, Giulio Paci giuliop...@interfree.it wrote: Hi to all! Today I was experimenting with libarchive bindings and I found that archive_read_support_format_raw() was not available in the current binding. Adding the line public Result support_format_raw