diff options
author | Christian Grothoff <christian@grothoff.org> | 2005-08-22 07:37:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2005-08-22 07:37:27 +0000 |
commit | 6e08a198da110de2d65f3ee4b0d25581b90eec60 (patch) | |
tree | 7c895184d9da480e7ea9d614cbf25c6e036c57cb | |
parent | 9534fdcc6a20df1c55e40948aac211964ce02b79 (diff) | |
download | gnunet-gtk-6e08a198da110de2d65f3ee4b0d25581b90eec60.tar.gz gnunet-gtk-6e08a198da110de2d65f3ee4b0d25581b90eec60.zip |
update
-rw-r--r-- | TODO | 5 | ||||
-rw-r--r-- | src/common/helper.c | 5 | ||||
-rw-r--r-- | src/core/main.c | 3 | ||||
-rw-r--r-- | src/include/gnunetgtk_common.h | 2 |
4 files changed, 11 insertions, 4 deletions
@@ -3,11 +3,12 @@ | |||
3 | 1) on_namespaceInsertButton_clicked somehow is | 3 | 1) on_namespaceInsertButton_clicked somehow is |
4 | NOT called when I click on the "Add" | 4 | NOT called when I click on the "Add" |
5 | button in the FS-advanced window (very strange) | 5 | button in the FS-advanced window (very strange) |
6 | 1) update namespace content (not implemented) | 6 | 2) update namespace content (not implemented) |
7 | 2) various minor memory leaks (see FIXME in search.c, | 7 | 3) various minor memory leaks (see FIXME in search.c, |
8 | #if 0 code in namespace.c) | 8 | #if 0 code in namespace.c) |
9 | 9 | ||
10 | Later (0.7.1+): | 10 | Later (0.7.1+): |
11 | 0) better file-name selection, in particular for downloads from directories | ||
11 | 1) create directory from known file IDs [ medium ] | 12 | 1) create directory from known file IDs [ medium ] |
12 | 2) disable inactive buttons (if no search/download | 13 | 2) disable inactive buttons (if no search/download |
13 | is selected to operate on) [ medium ] | 14 | is selected to operate on) [ medium ] |
diff --git a/src/common/helper.c b/src/common/helper.c index 8c30c777..08a0fe64 100644 --- a/src/common/helper.c +++ b/src/common/helper.c | |||
@@ -408,7 +408,7 @@ void initGNUnetGTKCommon() { | |||
408 | connectGladeWithPlugins(statusXML); | 408 | connectGladeWithPlugins(statusXML); |
409 | } | 409 | } |
410 | 410 | ||
411 | void doneGNUnetGTKCommon() { | 411 | void shutdownPlugins() { |
412 | int i; | 412 | int i; |
413 | 413 | ||
414 | /* unload the plugins */ | 414 | /* unload the plugins */ |
@@ -444,6 +444,9 @@ void doneGNUnetGTKCommon() { | |||
444 | i = pscCount; | 444 | i = pscCount; |
445 | MUTEX_UNLOCK(&sclock); | 445 | MUTEX_UNLOCK(&sclock); |
446 | } | 446 | } |
447 | } | ||
448 | |||
449 | void doneGNUnetGTKCommon() { | ||
447 | MUTEX_DESTROY(&sclock); | 450 | MUTEX_DESTROY(&sclock); |
448 | } | 451 | } |
449 | 452 | ||
diff --git a/src/core/main.c b/src/core/main.c index ca9919a5..81724cce 100644 --- a/src/core/main.c +++ b/src/core/main.c | |||
@@ -90,7 +90,7 @@ static int parseOptions(int argc, | |||
90 | 90 | ||
91 | static void * shutdownCode(void * unused) { | 91 | static void * shutdownCode(void * unused) { |
92 | stopCron(); | 92 | stopCron(); |
93 | doneGNUnetGTKCommon(); | 93 | shutdownPlugins(); |
94 | return NULL; | 94 | return NULL; |
95 | } | 95 | } |
96 | 96 | ||
@@ -130,6 +130,7 @@ int main(int argc, | |||
130 | setCustomLogProc(NULL); | 130 | setCustomLogProc(NULL); |
131 | run_with_save_calls(&shutdownCode, | 131 | run_with_save_calls(&shutdownCode, |
132 | NULL); | 132 | NULL); |
133 | doneGNUnetGTKCommon(); | ||
133 | doneUtil(); | 134 | doneUtil(); |
134 | 135 | ||
135 | return 0; | 136 | return 0; |
diff --git a/src/include/gnunetgtk_common.h b/src/include/gnunetgtk_common.h index 50cdca3f..b5f24b8d 100644 --- a/src/include/gnunetgtk_common.h +++ b/src/include/gnunetgtk_common.h | |||
@@ -29,6 +29,8 @@ | |||
29 | 29 | ||
30 | void initGNUnetGTKCommon(void); | 30 | void initGNUnetGTKCommon(void); |
31 | 31 | ||
32 | void shutdownPlugins(void); | ||
33 | |||
32 | void doneGNUnetGTKCommon(void); | 34 | void doneGNUnetGTKCommon(void); |
33 | 35 | ||
34 | /** | 36 | /** |