Skip to main content
Share Your Experience: Take the 2024 Developer Survey
7 votes
Accepted

Concern about the future of vala

Emmanuele's position seems to be that there are better alternatives to Vala, so you should use them instead; based on his tweet about LLVM-based languages, I'm guessing he is a fan of Rust. I've ...
nemequ's user avatar
  • 430
4 votes

Concern about the future of vala

More update: I came from the future. Vala is still alive and kicking! Update: They would and pretty much they are the upstream considering the commits come from them. People keep pushing code ...
Axel Advento's user avatar
3 votes
Accepted

Proper way to include assets when compiling a Vala GUI program

This is one of those things where you probably want to use a build system to handle everything for you. First you need an XML file to describe your resources. Something like <?xml version="1.0" ...
nemequ's user avatar
  • 430
3 votes
Accepted

Customizing existing Vala app

After change, how can I see the output of changed code? Do I have to build each time? Yes, that's how compiled languages work. Note, however, that the build system will skip a lot of work it doesn't ...
nemequ's user avatar
  • 430
3 votes
Accepted

Using Granite with a different language besides Vala

Granite is written in Vala, so it provides a C API which you can use from C++. Using it should be fairly straightforward; just #include <granite.h> in your code, and build with something like ...
nemequ's user avatar
  • 430
3 votes
Accepted

I want to add the listbox scroll fade effect in my app - how?

The most common way a designer can do this is by applying on an upper layer a semitransparent png image or gradient with fading transparency from 1 to 0 and white color. Another option is a gtk box ...
Bo rislav's user avatar
  • 1,304
2 votes
Accepted

GLib.OptionEntry vs. Granite.Application.options

take a look at this commit for a possible solution. http://bazaar.launchpad.net/~elementary-apps/screenshot-tool/trunk/revision/147
Djax's user avatar
  • 2,879
2 votes
Accepted

Language Translations not working in Bookworm

This issue was due to a line in the code pointing at a wrong place for the translations: Intl.bindtextdomain(GETTEXT_PACKAGE, "./locale"); Many thanks to Corentin Noel for spotting the issue.
Siddhartha Das's user avatar
2 votes

Concern about the future of vala

It's important to understand how GNOME works: individual contributors can say whatever they want as “PSAs” on social media, but the GNOME Foundation does not have an official stance on Vala. In fact, ...
Cassidy James Blaede's user avatar
2 votes

How does using extern functions work?

What you're looking at here is an interface with an abstract method. Virtually all OOP languages have a similar concept to interfaces, but since you didn't specify which language(s) you do know I can'...
nemequ's user avatar
  • 430
2 votes

Elementary app feasibility: modify any current text input

All feature requests must be written to the proper GitHub page, they do not belong here. I believe that in your case gala is a good starting point. https://github.com/elementary/gala Good luck
Sebastian's user avatar
  • 1,962
2 votes
Accepted

Using cmake on Juno

I'm still on Loki, but it seems like the required FindVala.cmake file would come from cmake-elementary: $ dpkg-query -L cmake-elementary ... /usr/share/cmake-3.5/Modules/FindVala.cmake ... which is ...
jmc's user avatar
  • 136
2 votes
Accepted

Can't make Gtk.TextView () fill whole parent Gtk.Box

A lovely application you built here, I particularly like the native indicator! Looking into your Application.css: .command_wrapper { background-color: #fdf6e3; border-radius: 3px; ...
Vlad's user avatar
  • 2,205
1 vote

How to get user home folder in Vala?

Granite.Services.Paths is now deprecated and uses GLib.Environment.get_home_dir () internally anyway. If GLib.Environment.get_home_dir () is returning null, I believe there is probably something ...
David Hewitt's user avatar
  • 1,429
1 vote
Accepted

Delete Applications - Self Made With Gtk Tutorial

If you still have the source code, use sudo ninja uninstall inside the build folder. If you removed the build folder by any chance, run meson build --prefix=/usr to recreate the build folder, ...
Vlad's user avatar
  • 2,205
1 vote
Accepted

Debugging applications during development

When you compile a Vala application using meson/ninja, it automatically adds the correct flags to make it build using debug information, so you can skip straight to debugging the application.
David Hewitt's user avatar
  • 1,429
1 vote
Accepted

Code don't work

You are showing all the window objects and then adding the button afterwards. Try: main_window.add (button_hello); main_window.show_all();
theGtknerd's user avatar
1 vote
Accepted

Setting up a development environment for elementaryOS apps?

A lot of the elementary developers (myself included) use the tools included in the OS (the terminal and the editor called Code). While this isn't a fully fledged IDE with a debugger like you mention, ...
David Hewitt's user avatar
  • 1,429
1 vote
Accepted

Can not able to get exact value of `%u` in Vala program

You're assigning the return value to age. The return value for scanf is documented as: On success, these functions return the number of input items successfully matched and assigned; this can be ...
nemequ's user avatar
  • 430
1 vote
Accepted

Linked style doesn't work for buttons

The Gtk.HeaderBar provides special styling for Gtk.Button's so that they look good inside it. The solution: In your case the solution is easy: remove the image-button style class from the ...
donadigo's user avatar
  • 161
1 vote
Accepted

Compiling with custom vapi leads to error

Instead of CUSTOM_VAPIS I had to use --vapidir option. vala_precompile(VALA_C ${EXEC_NAME} ... PACKAGES ... # CUSTOM_VAPIS # ../vapi/libgtop-2.0.vapi OPTIONS --vapidir=${...
stsdc's user avatar
  • 180
1 vote

Missing Library

For this kind of errors I always search in the AUR for missing dependencies, when I install all the dependencies the problem, most of times fixes, if not you should read the oficial git/webpage ...
Egon Stetmann.'s user avatar
1 vote
Accepted

WebKitGTK not installed / unknown version detected

Found it: sudo apt-get build-dep pantheon-mail installs all dev dependencies.
Kees de Kooter's user avatar
1 vote
Accepted

Change Elementary OS Lock Screen Background With Vala and User Specific

I've found a solution in the official code of the elementary settings app. [DBus (name = "org.freedesktop.Accounts.User")] interface AccountsServiceUser : Object { public abstract void ...
Oliver's user avatar
  • 123
1 vote

Use of STYLE_CLASS_LINKED for Linked Buttons

This is actually a recently closed issue in our system stylesheet. See this issue report on GitHub. An update containing this fix should be available relatively soon.
Daniel Foré's user avatar
  • 9,724
1 vote
Accepted

Use of STYLE_CLASS_LINKED for Linked Buttons

In Files, view switch use Gtk.STYLE_CLASS_FLAT instead Gtk.STYLE_CLASS_LINKED. However , you can use Granite.Widgets.ModeButton You can see the code at : Files on Launchpad: linked Files on ...
bitseater's user avatar
  • 2,278
1 vote

Can't find gtk header file for vala-code compilation

Just had the same issue on elementary OS Hera. I've fixed it by adding this line to my .bashrc: export PKG_CONFIG_PATH="/usr/share/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:$...
Peter's user avatar
  • 11
1 vote
Accepted

Item list with text input error on Vala

Sounds like you want Gtk.Overlay. That said, a better design would probably be to put both the Gtk.TreeView and Gtk.Entry an a Gtk.Box so the entry doesn't occlude the tree view…
nemequ's user avatar
  • 430
1 vote
Accepted

StatusIcon not showing/working

GtkStatusIcon is deprecated since GTK 3.14. It is more for Windows and KDE and not supported on elementary OS or Gnome 3.
Djax's user avatar
  • 2,879

Only top scored, non community-wiki answers of a minimum length are eligible