diff options
Diffstat (limited to 'src/plugins/fs/namespace_search.c')
-rw-r--r-- | src/plugins/fs/namespace_search.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/fs/namespace_search.c b/src/plugins/fs/namespace_search.c index 0385a68b..5ac91a80 100644 --- a/src/plugins/fs/namespace_search.c +++ b/src/plugins/fs/namespace_search.c | |||
@@ -71,9 +71,11 @@ on_namespaceRatingSpinButton_changed_fs (GtkWidget * dummy, | |||
71 | NS_SEARCH_DESCRIPTION, &description, | 71 | NS_SEARCH_DESCRIPTION, &description, |
72 | NS_SEARCH_NAME, &nsName, | 72 | NS_SEARCH_NAME, &nsName, |
73 | NS_SEARCH_RATING, &rating, -1); | 73 | NS_SEARCH_RATING, &rating, -1); |
74 | if ((description != NULL) && (0 == strcmp (description, ""))) | 74 | if ((description != NULL) && |
75 | ( (0 == strcmp (description, "")) || | ||
76 | (0 == strcmp (description, _("globally"))))) | ||
75 | { | 77 | { |
76 | /* just to be sure */ | 78 | gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 0); |
77 | gtk_widget_set_sensitive (spin, FALSE); | 79 | gtk_widget_set_sensitive (spin, FALSE); |
78 | } | 80 | } |
79 | else | 81 | else |
@@ -100,8 +102,6 @@ on_namespaceRatingSpinButton_changed_fs (GtkWidget * dummy, | |||
100 | } | 102 | } |
101 | else | 103 | else |
102 | { | 104 | { |
103 | /* FIXME: if GNUNET_enc_to_hash succeeds, we may want to keep this | ||
104 | active */ | ||
105 | gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 0); | 105 | gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 0); |
106 | gtk_widget_set_sensitive (spin, FALSE); | 106 | gtk_widget_set_sensitive (spin, FALSE); |
107 | } | 107 | } |
@@ -150,7 +150,9 @@ on_searchNamespaceComboBoxEntry_changed_fs (GtkWidget * dummy, | |||
150 | NS_SEARCH_DESCRIPTION, &descStr, | 150 | NS_SEARCH_DESCRIPTION, &descStr, |
151 | NS_SEARCH_NAME, &nsName, | 151 | NS_SEARCH_NAME, &nsName, |
152 | NS_SEARCH_RATING, &rating, -1); | 152 | NS_SEARCH_RATING, &rating, -1); |
153 | if ((descStr != NULL) && (0 == strcmp (descStr, ""))) | 153 | if ((descStr != NULL) && |
154 | ( (0 == strcmp (descStr, "")) || | ||
155 | (0 == strcmp (descStr, _("globally"))) ) ) | ||
154 | { | 156 | { |
155 | gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 0); | 157 | gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 0); |
156 | gtk_widget_set_sensitive (spin, FALSE); | 158 | gtk_widget_set_sensitive (spin, FALSE); |
@@ -184,8 +186,6 @@ on_searchNamespaceComboBoxEntry_changed_fs (GtkWidget * dummy, | |||
184 | } | 186 | } |
185 | else | 187 | else |
186 | { | 188 | { |
187 | /* FIXME: may still be namespace selected -- | ||
188 | where user manually entered NS name! */ | ||
189 | gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 0); | 189 | gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 0); |
190 | gtk_widget_set_sensitive (spin, FALSE); | 190 | gtk_widget_set_sensitive (spin, FALSE); |
191 | } | 191 | } |