diff options
author | Daiki Ueno <ueno@gnu.org> | 2018-09-30 08:12:08 +0000 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-09-30 08:12:08 +0000 |
commit | 3af25b6bbed94965142c7f7c5ad0c80a8b23f3e2 (patch) | |
tree | ed679f5077b763c289b2c8cca5b58e456f7780dc | |
parent | e3a40719072fc4bbb74c6d1b840797e84cae95cb (diff) | |
parent | 038962d643361f44ddb58ae9611a9386b291e7f1 (diff) | |
download | gcr-3af25b6bbed94965142c7f7c5ad0c80a8b23f3e2.tar.gz |
Merge branch 'wip/dueno/ghash' into 'master'
system-prompter: Fix use of g_hash_table_lookup_extended
Closes #9
See merge request GNOME/gcr!4
-rw-r--r-- | gcr/gcr-system-prompter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcr/gcr-system-prompter.c b/gcr/gcr-system-prompter.c index 975abe4..39250e7 100644 --- a/gcr/gcr-system-prompter.c +++ b/gcr/gcr-system-prompter.c @@ -491,17 +491,19 @@ prompt_stop_prompting (GcrSystemPrompter *self, ActivePrompt *active; GVariant *retval; gpointer watch; + Callback *orig_callback; g_debug ("stopping prompting for operation %s@%s", callback->path, callback->name); /* Get a pointer to our actual callback */ if (!g_hash_table_lookup_extended (self->pv->callbacks, callback, - (gpointer *)&callback, &watch)) { + (gpointer *)&orig_callback, &watch)) { g_debug ("couldn't find the callback for prompting operation %s@%s", callback->path, callback->name); return; } + callback = orig_callback; /* * We remove these from the callbacks hash table so that we don't |