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

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

Open
scottw-finao opened this issue Oct 26, 2020 · 1 comment

Comments

@scottw-finao
Copy link

scottw-finao commented Oct 26, 2020

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();

@scottw-finao
Copy link
Author

I tried removing the 'weak' and it seemed to compile but did have 9 warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant