I’m attempting to create a composite widget and getting the following error from the compiler:
../src/theme_switcher.vala:21.5-21.43: error: Unknown template `ThemeSwitcher' in ui file `../src/theme_switcher.ui'
21 | public class ThemeSwitcher : Gtk.Widget {
My ui file begins as so:
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="ThemeSwitcher" parent="GtkWidget">
And in theme_switcher.vala:
namespace Vapad {
[GtkTemplate (ui = "/org/hitchhiker_linux/vapad/theme_switcher.ui")]
public class ThemeSwitcher : Gtk.Widget {
I don’t understand why this is not compiling.