Questions tagged [vala]

Questions related to the Vala programming language.

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
39 views

How to store data from a ListModel?

Is there some sort of standard or commonly-used way to store data in elementary apps? I currently have a bunch of GObjects contained in a ListModel and would like to persist that to the disk and ...
2
votes
1answer
240 views

Buttons' Look in a Gtk.MessageDialog

Elementary's human interface guidelines specify how dialogs should look: In Valadoc, there is a minimal example on how Gtk.MessageDialog is to be used: Gtk.MessageDialog msg = new Gtk.MessageDialog (...
2
votes
0answers
31 views

Can I use Pantheon-Files FileChooserDialog module from custom FileChooserDialog Object?

I want to use the new Pantheon-Files FileChooserDialog module, but it doesn't seem to work when creating my own widget based on Gtk.FileChooserDialog (like seen below). Is there anyway for me to be ...
1
vote
0answers
63 views

Can't run the gtk-hello app from the elementary OS developer tutorial

After successfully compiling the gtk-hello.vala file from the official elementary OS tutorial, I tried to run the gtk-hello file from terminal with the command ./gtk-hello However it never runs ...
0
votes
0answers
22 views

Error while building gala window switcher after upgrading to elementary os odin

I've upgraded to elementary os 6 yesterday , and when tried to compile a [gala window switcher][1] i was prompted with this error . >> cmake -DCMAKE_INSTALL_PREFIX=/usr .. -- The C compiler ...
0
votes
1answer
28 views

How to gain access to the serialized contents of a Gtk.TextBuffer including all Gtk.TextTags?

If this isn't the appropriate forum for this question, I apologize. Please remove it if that's the case. I know that Elementary OS developers use Vala for their development and I'm unaware of a more ...
0
votes
0answers
22 views

Unable to move Hdy.ApplicationWindow by dragging Hdy.HeaderBar in Vala

Trying to use libhandy and Hdy.ApplicationWindow instead of Gtk.ApplicationWindow in my vala based application made for elementary OS. My Problem While using Hdy.ApplicationWindow and Hdy.HeaderBar ...
0
votes
1answer
25 views

error: The type name `var' could not be found

I'm trying to build a fresh clone of Granite's master branch, on elementary OS 5.1.7 Hera, but I'm getting these errors: ../lib/Widgets/SwitchModelButton.vala:65.9-65.19: error: The type name `var' ...
0
votes
0answers
6 views

Change widget size individually

Can anyone tell me how to make the size of the color selector circle not be affected by the use of the Granite.ModeSwitch?
0
votes
0answers
4 views

Error while trying to access city name using GWeather and gtk

I want to access the city name and add it to a Gtk.Label. This is how I try to do it. Can anyone tell me what is wrong with my code? Or suggest some other way to get the city name? public class Epoch....
0
votes
0answers
10 views

Create list to be added in Gtk.ListBoxRow

I created a List using this code. Now when I try to access the elements of the list, the compiler displays this error: Can someone suggest how to solve this problem? This is how I try to access each ...
0
votes
0answers
14 views

Gtk grid inside another grid not visible on the main window

I made a separate file for all the labels to be used in the main window called Labels.vala This is the code inside that file: Now, when I try to add this class to a grid inside the main window, it ...
0
votes
0answers
46 views

build granite on windows 10 and msys2 (mingw64)

I'd like to start write a little tool with vala for elementaryOS but also to cross-compile it for windows so I tried to compile granite on windows 10 with mingw64 from msys2 and replacing gio-unix-2.0 ...
0
votes
0answers
59 views

write an IDE for vala

I wnated to know Why elementary os does not have a decent IDE for vala language? vala is their programming language but unfortunately there is not a good IDE for it I think they should have a IDE for ...
0
votes
0answers
10 views

GLib.Process is not a type error

I am trying to recreate the processes view in the Monitor App by Stanislaw Dac in my own app. I looked at the source files for monitor and used that code in my own app. When I compile the code, ...
0
votes
0answers
11 views

HashMap not removing keys

I'm developing a simple chess game in vala (source code here) and i'm have some issues with removing keys from an HashMap. For the checkboard i'm using an HashMap with pair of Coordinate Object and ...
0
votes
1answer
55 views

Can I upload an app which is not built using vala?

Is it necessary for a developer to upload an app written in vala only? Can't it be something c++ or python to be uploaded on Elementary's app store? I really want to contribute for them but don't want ...
0
votes
0answers
6 views

How to use Granite.SettingsSidebar?

I want to use the Granite.SettingsSidebar widget in my app. Can anyone teach me how to do it? I looked for tutorials and tips on the internet. I couldn't find any complete Vala tutorials so now I'm ...
0
votes
0answers
21 views

How can I make the HeaderBar invisible in an app?

I am learning to make apps for Elementary OS. I have a question, how do I make the HeaderBar invisible? I mean how I can I make an app like Planner by Alainm. As you can see in the picture, the ...
0
votes
0answers
126 views

Missing title in GTK+ 3 Dialog

I'm writing a vala GTK+ application and want to add a modal dialog like this: var dialog = new Gtk.Dialog.with_buttons (_("My title"), this, Gtk.DialogFlags.MODAL | Gtk.DialogFlags....
0
votes
2answers
193 views

How to get user home folder in Vala?

I am trying to make a Elementary OS app that I need to get user home folder. I tried GLib.Environment.get_home_dir () and Granite.Services.Paths.home_folder.get_path () but they both return null. What ...
0
votes
3answers
2k views

Gnome Boxes won't create a VM

Running from the GUI I get "Box setup failed" -pretty sparse there Gnome team!! (I know this is the elementary forum, but just saying...) Running from Terminal, I get: (gnome-boxes:31127): Boxes-...
0
votes
1answer
93 views

Selecting text on WebKit2

What method is available to select text on webkit2gtk. I could not find anything on the API for Vala webkit2: https://valadoc.org/webkit2gtk-4.0/WebKit.WebView.html The requirement is to get the ...