aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2009-07-29 18:08:01 +0800
committerPriit Laes <plaes@plaes.org>2009-07-29 18:08:01 +0800
commit33394f8729de34430b1af7f9e05985e0d5ddb8d2 (patch)
treec3d33f75caa47dee7819b7dd4f1684da380cabbd /src
parent5f3b345a7c55a6491d3dd60637f304ab746e9656 (diff)
downloadgsoc2013-epiphany-33394f8729de34430b1af7f9e05985e0d5ddb8d2.tar
gsoc2013-epiphany-33394f8729de34430b1af7f9e05985e0d5ddb8d2.tar.gz
gsoc2013-epiphany-33394f8729de34430b1af7f9e05985e0d5ddb8d2.tar.bz2
gsoc2013-epiphany-33394f8729de34430b1af7f9e05985e0d5ddb8d2.tar.lz
gsoc2013-epiphany-33394f8729de34430b1af7f9e05985e0d5ddb8d2.tar.xz
gsoc2013-epiphany-33394f8729de34430b1af7f9e05985e0d5ddb8d2.tar.zst
gsoc2013-epiphany-33394f8729de34430b1af7f9e05985e0d5ddb8d2.zip
Revert "Make pdm_dialog_fill_passwords_list asynchronous."
This reverts commit 745f33e3fac9dd57b1da6be26c82a9101adf59cd.
Diffstat (limited to 'src')
-rw-r--r--src/pdm-dialog.c36
1 files changed, 15 insertions, 21 deletions
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c
index c4c28b1cf..697773cd0 100644
--- a/src/pdm-dialog.c
+++ b/src/pdm-dialog.c
@@ -1270,32 +1270,26 @@ pdm_dialog_passwords_construct (PdmActionInfo *info)
}
static void
-pdm_dialog_fill_passwords_list_async_cb (GnomeKeyringResult result,
- GList *list,
- gpointer data)
+pdm_dialog_fill_passwords_list (PdmActionInfo *info)
{
- GList *l;
- PdmActionInfo *info = (PdmActionInfo *)data;
+ GList *list, *l;
+ GnomeKeyringResult result;
- if (result != GNOME_KEYRING_RESULT_OK)
- return;
+ result = gnome_keyring_list_item_ids_sync (GNOME_KEYRING_DEFAULT, &list);
- for (l = list; l != NULL; l = l->next)
- info->add (info, l->data);
+ if (result == GNOME_KEYRING_RESULT_OK)
+ {
+ for (l = list; l != NULL; l = l->next)
+ info->add (info, l->data);
+ g_list_free (list);
+ }
- info->filled = TRUE;
- gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (info->model),
- COL_PASSWORDS_HOST,
- GTK_SORT_ASCENDING);
-}
+ /* Let's get notified when the list changes */
+ info->filled = TRUE;
-static void
-pdm_dialog_fill_passwords_list (PdmActionInfo *info)
-{
- gnome_keyring_list_item_ids (GNOME_KEYRING_DEFAULT,
- pdm_dialog_fill_passwords_list_async_cb,
- info,
- NULL);
+ gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (info->model),
+ COL_PASSWORDS_HOST,
+ GTK_SORT_ASCENDING);
}
static void