vala

Vala (C#-like language) compiles to C?

I'm a C# developer who stumbled across a new programming language for linux called vala. It has almost exactly the same syntax as C#, which is awesome. I never really was a big fan of Mono. This allows programmers to write GTK+ apps in a C# style language. My question is: Does vala get compiled into C? ...

Will Vala survive?

I'm just wondering how the Vala project is coming along. I'm not sure if this will be a great new technology or just one that will fall by the wayside. Does anyone know how many people are working on this project and if I can contribute (writing tutorials, reporting/fixing bugs, etc...)? ...

Is there a terminal tool to automatically generate autoconf/automake makefiles for a Vala project?

I am trying to create a Vala project to see how i like developing with the language as a possible replacement for Mono. I think that the automake stuff can be used to generate a project template with all the necessary files (sans my .vala code). Any help would be appreciated. ...

Vala for pidgin plugins

Has anyone tried writing a pidgin or libpurple plugin in Vala? From a quick look at the Vala homepage it seems like it would be a great language for it, and make a good opportunity to learn Vala, but learning both Vala and the fine art of pidgin plugins at the same time is a little overwhelming. Anyone have any pointers? ...

Creating an "overlay" onto a window

Is it possible to create a window that acts as an overlay on top of another window, say, an icon that you can display in the window's title bar or status bar? Assume for the purposes of this question that: The window is a foreign window (not owned by my application) The overlay is 16x16 pixels and has a transparent background The over...

gtk: how to hide a window when the application loses focus

Hi, I want to duplicate the behaviour of tool windows in OpenOfice. When the application loses focus, the tool windows (if they are not docked) are hidden. So, I have a main window, and another utility window (win_dock). I want to hide win_dock when all the windows of the application loses focus and show it again if a window gain focus...

Vala: Gotchas, Tips and Tricks.

As a programmer who is new to Vala, what is your number one piece of advice to someone who is new to the language? ...

How do I distribute a (open-source) Vala project?

One of the only languages that compiles to a high level language such as C, Vala has interested me for quite a bit. I've been wanting to start a small project with it, but I've been wondering how I would distribute it. The fact is, that it compiles to C code (C99 I suppose). Can I distribute the C code instead of the Vala code? If I ...

Vala vapi files documentation

Hi there, I'd like to hack on an existing GLib based C project using vala. Basically what I'm doing is, at the beginning of my build process, using valac to generate .c and .h files from my .vala files and then just compiling the generated files the way I would any .c or .h file. This is probably not the best way, but seems to be workin...

How Do I Make a PHP Module with the Vala Programming Language?

This new language called Vala, which is said to be C#-like and supposedly easier than C++ or C, compiles down into C on Linux with the GCC compiler. Sounds great. Now I want to use it to make a PHP extension module so that slow PHP code can be made in Vala and imported into PHP as a function. How do I accomplish this in Vala? Is it eve...

Python bindings for a vala library

I am trying to create python bindings to a vala library using the following IBM tutorial as a reference. My initial directory has the following two files: test.vala using GLib; namespace Test { public class Test : Object { public int sum(int x, int y) { return x + y; } } } test.override %% header...

Vala memory management

I am going to call a Vala function from C, and I have a question about memory management. The function looks like this in Vala: int[] GetNumbers(); and is translated by valac to C like this gint* GetNumbers(int* result_length1); When the above function gets called from C, is the caller responsible for freeing the gint* array? ...

How to generate GIR files from the Vala compiler?

I am trying to create python bindings to a vala library using pygi with gobject introspection. However, I am having trouble generating the GIR files (that I am planning to compile to typelib files subsequently). According to the documentation valac should support generating GIR files. Compiling the following helloworld.vala public s...

Using sqlite from vala without dependence on glib

I need to use the Sqlite vapi without any depedence on GLib. SQlite is non-gobject library, so it should be possible to do that. However, when I try to compile the following file with the --profile posix option, using Sqlite; void main() { stdout.printf("Hello, World!"); } I get am error messages: sqlite3.vapi:357.56-357.59: e...

Vala for Android?

Is it possible to write a Vala application and get it to run on an Android device? ...

Comparing arrays in vala.

I just tried the following in vala, and the assertion fails. int[] x = {1,2}; int[] y = {1,2}; assert( x == y ); I suppose Vala compares the memory locations of x and y instead of the content of the arrays. Is there an easy way to compare two arrays without having to loop though them in vala? ...

Controlling Linux Compiz Brightness Programmatically with Python or Vala

Several laptops on the market have problems with Linux for brightness controls. However, recently I found out that you can use CompizConfig settings to dim at least a particular window. Many people, however, want to dim all windows. I know Compiz can do this in the API somewhere because look what happens when you do Super + Tab in Compiz...

Executing system command in Vala

Hi. I would like to execute a command (like ls) in Vala, like the Python os.system function, or, better, the popen function. Any idea ? ...

How to create a multi-process webkitgtk application (Vala) ?

Hello, I want to make a web browser in Vala using webkit. But, I don't know how to make it multi-process. I want each tab to have its own process. How can I do that using Vala and Gtk+. Thanks for your answer. ...

Large integer and arbitrary/multi precision floats for Vala

Is there a way to use big integers or arbitrary precision types in vala? ...