aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2005-11-14 10:16:53 +0000
committerChristian Grothoff <christian@grothoff.org>2005-11-14 10:16:53 +0000
commit0b86783abd8829f3fad275dc4d702d1e05e79af9 (patch)
treedb34fac0db93d4b1fc217b4897e27a96a7f49a54
parent0bb7ba0e796e9f2fde6498fb15fda58fd5d67aba (diff)
downloadgnunet-gtk-0b86783abd8829f3fad275dc4d702d1e05e79af9.tar.gz
gnunet-gtk-0b86783abd8829f3fad275dc4d702d1e05e79af9.zip
fixing bug 935
-rw-r--r--po/Makefile.in2
-rw-r--r--src/plugins/fs/meta.c2
-rw-r--r--src/plugins/fs/search.c12
3 files changed, 12 insertions, 4 deletions
diff --git a/po/Makefile.in b/po/Makefile.in
index 60fcf9a0..9199d5d1 100644
--- a/po/Makefile.in
+++ b/po/Makefile.in
@@ -20,7 +20,7 @@ srcdir = .
20top_srcdir = .. 20top_srcdir = ..
21 21
22 22
23prefix = /usr/local 23prefix = /home/grothoff/
24exec_prefix = ${prefix} 24exec_prefix = ${prefix}
25datadir = ${prefix}/share 25datadir = ${prefix}/share
26localedir = $(datadir)/locale 26localedir = $(datadir)/locale
diff --git a/src/plugins/fs/meta.c b/src/plugins/fs/meta.c
index 50d41729..fd216aca 100644
--- a/src/plugins/fs/meta.c
+++ b/src/plugins/fs/meta.c
@@ -332,7 +332,7 @@ struct ECRS_MetaData * getMetaDataFromList(GladeXML * xml,
332 NULL)) { 332 NULL)) {
333 char * binary; 333 char * binary;
334 334
335 binary = EXTRACTOR_binaryEncode(thumb, 335 binary = EXTRACTOR_binaryEncode((const unsigned char*)thumb,
336 length); 336 length);
337 free(thumb); 337 free(thumb);
338 ECRS_addToMetaData(meta, 338 ECRS_addToMetaData(meta,
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index 9de0a2cc..b4697500 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -435,6 +435,13 @@ void displaySearchResult(const ECRS_FileInfo * info,
435 BREAK(); 435 BREAK();
436} 436}
437 437
438static void * stopSearch(void * u) {
439 struct ECRS_URI * uri = u;
440 FSUI_stopSearch(ctx,
441 uri);
442 return NULL;
443}
444
438void on_closeSearchButton_clicked(GtkWidget * searchPage, 445void on_closeSearchButton_clicked(GtkWidget * searchPage,
439 GtkWidget * closeButton) { 446 GtkWidget * closeButton) {
440 GtkWidget * notebook; 447 GtkWidget * notebook;
@@ -459,8 +466,9 @@ void on_closeSearchButton_clicked(GtkWidget * searchPage,
459 return; 466 return;
460 467
461 uri = list->uri; 468 uri = list->uri;
462 FSUI_stopSearch(ctx, 469
463 uri); 470 run_with_save_calls(&stopSearch,
471 uri);
464 if (prev == NULL) 472 if (prev == NULL)
465 head = list->next; 473 head = list->next;
466 else 474 else