bleakgrey / tootle

GTK-based Mastodon client for Linux
GNU General Public License v3.0
400 stars 61 forks source link

WIP: Fix build with newer vala and libadwaita #358

Open fortysixandtwo opened 2 years ago

fortysixandtwo commented 2 years ago

This builds, but raises some criticals currently.

Just wanted to put it out there to avoid work duplication.

Fixes #337

fortysixandtwo commented 2 years ago

FYI: some patches to use make 1.0 build with latest valac: (pretty much the same ones that are applied here) can be found here: https://salsa.debian.org/devrtz/tootle/-/commits/fix_1.0

CaptainMorgan12 commented 2 years ago

might be related as i am getting build errors:

`lots more warnings.....

./src/API/Entity.vala:105.5-105.43: warning: unhandled error GLib.Error' var obj = Entity.from_json (type, elem); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/API/Account.vala:64.5-64.29: warning: unhandled errorGLib.Error' account.resolve.end (res).open (); ^^^^^^^^^^^^^^^^^^^^^^^^^
../src/Services/Accounts/InstanceAccount.vala:181.49-181.62: warning: unhandled error GLib.Error' var entity = create_entity<API.Notification> (ev.get_node ()); ^^^^^^^^^^^^^^ ../src/Services/Accounts/InstanceAccount.vala:181.3-181.63: warning: unhandled errorGLib.Error' var entity = create_entity (ev.get_node ()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/Dialogs/NewAccount.vala:214.3-214.21: error: The name can_swipe_back' does not exist in the context ofAdw.Leaflet' (libadwaita-1) deck.can_swipe_back = deck.visible_child != done_step; ^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 21 warning(s) ninja: build stopped: subcommand failed. `