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
0
votes
2 answers

how to use xpath in vala on a node object

How do I use XPath in Vala on a Xml.Node object? The only examples I can find is were a Context is created from a Doc object, but I don't have a Xml.Doc object to begin with. Is there a way I can convert Xml.Node into Xml.Doc? Or is there some other…
Wayne
  • 826
  • 2
  • 12
  • 24
0
votes
1 answer

Data corruption in Vala with ThreadPool

I'm currently working on a project that requires me to queue network packets to be processed. I have a ThreadPool with a maximum of 25 threads that processes these packets when they are available. However, when passing the packet data…
Michael K.
  • 74
  • 7
0
votes
2 answers

is possible to change the orientation of a box in gtk?

I did a class whoss parent class is gtk.box in vala. linking to box constructor is not supported, so, how can I set the Orientation of the box in the constructor??
angrymadcat
  • 504
  • 4
  • 11
0
votes
1 answer

Vala alternatives to Gnome Keyring OAuth access token storage?

are there good OAuth access token/secret storage alternatives to Gnome Keyring for Vala? The Gnome Keyring bindings solution is extremely buggy as it yields far too many C-errors to make debugging practical. Additionally, I know relatively little…
weberc2
  • 6,371
  • 3
  • 35
  • 50
0
votes
1 answer

How to load a widget as a different thread in gtk? (vala)

I created this class, And I want to load thumbnails into the iconview as a different thread for efficiency reasons, because the gui load very slow if I do it in the same thread. But when I create the thread, it doesn't works, it draw some thumbnails…
angrymadcat
  • 504
  • 4
  • 11
0
votes
1 answer

wake up gtk window from outside the application

I have a application running a gtk window. When the user exit the app I just want to hide the window but keep the process running. So when the app is started I want to check if app already running: show window, else create new window... Is there a…
breez
  • 75
  • 1
  • 8
-1
votes
1 answer

Vala uncompress gzip data

I try to inflate tgz file in vala. First, I make tgz file in following way. import gzip f_in = open('test.jpg', 'rb') f_out = gzip.open('test.gz', 'wb') f_out.writelines(f_in) f_out.close() f_in.close() Next,…
mymas
  • 24
  • 3
-1
votes
1 answer

vala Package 'xxxx' not found

system information. ⭕ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS" ⭕ valac --version Vala 0.48.6 compile error. ⭕ valac --pkg gtk+-3.0 --pkg posix…
eexpress
  • 137
  • 10
-1
votes
1 answer

Vala code with static struct dont works after update to 0.44

Just did a standard job interview is to calculate the volume of water in the histogram. On Monday this code worked, and still works on this site. After updating vala, an error is now displayed. UPD: more easy example > Algoritm.vala:2.5-2.16: error:…
gavr
  • 576
  • 3
  • 11
-1
votes
1 answer

Compile Vala from sources on Linux Mint 18.3

I've always been able to compile sources from git repository https://github.com/GNOME/vala.git on my PC running "Linux Mint 18.3 Cinnamon 64-bit". I have the latest valac (0.42.4-0ubuntu1~16.04~valateam0) installed. The last successful compile I…
George Aslanis
  • 479
  • 4
  • 11
-1
votes
1 answer

Get values of void pointer to an array

// C lang #include void func (void *ptr) { int *iptr = ptr; printf("{%d, %d, %d}\n", iptr[0], iptr[1], iptr[2]); } int main() { int ary[] = {111, 222, 333}; func(&ary); return 0; } => output: {111, 222, 333} //…
-1
votes
1 answer

How to declare fields?

I write a GUI program in Vala. When I compile it, compiler produces this error: The name e1 does not exist in the context of Subtract.minus The code is: using Gtk; class Subtract:Window{ public Subtract(){ this.title="Subtract…
rahi
  • 1
-1
votes
1 answer

How to fix two clicks in dialog

I've created a dialog to ask the user if he really want to proceed creating another file (text buffer). However, there is something with my approach that requires me to click twice at the button yes or at the button no. What am I doing wrong? The…
lf_araujo
  • 1,668
  • 1
  • 13
  • 31
-1
votes
1 answer

Read multiple files in Vala

I'm looking for a way to read multiple files in Vala. There's one example running throughout the internet about reading all files in a folder and sorting them by their type, but I couldn't make something out of that,still trying though. I'm talking…
John Smith
  • 53
  • 1
  • 8
-1
votes
1 answer

Dialogs tripping up in Vala

I've been experimenting with Vala programming recently. I've got pretty extensive experience programming in other languages, but in recent years have stuck mainly with scripting languages like Python, Tcl and Perl. I was impressed by the clean…
b j norse
  • 11
  • 3
1 2 3
61
62