mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 23:43:39 +02:00
gio: Use the new private instance data declaration
Use the newly added macros, and remove the explicit calls to g_type_class_add_private(). https://bugzilla.gnome.org/show_bug.cgi?id=700035
This commit is contained in:
@@ -70,7 +70,7 @@ static void mechanism_client_shutdown (GDBusAuthMe
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
G_DEFINE_TYPE (GDBusAuthMechanismAnon, _g_dbus_auth_mechanism_anon, G_TYPE_DBUS_AUTH_MECHANISM);
|
||||
G_DEFINE_TYPE_WITH_PRIVATE (GDBusAuthMechanismAnon, _g_dbus_auth_mechanism_anon, G_TYPE_DBUS_AUTH_MECHANISM)
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
@@ -89,8 +89,6 @@ _g_dbus_auth_mechanism_anon_class_init (GDBusAuthMechanismAnonClass *klass)
|
||||
GObjectClass *gobject_class;
|
||||
GDBusAuthMechanismClass *mechanism_class;
|
||||
|
||||
g_type_class_add_private (klass, sizeof (GDBusAuthMechanismAnonPrivate));
|
||||
|
||||
gobject_class = G_OBJECT_CLASS (klass);
|
||||
gobject_class->finalize = _g_dbus_auth_mechanism_anon_finalize;
|
||||
|
||||
@@ -116,9 +114,7 @@ _g_dbus_auth_mechanism_anon_class_init (GDBusAuthMechanismAnonClass *klass)
|
||||
static void
|
||||
_g_dbus_auth_mechanism_anon_init (GDBusAuthMechanismAnon *mechanism)
|
||||
{
|
||||
mechanism->priv = G_TYPE_INSTANCE_GET_PRIVATE (mechanism,
|
||||
G_TYPE_DBUS_AUTH_MECHANISM_ANON,
|
||||
GDBusAuthMechanismAnonPrivate);
|
||||
mechanism->priv = _g_dbus_auth_mechanism_anon_get_private (mechanism);
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user