Commit 9568eccd authored by Robert Ancell's avatar Robert Ancell

Generate autocleanup definitions in libgdm

parent bfd35b85
......@@ -12,6 +12,7 @@ gdm-manager-glue.c gdm-manager-glue.h : $(top_srcdir)/daemon/gdm-manager.xml Mak
--c-namespace Gdm \
--interface-prefix=org.gnome.DisplayManager \
--generate-c-code=gdm-manager-glue \
--c-generate-autocleanup=all \
--annotate "org.gnome.DisplayManager.Manager" \
"org.gtk.GDBus.C.Name" Manager \
$(top_srcdir)/daemon/gdm-manager.xml
......@@ -21,6 +22,7 @@ gdm-client-glue.c gdm-client-glue.h : $(top_srcdir)/daemon/gdm-session.xml Makef
--c-namespace Gdm \
--interface-prefix=org.gnome.DisplayManager \
--generate-c-code=gdm-client-glue \
--c-generate-autocleanup=all \
--annotate "org.gnome.DisplayManager.UserVerifier" \
"org.gtk.GDBus.C.Name" UserVerifier \
--annotate "org.gnome.DisplayManager.Greeter" \
......
......@@ -122,6 +122,10 @@ GdmChooser *gdm_client_get_chooser_sync (GdmClient *client,
GCancellable *cancellable,
GError **error);
#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GdmClient, g_object_unref)
#endif
G_END_DECLS
#endif /* __GDM_CLIENT_H */
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