mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +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:
@@ -93,7 +93,7 @@ static void mechanism_client_shutdown (GDBusAuthMe
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
G_DEFINE_TYPE (GDBusAuthMechanismSha1, _g_dbus_auth_mechanism_sha1, G_TYPE_DBUS_AUTH_MECHANISM);
|
||||
G_DEFINE_TYPE_WITH_PRIVATE (GDBusAuthMechanismSha1, _g_dbus_auth_mechanism_sha1, G_TYPE_DBUS_AUTH_MECHANISM)
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
@@ -117,8 +117,6 @@ _g_dbus_auth_mechanism_sha1_class_init (GDBusAuthMechanismSha1Class *klass)
|
||||
GObjectClass *gobject_class;
|
||||
GDBusAuthMechanismClass *mechanism_class;
|
||||
|
||||
g_type_class_add_private (klass, sizeof (GDBusAuthMechanismSha1Private));
|
||||
|
||||
gobject_class = G_OBJECT_CLASS (klass);
|
||||
gobject_class->finalize = _g_dbus_auth_mechanism_sha1_finalize;
|
||||
|
||||
@@ -144,9 +142,7 @@ _g_dbus_auth_mechanism_sha1_class_init (GDBusAuthMechanismSha1Class *klass)
|
||||
static void
|
||||
_g_dbus_auth_mechanism_sha1_init (GDBusAuthMechanismSha1 *mechanism)
|
||||
{
|
||||
mechanism->priv = G_TYPE_INSTANCE_GET_PRIVATE (mechanism,
|
||||
G_TYPE_DBUS_AUTH_MECHANISM_SHA1,
|
||||
GDBusAuthMechanismSha1Private);
|
||||
mechanism->priv = _g_dbus_auth_mechanism_sha1_get_private (mechanism);
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user