diff options
Diffstat (limited to 'src/glibext')
-rw-r--r-- | src/glibext/secstorage-int.h | 4 | ||||
-rw-r--r-- | src/glibext/secstorage.c | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/glibext/secstorage-int.h b/src/glibext/secstorage-int.h index 310fbbc..bbac133 100644 --- a/src/glibext/secstorage-int.h +++ b/src/glibext/secstorage-int.h @@ -45,6 +45,10 @@ struct _GSecretStorageClass { GObjectClass parent; /* A laisser en premier */ + /* Signaux */ + + void (* lock_update) (GSecretStorage *); + }; diff --git a/src/glibext/secstorage.c b/src/glibext/secstorage.c index 84fc10c..ed2e4e6 100644 --- a/src/glibext/secstorage.c +++ b/src/glibext/secstorage.c @@ -111,6 +111,14 @@ static void g_secret_storage_class_init(GSecretStorageClass *klass) object->dispose = g_secret_storage_dispose; object->finalize = g_secret_storage_finalize; + g_signal_new("lock-update", + G_TYPE_SECRET_STORAGE, + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GSecretStorageClass, lock_update), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0); + } @@ -237,7 +245,7 @@ bool g_secret_storage_create(GSecretStorage *storage, GSettings *settings) storage->settings = settings; } else - result = false; // TODO + storage->settings = g_settings_new("re.chrysalide.framework.secstorage"); return result; |