summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-19 14:45:42 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commitba0948d5e894d61467493fcb911bb546721b1289 (patch)
tree434e640aaa1560ab8d449a6915942f3138606fcd /plugins
parent9e7fcbe1cbfc3f55b55214f3f1b3f891712ddf9b (diff)
downloadmate-settings-daemon-ba0948d5e894d61467493fcb911bb546721b1289.tar.bz2
mate-settings-daemon-ba0948d5e894d61467493fcb911bb546721b1289.tar.xz
msd-smartcard-plugin: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins')
-rw-r--r--plugins/smartcard/msd-smartcard-plugin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/smartcard/msd-smartcard-plugin.c b/plugins/smartcard/msd-smartcard-plugin.c
index f4eb129..66e8530 100644
--- a/plugins/smartcard/msd-smartcard-plugin.c
+++ b/plugins/smartcard/msd-smartcard-plugin.c
@@ -60,9 +60,7 @@ typedef enum
#define MSD_SMARTCARD_SCHEMA "org.mate.peripherals-smartcard"
#define KEY_REMOVE_ACTION "removal-action"
-#define MSD_SMARTCARD_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_SMARTCARD_PLUGIN, MsdSmartcardPluginPrivate))
-
-MATE_SETTINGS_PLUGIN_REGISTER (MsdSmartcardPlugin, msd_smartcard_plugin);
+MATE_SETTINGS_PLUGIN_REGISTER_WITH_PRIVATE (MsdSmartcardPlugin, msd_smartcard_plugin);
static void
simulate_user_activity (MsdSmartcardPlugin *plugin)
@@ -131,7 +129,7 @@ force_logout (MsdSmartcardPlugin *plugin)
static void
msd_smartcard_plugin_init (MsdSmartcardPlugin *plugin)
{
- plugin->priv = MSD_SMARTCARD_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = msd_smartcard_plugin_get_instance_private (plugin);
g_debug ("MsdSmartcardPlugin initializing");
@@ -335,8 +333,6 @@ msd_smartcard_plugin_class_init (MsdSmartcardPluginClass *klass)
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
-
- g_type_class_add_private (klass, sizeof (MsdSmartcardPluginPrivate));
}
static void