Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vala diagnostics unknown symbols for Gtk and Workbench #913

Open
sonnyp opened this issue Mar 23, 2024 · 1 comment
Open

Vala diagnostics unknown symbols for Gtk and Workbench #913

sonnyp opened this issue Mar 23, 2024 · 1 comment
Labels
bug Something isn't working vala

Comments

@sonnyp
Copy link
Contributor

sonnyp commented Mar 23, 2024

Pretty sure this is new in Workbench 46

@Diego-Ivan @lw64 can one of you take a look?

image

@sonnyp sonnyp added the vala label Mar 23, 2024
@sonnyp
Copy link
Contributor Author

sonnyp commented Mar 23, 2024

Reproduced with the following snippet for the Checkboxes demo

#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1

public void main() {
    var radio_button_1 = (Gtk.CheckButton) workbench.builder.get_object("radio_button_1");
    var radio_button_2 = (Gtk.CheckButton) workbench.builder.get_object("radio_button_2");

    radio_button_1.toggled.connect(() => {
        if (radio_button_1.active) {
            stdout.printf("Force Light Mode\n");
        }
    });

    radio_button_2.toggled.connect(() => {
        if (radio_button_2.active) {
            stdout.printf("Force Dark Mode\n");
        }
    });
}

@sonnyp sonnyp added the bug Something isn't working label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vala
Projects
None yet
Development

No branches or pull requests

1 participant