aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/namespace.c')
-rw-r--r--src/plugins/fs/namespace.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c
index 0449e3b0..f7a12816 100644
--- a/src/plugins/fs/namespace.c
+++ b/src/plugins/fs/namespace.c
@@ -410,14 +410,12 @@ addTabForNamespace (void *unused,
410 GtkWidget *label; 410 GtkWidget *label;
411 GtkWidget *notebook; 411 GtkWidget *notebook;
412 GtkWidget *del_menu; 412 GtkWidget *del_menu;
413 char * namespaceName; 413 char *namespaceName;
414 414
415 if (GNUNET_OK != 415 if (GNUNET_OK != GNUNET_ECRS_namespace_test_exists (NULL, cfg, namespaceId))
416 GNUNET_ECRS_namespace_test_exists (NULL, cfg,
417 namespaceId))
418 return GNUNET_OK; 416 return GNUNET_OK;
419 GNUNET_GTK_DEBUG_BEGIN (); 417 GNUNET_GTK_DEBUG_BEGIN ();
420 namespaceName = GNUNET_PSEUDO_id_to_name(ectx, cfg, namespaceId); 418 namespaceName = GNUNET_PSEUDO_id_to_name (ectx, cfg, namespaceId);
421 label = gtk_label_new (namespaceName); 419 label = gtk_label_new (namespaceName);
422 list = GNUNET_malloc (sizeof (NamespaceList)); 420 list = GNUNET_malloc (sizeof (NamespaceList));
423 list->name = GNUNET_strdup (namespaceName); 421 list->name = GNUNET_strdup (namespaceName);
@@ -443,7 +441,7 @@ addTabForNamespace (void *unused,
443 glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), 441 glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (),
444 "namespaceDelete"); 442 "namespaceDelete");
445 gtk_widget_set_sensitive (del_menu, TRUE); 443 gtk_widget_set_sensitive (del_menu, TRUE);
446 GNUNET_free(namespaceName); 444 GNUNET_free (namespaceName);
447 return GNUNET_OK; 445 return GNUNET_OK;
448} 446}
449 447
@@ -994,8 +992,8 @@ fs_namespace_start ()
994 TRUE); 992 TRUE);
995 GNUNET_URITRACK_register_track_callback (ectx, cfg, &updateViewSave, NULL); 993 GNUNET_URITRACK_register_track_callback (ectx, cfg, &updateViewSave, NULL);
996 GNUNET_PSEUDO_list_all (ectx, cfg, &addTabForNamespace, NULL); 994 GNUNET_PSEUDO_list_all (ectx, cfg, &addTabForNamespace, NULL);
997 GNUNET_PSEUDO_register_discovery_callback (ectx, cfg, &namespace_discovered_cb, 995 GNUNET_PSEUDO_register_discovery_callback (ectx, cfg,
998 NULL); 996 &namespace_discovered_cb, NULL);
999 GNUNET_GTK_DEBUG_END (); 997 GNUNET_GTK_DEBUG_END ();
1000} 998}
1001 999
@@ -1003,7 +1001,8 @@ fs_namespace_start ()
1003void 1001void
1004fs_namespace_stop () 1002fs_namespace_stop ()
1005{ 1003{
1006 GNUNET_PSEUDO_unregister_discovery_callback (&namespace_discovered_cb, NULL); 1004 GNUNET_PSEUDO_unregister_discovery_callback (&namespace_discovered_cb,
1005 NULL);
1007 while (head != NULL) 1006 while (head != NULL)
1008 frame_destroy (head->treeview); 1007 frame_destroy (head->treeview);
1009 GNUNET_URITRACK_unregister_track_callback (&updateViewSave, NULL); 1008 GNUNET_URITRACK_unregister_track_callback (&updateViewSave, NULL);