Commit 45089bd9 authored by Robert Ancell's avatar Robert Ancell Committed by Ray Strode

Replace g_type_class_add_private with modern private methods

`g_type_class_add_private` is the "old way" of doing things.

This commit updates the codebase to use `G_ADD_PRIVATE`,
`_get_instance_private ()`, `G_DEFINE_TYPE_WITH_PRIVATE`, etc.
parent 90cf484d
Pipeline #4143 passed with stage
in 2 minutes and 20 seconds
This diff is collapsed.
......@@ -40,11 +40,9 @@ G_BEGIN_DECLS
#define DAEMON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_DAEMON, DaemonClass))
typedef struct DaemonClass DaemonClass;
typedef struct DaemonPrivate DaemonPrivate;
struct Daemon {
AccountsAccountsSkeleton parent;
DaemonPrivate *priv;
};
struct DaemonClass {
......
This diff is collapsed.
......@@ -35,16 +35,15 @@ G_BEGIN_DECLS
#define ACT_IS_USER_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ACT_TYPE_USER_MANAGER))
#define ACT_USER_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ACT_TYPE_USER_MANAGER, ActUserManagerClass))
typedef struct ActUserManagerPrivate ActUserManagerPrivate;
typedef struct _ActUserManager ActUserManager;
typedef struct _ActUserManagerClass ActUserManagerClass;
struct _ActUserManager
{
GObject parent;
GObject parent;
/*< private >*/
ActUserManagerPrivate *priv;
gpointer deprecated;
};
struct _ActUserManagerClass
......
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