summaryrefslogtreecommitdiff
path: root/plugins/smartcard
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-19 14:43:56 +0200
committerVictor Kareh <[email protected]>2019-08-20 09:01:31 -0400
commit9e7fcbe1cbfc3f55b55214f3f1b3f891712ddf9b (patch)
tree65baed7a200f2aac99af0624c51266b00f4b59ff /plugins/smartcard
parentb911ab2d958e69074cbfb3d4e8d3a9f30c22e690 (diff)
downloadmate-settings-daemon-9e7fcbe1cbfc3f55b55214f3f1b3f891712ddf9b.tar.bz2
mate-settings-daemon-9e7fcbe1cbfc3f55b55214f3f1b3f891712ddf9b.tar.xz
msd-smartcard-manager: avoid 'g_type_class_add_private'
Diffstat (limited to 'plugins/smartcard')
-rw-r--r--plugins/smartcard/msd-smartcard-manager.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/plugins/smartcard/msd-smartcard-manager.c b/plugins/smartcard/msd-smartcard-manager.c
index 3ad64ea..43d6644 100644
--- a/plugins/smartcard/msd-smartcard-manager.c
+++ b/plugins/smartcard/msd-smartcard-manager.c
@@ -134,9 +134,9 @@ enum {
static guint msd_smartcard_manager_signals[NUMBER_OF_SIGNALS] = { 0 };
-G_DEFINE_TYPE (MsdSmartcardManager,
- msd_smartcard_manager,
- G_TYPE_OBJECT);
+G_DEFINE_TYPE_WITH_PRIVATE (MsdSmartcardManager,
+ msd_smartcard_manager,
+ G_TYPE_OBJECT);
static void
msd_smartcard_manager_class_init (MsdSmartcardManagerClass *manager_class)
@@ -149,9 +149,6 @@ msd_smartcard_manager_class_init (MsdSmartcardManagerClass *manager_class)
msd_smartcard_manager_class_install_signals (manager_class);
msd_smartcard_manager_class_install_properties (manager_class);
-
- g_type_class_add_private (manager_class,
- sizeof (MsdSmartcardManagerPrivate));
}
static void
@@ -328,9 +325,7 @@ msd_smartcard_manager_init (MsdSmartcardManager *manager)
{
g_debug ("initializing smartcard manager");
- manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager,
- MSD_TYPE_SMARTCARD_MANAGER,
- MsdSmartcardManagerPrivate);
+ manager->priv = msd_smartcard_manager_get_instance_private (manager);
manager->priv->poll_timeout_id = 0;
manager->priv->is_unstoppable = FALSE;
manager->priv->module = NULL;