aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2005-08-22 07:37:27 +0000
committerChristian Grothoff <christian@grothoff.org>2005-08-22 07:37:27 +0000
commit6e08a198da110de2d65f3ee4b0d25581b90eec60 (patch)
tree7c895184d9da480e7ea9d614cbf25c6e036c57cb
parent9534fdcc6a20df1c55e40948aac211964ce02b79 (diff)
downloadgnunet-gtk-6e08a198da110de2d65f3ee4b0d25581b90eec60.tar.gz
gnunet-gtk-6e08a198da110de2d65f3ee4b0d25581b90eec60.zip
update
-rw-r--r--TODO5
-rw-r--r--src/common/helper.c5
-rw-r--r--src/core/main.c3
-rw-r--r--src/include/gnunetgtk_common.h2
4 files changed, 11 insertions, 4 deletions
diff --git a/TODO b/TODO
index b1e4c32e..f1d864c7 100644
--- a/TODO
+++ b/TODO
@@ -3,11 +3,12 @@
31) on_namespaceInsertButton_clicked somehow is 31) 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)
61) update namespace content (not implemented) 62) update namespace content (not implemented)
72) various minor memory leaks (see FIXME in search.c, 73) 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
10Later (0.7.1+): 10Later (0.7.1+):
110) better file-name selection, in particular for downloads from directories
111) create directory from known file IDs [ medium ] 121) create directory from known file IDs [ medium ]
122) disable inactive buttons (if no search/download 132) 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
411void doneGNUnetGTKCommon() { 411void 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
449void 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
91static void * shutdownCode(void * unused) { 91static 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
30void initGNUnetGTKCommon(void); 30void initGNUnetGTKCommon(void);
31 31
32void shutdownPlugins(void);
33
32void doneGNUnetGTKCommon(void); 34void doneGNUnetGTKCommon(void);
33 35
34/** 36/**