diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-07-29 18:02:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-07-29 18:02:36 +0000 |
commit | ea031bfd782151a584ee2af07db201b693d97d2f (patch) | |
tree | 49b6a2053f5ac94d0c3addc29b4b74c30fd906cf /src/plugins/fs/search.c | |
parent | df9ac9bd08bb8507bd6e416f2f509f37c7113a90 (diff) | |
download | gnunet-gtk-ea031bfd782151a584ee2af07db201b693d97d2f.tar.gz gnunet-gtk-ea031bfd782151a584ee2af07db201b693d97d2f.zip |
fixes
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r-- | src/plugins/fs/search.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index 73c5052f..deff31da 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -76,10 +76,21 @@ updateResultsCount (SearchList * searchContext) | |||
76 | searchContext->searchString, | 76 | searchContext->searchString, |
77 | strlen (searchContext->searchString) > 20 ? "..." : "", | 77 | strlen (searchContext->searchString) > 20 ? "..." : "", |
78 | searchContext->resultsReceived); | 78 | searchContext->resultsReceived); |
79 | if (new_title == NULL) | ||
80 | new_title = | ||
81 | g_strdup_printf (_("invalid characters (%u)"), | ||
82 | searchContext->resultsReceived); | ||
79 | label = GTK_LABEL (glade_xml_get_widget (searchContext->labelXML, | 83 | label = GTK_LABEL (glade_xml_get_widget (searchContext->labelXML, |
80 | "searchTabLabel")); | 84 | "searchTabLabel")); |
81 | gtk_label_set (label, new_title); | 85 | if (new_title != NULL) |
82 | GNUNET_free (new_title); | 86 | { |
87 | gtk_label_set (label, new_title); | ||
88 | GNUNET_free (new_title); | ||
89 | } | ||
90 | else | ||
91 | { | ||
92 | gtk_label_set (label, _("Internal error")); | ||
93 | } | ||
83 | } | 94 | } |
84 | 95 | ||
85 | static GdkPixbuf * | 96 | static GdkPixbuf * |
@@ -1154,6 +1165,11 @@ on_fssearchbutton_clicked_fs (gpointer dummy2, GtkWidget * searchButton) | |||
1154 | if (nsName != NULL) | 1165 | if (nsName != NULL) |
1155 | free (nsName); | 1166 | free (nsName); |
1156 | } | 1167 | } |
1168 | else | ||
1169 | { | ||
1170 | /* FIXME: may still be namespace-search | ||
1171 | -- where user manually entered NS name*/ | ||
1172 | } | ||
1157 | if (fsss.uri == NULL) | 1173 | if (fsss.uri == NULL) |
1158 | fsss.uri = GNUNET_ECRS_keyword_string_to_uri (ectx, searchString); | 1174 | fsss.uri = GNUNET_ECRS_keyword_string_to_uri (ectx, searchString); |
1159 | if (fsss.uri == NULL) | 1175 | if (fsss.uri == NULL) |