vala Questions

4

Solved

We are trialing Gtk3/Vala/Genie for the development of application user interfaces using Gnome-Builder/Meson/Glade/Flatpak. While there are many examples of Gtk.HeaderBar.pack_start( ... ) and Gtk....
Bumble asked 2/2, 2018 at 10:51

2

Solved

What is the best way to bind multiple keyboard shortcuts to one action in GTK+ 3? I have been searching for an answer to this for a few days and have come up with naught. The function gtk_accelera...
Granicus asked 16/4, 2012 at 22:32

2

Solved

I have a window in a Vala application and an image inside it. This image is changed sometimes by img.set_from_pixbuf(imgdata); and so it's size changes as well. It's embedded in a Gtk.Box. box = n...
Arsonist asked 17/1, 2012 at 23:27

3

I just tried to run a vala bluez example (found in the DbusClientSamples page) and I got this error: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Method "DiscoverDevices" with signature "...
Symptomatology asked 15/1, 2014 at 13:33

3

Solved

I would like to execute a command (like ls) in Vala, like the Python os.system function, or, better, the popen function. Any idea ?
Hendry asked 6/7, 2010 at 15:7

3

What's the best way to open a file in the default application from Vala? A bit like how xdg-open works.
Curst asked 26/2, 2019 at 13:16

2

Solved

Is it save to use cast to int instead of Math.floor to convert float / double values to integers? var scale = 1.5; int foo1 = (int)scale; int foo2 = Math.floor(scale);
Cory asked 11/2, 2019 at 10:58

2

Solved

I am using Glib.Settings in my Vala application. And I want to make sure that my program will work okay even when the schema or key is not available. So I've added a try/catch block, but if I'm usi...
China asked 4/11, 2014 at 18:39

1

Solved

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 Gen...
Proven asked 4/3, 2018 at 11:10

2

Solved

From Linux, I'm using Meson (0.44.0) within Gnome Builder (3.26.4) for a console program that will use Gee and GXml. My intent is to write this in Genie. When I use Meson within Gnome Builder it f...
Dandify asked 20/2, 2018 at 8:38

3

Solved

I am new to Vala programming and have experiences with Java and .NET yet I haven't been able to find anything useful on how to log with Vala. Is there any useful logging facility like log4j or log4...
Scuppernong asked 1/5, 2012 at 16:28

3

Solved

Double question here. So I built a simple GUI app with Clojure (using seesaw) in just a few minutes and that was really fun! But now I don't know how to actually release it. I would like it to run...
Ca asked 10/8, 2014 at 2:44

3

Solved

I'm new to Vala. I'm not familiar with GObject. As I understand it, GObject was spun off from the GLib project from GNOME. Correct me if I'm wrong. I do like the syntax and implementation of Vala ...
Quinsy asked 3/3, 2012 at 21:26

1

Solved

I've been learning to develop to Gtk and most of the examples online suggests the use of Gtk.stock icons. However, its use produces warnings that it has been deprecated and I can't find the alterna...
Minhminho asked 23/4, 2016 at 1:15

1

Solved

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 a...
Christychristye asked 25/3, 2016 at 6:56

1

Solved

I need add some log informations with souce file name, function name, line number etc... I have check the official docs, but not found... so, how to do for it ?
Linkoski asked 17/3, 2016 at 9:6

2

I'm coding a game for iphone in ooc language (a new language that compiles to c) using OpenGL. It's really going well, and ooc is a language I really like. Now I've just found out about Vala and I ...
Selfinductance asked 1/2, 2011 at 0:29

2

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 win...
Westnorthwest asked 13/12, 2014 at 19:46

1

Solved

Why, and what does the three vala constructors ? class construct construct method with class name and more specific, why the 3rd construct is never called when using it from a Gtk.Builder file?...
Pulliam asked 7/10, 2015 at 23:9

2

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_a...
Slant asked 22/6, 2014 at 14:26

1

Solved

I'm new to Vala and so far I think it's pretty cool but I'm having trouble understanding inheritance. I read here that I should use base() to call the parents constructor. Alright, cool, seems unde...
Cheryle asked 26/4, 2015 at 2:15

4

Solved

Is Vala generated code are optimized like normal hand-written C code? Is there any performance overhead in using GObject system over not using it? NOTE: In my next C project I am researching over ...
Hairspring asked 12/6, 2013 at 5:37

1

Solved

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?
Stasny asked 13/11, 2014 at 15:42

9

Solved

As a programmer who is new to Vala, what is your number one piece of advice to someone who is new to the language?
Grow asked 30/1, 2010 at 9:22

4

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...
Gerkman asked 23/3, 2010 at 0:10

© 2022 - 2024 — McMap. All rights reserved.