aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2005-07-09 12:05:47 +0000
committerChristian Grothoff <christian@grothoff.org>2005-07-09 12:05:47 +0000
commitaa61c30d54a5d7828acc1653c9f51c5e3a9f7234 (patch)
tree29d670309c0a86762786d42c36bbf06631b0a7f0
parent41e717fa43b4ba75f27be3cf58cbdeccc781b906 (diff)
downloadgnunet-gtk-aa61c30d54a5d7828acc1653c9f51c5e3a9f7234.tar.gz
gnunet-gtk-aa61c30d54a5d7828acc1653c9f51c5e3a9f7234.zip
fix
-rw-r--r--src/common/helper.c9
-rw-r--r--src/plugins/fs/upload.c1
2 files changed, 7 insertions, 3 deletions
diff --git a/src/common/helper.c b/src/common/helper.c
index c8065716..255f9f3b 100644
--- a/src/common/helper.c
+++ b/src/common/helper.c
@@ -254,9 +254,11 @@ static void connector(const gchar *handler_name,
254 GObject *connect_object, 254 GObject *connect_object,
255 gboolean after, 255 gboolean after,
256 gpointer user_data) { 256 gpointer user_data) {
257 Plugin * plug = user_data; 257 GladeXML * xml = user_data;
258 Plugin * plug;
258 void * method; 259 void * method;
259 260
261 plug = plugin;
260 method = NULL; 262 method = NULL;
261 while (plug != NULL) { 263 while (plug != NULL) {
262 method = trybindDynamicMethod(plug->library, 264 method = trybindDynamicMethod(plug->library,
@@ -272,14 +274,15 @@ static void connector(const gchar *handler_name,
272 handler_name); 274 handler_name);
273 return; 275 return;
274 } 276 }
275 glade_xml_signal_connect(getMainXML(), 277 glade_xml_signal_connect(xml,
276 handler_name, 278 handler_name,
277 (GCallback) method); 279 (GCallback) method);
278} 280}
279 281
280void connectGladeWithPlugins(GladeXML * xml) { 282void connectGladeWithPlugins(GladeXML * xml) {
281 glade_xml_signal_autoconnect_full(xml, 283 glade_xml_signal_autoconnect_full(xml,
282 &connector, plugin); 284 &connector,
285 xml);
283} 286}
284 287
285typedef void (*PlainCall)(); 288typedef void (*PlainCall)();
diff --git a/src/plugins/fs/upload.c b/src/plugins/fs/upload.c
index a2618809..20792968 100644
--- a/src/plugins/fs/upload.c
+++ b/src/plugins/fs/upload.c
@@ -250,6 +250,7 @@ static int publishMetaData(EXTRACTOR_KeywordType type,
250 GtkTreeIter iter; 250 GtkTreeIter iter;
251 251
252 stype = EXTRACTOR_getKeywordTypeAsString(type); 252 stype = EXTRACTOR_getKeywordTypeAsString(type);
253 GNUNET_ASSERT(stype != NULL);
253 gtk_list_store_append(store, 254 gtk_list_store_append(store,
254 &iter); 255 &iter);
255 gtk_list_store_set(store, 256 gtk_list_store_set(store,