[Solved] GtkTreeView set selection to specific row

You don’t need to use a GtkTreeIter for this, the GtkTreePath API is enough. You’re throwing your path away before using it, which creates problems. Here’s how to do it: GtkTreePath *path = gtk_tree_path_new_from_indices(3, -1); gtk_tree_selection_select_path(treeview_selection, path); gtk_tree_path_free(path); UPDATE: I rewrote the code completely to drop use of GtkTreeIter, I originally thought that you wanted … Read more

[Solved] How to use pkg-config in CMake (juCi++)

If your IDE handles CMake and Meson, it should be able to detect your project files. I’d say go for Meson, it’s the future, and CMake syntax has a few quirks that Meson doesn’t. Meson: Meson documentation He’s a basic meson.build that expects to find your application code in main.c and produces a binary named … Read more