Commit 1b31868c authored by Simon McVittie's avatar Simon McVittie

GsdSmartcardService: Use correct parent type for structs

GDBusObjectSkeleton objects are larger than GObject, so we need to
allocate enough space. Otherwise, if we're lucky we'll get:

    Sep 13 11:09:32 espresso gsd-smartcard[12882]: specified class size for type 'GsdSmartcardService' is smaller than the parent type's 'GsdSmartcardServiceManagerSkeleton' class size
    Sep 13 11:09:32 espresso gsd-smartcard[12882]: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

and if we're unlucky we'll get object fields overwriting each other.
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@debian.org>
Fixes: 76b6b794 "smartcard: Use G_DECLARE_FINAL_TYPE for GsdSmartcardService"
parent f0e609e0
Pipeline #115507 passed with stages
in 3 minutes and 47 seconds
......@@ -32,7 +32,7 @@
struct _GsdSmartcardService
{
GObject parent;
GsdSmartcardServiceManagerSkeleton parent;
GDBusConnection *bus_connection;
GDBusObjectManagerServer *object_manager_server;
......
......@@ -39,7 +39,7 @@ G_BEGIN_DECLS
#define GSD_TYPE_SMARTCARD_SERVICE (gsd_smartcard_service_get_type ())
G_DECLARE_FINAL_TYPE (GsdSmartcardService, gsd_smartcard_service, GSD, SMARTCARD_SERVICE, GObject)
G_DECLARE_FINAL_TYPE (GsdSmartcardService, gsd_smartcard_service, GSD, SMARTCARD_SERVICE, GsdSmartcardServiceManagerSkeleton)
void gsd_smartcard_service_new_async (GsdSmartcardManager *manager,
GCancellable *cancellable,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment