gtk4: fix ScrolledWindow constructor signature
I recently ran into this compilation error:
../src/window.vala: In function ‘window_construct’: ../src/window.vala:15:32: error: too few arguments to function ‘gtk_scrolled_window_new’ 15 | this.content_view = new Gtk.ScrolledWindow(); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/gtk-4.0/gtk/gtk.h:191, from lunchmoney.p/src/window.c:4: /usr/include/gtk-4.0/gtk/gtkscrolledwindow.h:95:16: note: declared here 95 | GtkWidget* gtk_scrolled_window_new (GtkAdjustment *hadjustment, | ^~~~~~~~~~~~~~~~~~~~~~~ ninja: build stopped: subcommand failed.
I believe the problem is just that the vapi for gtk4 does not match the signature of
Full disclosure: I have not set up a full development environment for Vala yet, so this fix is not officially tested.