diff options
author | Christian Grothoff <christian@grothoff.org> | 2005-11-14 10:16:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2005-11-14 10:16:53 +0000 |
commit | 0b86783abd8829f3fad275dc4d702d1e05e79af9 (patch) | |
tree | db34fac0db93d4b1fc217b4897e27a96a7f49a54 | |
parent | 0bb7ba0e796e9f2fde6498fb15fda58fd5d67aba (diff) | |
download | gnunet-gtk-0b86783abd8829f3fad275dc4d702d1e05e79af9.tar.gz gnunet-gtk-0b86783abd8829f3fad275dc4d702d1e05e79af9.zip |
fixing bug 935
-rw-r--r-- | po/Makefile.in | 2 | ||||
-rw-r--r-- | src/plugins/fs/meta.c | 2 | ||||
-rw-r--r-- | src/plugins/fs/search.c | 12 |
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 = . | |||
20 | top_srcdir = .. | 20 | top_srcdir = .. |
21 | 21 | ||
22 | 22 | ||
23 | prefix = /usr/local | 23 | prefix = /home/grothoff/ |
24 | exec_prefix = ${prefix} | 24 | exec_prefix = ${prefix} |
25 | datadir = ${prefix}/share | 25 | datadir = ${prefix}/share |
26 | localedir = $(datadir)/locale | 26 | localedir = $(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 | ||
438 | static void * stopSearch(void * u) { | ||
439 | struct ECRS_URI * uri = u; | ||
440 | FSUI_stopSearch(ctx, | ||
441 | uri); | ||
442 | return NULL; | ||
443 | } | ||
444 | |||
438 | void on_closeSearchButton_clicked(GtkWidget * searchPage, | 445 | void 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 |