flatpak / libportal

libportal - Flatpak portal library
https://libportal.org
GNU Lesser General Public License v3.0
82 stars 40 forks source link

portal: use GInitable to enable init error propagation #119

Closed marler8997 closed 1 year ago

marler8997 commented 1 year ago

Fix issue #118

Adds xdp_portal_initable_new as an alterative to xdp_portal_new that can return a GError.

I used https://gitlab.gnome.org/GNOME/glib/-/blob/main/gio/gcharsetconverter.c as a reference to see how to implement the GInitable interface.