diff options
author | Christian Grothoff <christian@grothoff.org> | 2006-12-14 23:49:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2006-12-14 23:49:37 +0000 |
commit | f80fffbb5bd11b300cc3f985c568016721ec1112 (patch) | |
tree | 5dbdfe446eef379697f59ba457f11b70eedeb0a7 | |
parent | 0d5ee3707d23c71882ad43c4bb3f77fc59bde3c3 (diff) | |
download | gnunet-gtk-f80fffbb5bd11b300cc3f985c568016721ec1112.tar.gz gnunet-gtk-f80fffbb5bd11b300cc3f985c568016721ec1112.zip |
fix
-rw-r--r-- | src/plugins/fs/collection.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/plugins/fs/collection.c b/src/plugins/fs/collection.c index 681606a2..efcb1b98 100644 --- a/src/plugins/fs/collection.c +++ b/src/plugins/fs/collection.c | |||
@@ -106,9 +106,7 @@ void createCollection_clicked_fs(GtkWidget * dummy1, | |||
106 | collectionName | 106 | collectionName |
107 | = gtk_entry_get_text(GTK_ENTRY(nameLine)); | 107 | = gtk_entry_get_text(GTK_ENTRY(nameLine)); |
108 | root = NULL; | 108 | root = NULL; |
109 | if (OK == CO_startCollection(ectx, | 109 | if (OK == CO_startCollection(gtk_spin_button_get_value_as_int |
110 | cfg, | ||
111 | gtk_spin_button_get_value_as_int | ||
112 | (GTK_SPIN_BUTTON(spin)), | 110 | (GTK_SPIN_BUTTON(spin)), |
113 | 1000, /* priority */ | 111 | 1000, /* priority */ |
114 | updateInterval, | 112 | updateInterval, |
@@ -144,8 +142,7 @@ void deleteCollection_clicked_fs(GtkWidget * dummy1, | |||
144 | GtkWidget * dummy2) { | 142 | GtkWidget * dummy2) { |
145 | GtkWidget * w; | 143 | GtkWidget * w; |
146 | 144 | ||
147 | if (OK == CO_stopCollection(ectx, | 145 | if (OK == CO_stopCollection()) { |
148 | cfg)) { | ||
149 | w = glade_xml_get_widget(getMainXML(), | 146 | w = glade_xml_get_widget(getMainXML(), |
150 | "createCollection"); | 147 | "createCollection"); |
151 | gtk_widget_set_sensitive(w, TRUE); | 148 | gtk_widget_set_sensitive(w, TRUE); |
@@ -162,12 +159,14 @@ void deleteCollection_clicked_fs(GtkWidget * dummy1, | |||
162 | 159 | ||
163 | void fs_collection_start() { | 160 | void fs_collection_start() { |
164 | GtkWidget * w; | 161 | GtkWidget * w; |
162 | char * h; | ||
165 | 163 | ||
166 | if (NULL != CO_getCollection(ectx, | 164 | h = CO_getCollection(); |
167 | cfg)) | 165 | if (NULL != h) { |
168 | w = glade_xml_get_widget(getMainXML(), | 166 | w = glade_xml_get_widget(getMainXML(), |
169 | "createCollection"); | 167 | "createCollection"); |
170 | else | 168 | FREE(h); |
169 | } else | ||
171 | w = glade_xml_get_widget(getMainXML(), | 170 | w = glade_xml_get_widget(getMainXML(), |
172 | "deleteCollection"); | 171 | "deleteCollection"); |
173 | gtk_widget_set_sensitive(w, FALSE); | 172 | gtk_widget_set_sensitive(w, FALSE); |