Skip to content

Cannot convert from GLib.List<Gtk.Window>' to GLib.List<weak Gtk.Window> #72

@scottw-finao

Description

@scottw-finao

Under ubuntu 20.04, it will not compile with the current distribution libs. It's failing on the step:

glib-compile-resources gresource.xml --generate-source --target=gresource.c &&
valac
-o ../gtk-hypermd
-g
--enable-checking
--gresources gresource.xml
--pkg gio-2.0
--pkg granite
--pkg gtk+-3.0
--pkg json-glib-1.0
--pkg libsoup-2.4
--pkg posix
--pkg webkit2gtk-4.0
--Xcc=-Wno-deprecated-declarations
*.vala gresource.c &&
rm -f gresource.c

failing specifically with the error:

Application.vala:139.37-139.43: error: Assignment: Cannot convert from `GLib.List<Gtk.Window>' to `GLib.List<weak Gtk.Window>?'
unowned List windows = get_windows();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions