[gnome-control-center] fingerprint-manager: Add a getter for the user
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] fingerprint-manager: Add a getter for the user
- Date: Fri, 26 Jun 2020 01:59:38 +0000 (UTC)
commit d5f6d8e965db0410b13b787c230862ed7abe20aa
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Wed Apr 8 05:20:35 2020 +0200
fingerprint-manager: Add a getter for the user
panels/user-accounts/cc-fingerprint-manager.c | 10 ++++++++++
panels/user-accounts/cc-fingerprint-manager.h | 2 ++
2 files changed, 12 insertions(+)
---
diff --git a/panels/user-accounts/cc-fingerprint-manager.c b/panels/user-accounts/cc-fingerprint-manager.c
index e486af1f2..784ad1700 100644
--- a/panels/user-accounts/cc-fingerprint-manager.c
+++ b/panels/user-accounts/cc-fingerprint-manager.c
@@ -583,3 +583,13 @@ cc_fingerprint_manager_get_state (CcFingerprintManager *self)
return priv->state;
}
+
+ActUser *
+cc_fingerprint_manager_get_user (CcFingerprintManager *self)
+{
+ CcFingerprintManagerPrivate *priv = cc_fingerprint_manager_get_instance_private (self);
+
+ g_return_val_if_fail (CC_IS_FINGERPRINT_MANAGER (self), NULL);
+
+ return priv->user;
+}
diff --git a/panels/user-accounts/cc-fingerprint-manager.h b/panels/user-accounts/cc-fingerprint-manager.h
index 8ebfca481..20771ae6f 100644
--- a/panels/user-accounts/cc-fingerprint-manager.h
+++ b/panels/user-accounts/cc-fingerprint-manager.h
@@ -54,6 +54,8 @@ CcFingerprintManager * cc_fingerprint_manager_new (ActUser *user);
CcFingerprintState cc_fingerprint_manager_get_state (CcFingerprintManager *fp_manager);
+ActUser * cc_fingerprint_manager_get_user (CcFingerprintManager *fp_manager);
+
void cc_fingerprint_manager_update_state (CcFingerprintManager *fp_manager,
CcFingerprintStateUpdated callback,
gpointer user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]