aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/namespace_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/namespace_search.c')
-rw-r--r--src/plugins/fs/namespace_search.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/fs/namespace_search.c b/src/plugins/fs/namespace_search.c
index 06dc4145..19fa561a 100644
--- a/src/plugins/fs/namespace_search.c
+++ b/src/plugins/fs/namespace_search.c
@@ -51,6 +51,7 @@ on_namespaceRatingSpinButton_changed_fs (GtkWidget * dummy,
51 char *description; 51 char *description;
52 int rating; 52 int rating;
53 int newrating; 53 int newrating;
54 GNUNET_HashCode nsid;
54 55
55 GNUNET_GTK_DEBUG_BEGIN (); 56 GNUNET_GTK_DEBUG_BEGIN ();
56 spin = 57 spin =
@@ -78,9 +79,11 @@ on_namespaceRatingSpinButton_changed_fs (GtkWidget * dummy,
78 { 79 {
79 if (encStr != NULL) 80 if (encStr != NULL)
80 { 81 {
82 GNUNET_enc_to_hash(encStr,
83 &nsid);
81 newrating = gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin)); 84 newrating = gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin));
82 rating = GNUNET_NS_namespace_rank (ectx, 85 rating = GNUNET_NS_namespace_rank (ectx,
83 cfg, encStr, 86 cfg, &nsid,
84 newrating - rating); 87 newrating - rating);
85 if (rating != newrating) 88 if (rating != newrating)
86 { 89 {
@@ -160,7 +163,7 @@ on_searchNamespaceComboBoxEntry_changed_fs (GtkWidget * dummy,
160 = glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), 163 = glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (),
161 "fssearchKeywordComboBoxEntry"); 164 "fssearchKeywordComboBoxEntry");
162 if (GNUNET_OK == 165 if (GNUNET_OK ==
163 GNUNET_NS_namespace_get_root (ectx, cfg, encStr, &root)) 166 GNUNET_NS_namespace_get_root (ectx, cfg, &ns, &root))
164 { 167 {
165 GNUNET_hash_to_enc (&root, &enc); 168 GNUNET_hash_to_enc (&root, &enc);
166 gtk_entry_set_text (GTK_ENTRY 169 gtk_entry_set_text (GTK_ENTRY