Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libportal for openSUSE:Factory checked in at 2023-09-12 21:02:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libportal (Old) and /work/SRC/openSUSE:Factory/.libportal.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libportal" Tue Sep 12 21:02:09 2023 rev:5 rq:1110334 version:0.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libportal/libportal.changes 2023-09-10 13:09:48.881663614 +0200 +++ /work/SRC/openSUSE:Factory/.libportal.new.1766/libportal.changes 2023-09-12 21:02:20.763025626 +0200 @@ -1,0 +2,6 @@ +Sun Sep 10 08:53:43 UTC 2023 - Bjørn Lie <bjorn....@gmail.com> + +- Update to version 0.7.1: + + Restore ability to call g_object_new (XDP_TYPE_PORTAL, ...). + +------------------------------------------------------------------- Old: ---- libportal-0.7.tar.xz New: ---- libportal-0.7.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libportal.spec ++++++ --- /var/tmp/diff_new_pack.Jw2gvK/_old 2023-09-12 21:02:22.007070000 +0200 +++ /var/tmp/diff_new_pack.Jw2gvK/_new 2023-09-12 21:02:22.007070000 +0200 @@ -19,7 +19,7 @@ %define sover 1 Name: libportal -Version: 0.7 +Version: 0.7.1 Release: 0 Summary: A GIO-style async APIs for most Flatpak portals License: LGPL-3.0-or-later ++++++ libportal-0.7.tar.xz -> libportal-0.7.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libportal-0.7/NEWS new/libportal-0.7.1/NEWS --- old/libportal-0.7/NEWS 2023-09-06 22:09:49.000000000 +0200 +++ new/libportal-0.7.1/NEWS 2023-09-09 20:32:36.000000000 +0200 @@ -1,3 +1,8 @@ +Changes in 0.7.1, 09-09-2023 +========================== + +- Restore ability to call g_object_new (XDP_TYPE_PORTAL, ...) + Changes in 0.7, 06-09-2023 ========================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libportal-0.7/libportal/portal-private.h new/libportal-0.7.1/libportal/portal-private.h --- old/libportal-0.7/libportal/portal-private.h 2023-09-06 22:09:49.000000000 +0200 +++ new/libportal-0.7.1/libportal/portal-private.h 2023-09-09 20:32:36.000000000 +0200 @@ -25,6 +25,7 @@ struct _XdpPortal { GObject parent_instance; + GError *init_error; GDBusConnection *bus; char *sender; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libportal-0.7/libportal/portal.c new/libportal-0.7.1/libportal/portal.c --- old/libportal-0.7/libportal/portal.c 2023-09-06 22:09:49.000000000 +0200 +++ new/libportal-0.7.1/libportal/portal.c 2023-09-09 20:32:36.000000000 +0200 @@ -80,6 +80,8 @@ { XdpPortal *portal = XDP_PORTAL (object); + g_clear_error (&portal->init_error); + /* inhibit */ if (portal->inhibit_handles) g_hash_table_unref (portal->inhibit_handles); @@ -293,30 +295,44 @@ return g_steal_pointer (&bus); } -static gboolean -xdp_portal_initable_init (GInitable *initable, - GCancellable *cancellable, - GError **out_error) +/* Historically, g_object_new() on an XdpPortal initialized it. We follow + * that here by doing the actual initialization early, and only dealing + * with the result in initable_init(). */ +static void +xdp_portal_init (XdpPortal *portal) { int i; - XdpPortal *portal = (XdpPortal*) initable; - /* g_bus_get_sync() returns a singleton. In the test suite we may restart * the session bus, so we have to manually connect to the new bus */ if (getenv ("LIBPORTAL_TEST_SUITE")) - portal->bus = create_bus_from_address (getenv ("DBUS_SESSION_BUS_ADDRESS"), out_error); + portal->bus = create_bus_from_address (getenv ("DBUS_SESSION_BUS_ADDRESS"), &portal->init_error); else - portal->bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, out_error); + portal->bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &portal->init_error); if (portal->bus == NULL) - return FALSE; + return; portal->sender = g_strdup (g_dbus_connection_get_unique_name (portal->bus) + 1); for (i = 0; portal->sender[i]; i++) if (portal->sender[i] == '.') portal->sender[i] = '_'; +} +static gboolean +xdp_portal_initable_init (GInitable *initable, + GCancellable *cancellable, + GError **out_error) +{ + XdpPortal *portal = (XdpPortal*) initable; + + if (portal->init_error != NULL) + { + g_propagate_error (out_error, g_error_copy (portal->init_error)); + return FALSE; + } + + g_assert (portal->bus != NULL); return TRUE; } @@ -326,11 +342,6 @@ iface->init = xdp_portal_initable_init; } -static void -xdp_portal_init (XdpPortal *portal) -{ -} - /** * xdp_portal_initable_new: * @error: A GError location to store the error occurring, or NULL to ignore. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libportal-0.7/meson.build new/libportal-0.7.1/meson.build --- old/libportal-0.7/meson.build 2023-09-06 22:09:49.000000000 +0200 +++ new/libportal-0.7.1/meson.build 2023-09-09 20:32:36.000000000 +0200 @@ -1,5 +1,5 @@ project('libportal','c', - version: '0.7', + version: '0.7.1', default_options: ['warning_level=2'], meson_version: '>= 0.49.0')