[bijiben] biji_get_all_collections_ : use urn as key. title as value
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] biji_get_all_collections_ : use urn as key. title as value
- Date: Thu, 2 May 2013 22:44:42 +0000 (UTC)
commit 294d9990cd527768a3748324aa6747aa7fdf2a66
Author: Pierre-Yves Luyten <py luyten fr>
Date: Thu May 2 23:19:41 2013 +0200
biji_get_all_collections_ : use urn as key. title as value
the returned HashTable was quite confusing.
src/bjb-note-tag-dialog.c | 2 +-
src/libbiji/biji-tracker.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/bjb-note-tag-dialog.c b/src/bjb-note-tag-dialog.c
index 76a93ec..c755413 100644
--- a/src/bjb-note-tag-dialog.c
+++ b/src/bjb-note-tag-dialog.c
@@ -166,7 +166,7 @@ bjb_note_tag_dialog_handle_tags (GObject *source_object,
priv->collections = biji_get_all_collections_finish (source_object, res);
- collections = g_hash_table_get_keys (priv->collections);
+ collections = g_hash_table_get_values (priv->collections);
collections = g_list_sort (collections, bjb_compare_tag);
g_list_foreach (collections, (GFunc) append_tag, self);
diff --git a/src/libbiji/biji-tracker.c b/src/libbiji/biji-tracker.c
index fc97543..cd946e7 100644
--- a/src/libbiji/biji-tracker.c
+++ b/src/libbiji/biji-tracker.c
@@ -180,7 +180,7 @@ biji_get_all_collections_finish (GObject *source_object,
{
urn = g_strdup (tracker_sparql_cursor_get_string (cursor, 0, NULL));
collection = g_strdup (tracker_sparql_cursor_get_string (cursor, 1, NULL));
- g_hash_table_replace (result, collection, urn);
+ g_hash_table_replace (result, urn, collection);
}
g_object_unref (cursor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]