Questions tagged [vala]

Vala is an object-oriented programming language that allows modern programming techniques to be used to write applications that run on the GNOME runtime libraries, particularly GLib and GObject. Vala is syntactically similar to C#, and is compiled to C which is then compiled to a native binary using the C compiler of the platform.

Vala is an object-oriented programming language that allows modern programming techniques to be used to write applications that run on the runtime libraries, particularly and . Vala is syntactically similar to , and is compiled to which is then compiled to a native binary using the C compiler of the platform.

Some Linux distributions adopt, officially, Vala as the main development applications' language such as OS like regarded in the get started guide for developers.

Useful links

922 questions
7
votes
3 answers

Executing system command in Vala

I would like to execute a command (like ls) in Vala, like the Python os.system function, or, better, the popen function. Any idea ?
NowhereToHide
  • 353
  • 2
  • 7
7
votes
1 answer

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…
D R
  • 19,435
  • 28
  • 102
  • 146
7
votes
2 answers

How to set max width of GtkLabel properly?

I am writing a Vala application and using GtkLabels' in it. Problem is, I made my main window not resizable and when I'm adding labels with a long text to it, the window gets very big (when the window was resizable, all labels were fitting…
serge1peshcoff
  • 3,242
  • 8
  • 36
  • 63
7
votes
2 answers

How can I import other files in Vala?

The question pretty much says it all- how could I import file2.vala to file1.vala?
hkk
  • 1,929
  • 1
  • 19
  • 47
7
votes
1 answer

Compiling a Vala source On Windows

I compiled a vala program by using following command: valac test.vala Of course am I able to run the program on my computer, but when I am trying to run the .exe file on a different one I get following error: libglib-***.dll is missing on this…
kaiser
  • 249
  • 1
  • 2
  • 6
7
votes
1 answer

Unit test framework for Vala

I am thinking of developing an application using Vala. I would like to write unit tests for my code - but I have not (as yet) found any actively maintained unit test frameworks for Vala (e.g. Valadate). Could anyone recommend a unit testing…
Homunculus Reticulli
  • 54,445
  • 72
  • 197
  • 297
7
votes
2 answers

How to use a Qt GUI with Vala?

I have found zero documentation on this subject (Have I been searching in the wrong places? It seems strange to me). I simply need to be able to use a Qt GUI for my Vala application. An example would be appreciated.
RobinJ
  • 4,186
  • 7
  • 30
  • 56
6
votes
2 answers

Gee HashMap containing methods as values

I'm trying to fill a Libgee HashMap where each entry has a string as key, and a function as value. Is this possible? I want this sort of thing: var keybindings = new Gee.HashMap (); keybindings.set ("h", this.show_help…
Riazm
  • 263
  • 4
  • 10
6
votes
1 answer

Relationship Between Vala and Genie

From what I have read, core Gnome development began with C and this was extended by Vala (2006) and Genie (2008). Vala syntax appears to have been aimed at the Java/C# syntax/developer, whereas Genie appears to be aimed at Python (and a handful of…
AsymLabs
  • 763
  • 7
  • 13
6
votes
1 answer

Vala. How do you delete all the children of a GTK container?

Solved. See the reply for examples. I have a container with children. I need to delete all the children. This is easy in C. Vala does not work. The following code produces an error missing type argument for collection. var a_box = new Box…
user4845927
6
votes
1 answer

What's the difference between async methods and threads?

Can someone explain what's the difference between async methods and creating a thread in Vala? And where I should use one or another in my code?
serge1peshcoff
  • 3,242
  • 8
  • 36
  • 63
6
votes
2 answers

How do Valas closures map to Genie?

The Vala Tutorial has an example about DBus using anonymous methods. Bus.own_name (BusType.SESSION, "org.example.DemoService", /* name to register */ BusNameOwnerFlags.NONE, /* flags */ on_bus_aquired, /* callback…
XZS
  • 2,124
  • 2
  • 16
  • 35
6
votes
3 answers

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…
Luca Matteis
  • 28,287
  • 19
  • 109
  • 164
6
votes
1 answer

understanding vala compilation warnings

The compilation warnings below are not so clear to me, appart from the deprecation warhing, but the signature of the method in the valadoc : http://valadoc.org/#!api=gstreamer-1.0/Gst shows no other method signature. the other warning are more…
Max L.
  • 8,994
  • 12
  • 49
  • 80
6
votes
1 answer

how to use the set_cell_data_func function in vala to change the layout of my cell depending on its content?

I'm trying to use the set_cell_data_func on a Gtk.TreeViewColumn. My code compiles but gives a segmentation error when running. I have also tried the insert_column_with_data_func instead but the result is the same. Here is my code, i hope you'll be…
jkd
  • 1,154
  • 10
  • 24
1 2
3
61 62