diff options
Diffstat (limited to 'src/plugins/fs/namespace_create.c')
-rw-r--r-- | src/plugins/fs/namespace_create.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/fs/namespace_create.c b/src/plugins/fs/namespace_create.c index 4d92c8da..f4713694 100644 --- a/src/plugins/fs/namespace_create.c +++ b/src/plugins/fs/namespace_create.c | |||
@@ -167,17 +167,17 @@ create_namespace_clicked_fs (GtkWidget * dummy1, GtkWidget * dummy2) | |||
167 | GtkWidget *nameLine; | 167 | GtkWidget *nameLine; |
168 | GtkWidget *dialog; | 168 | GtkWidget *dialog; |
169 | GtkWidget *spin; | 169 | GtkWidget *spin; |
170 | struct ECRS_MetaData *meta; | 170 | struct GNUNET_ECRS_MetaData *meta; |
171 | struct ECRS_URI *keywordURI; | 171 | struct GNUNET_ECRS_URI *keywordURI; |
172 | struct ECRS_URI *root; | 172 | struct GNUNET_ECRS_URI *root; |
173 | GNUNET_HashCode namespaceId; | 173 | GNUNET_HashCode namespaceId; |
174 | GNUNET_HashCode rootEntry; | 174 | GNUNET_HashCode rootEntry; |
175 | 175 | ||
176 | DEBUG_BEGIN (); | 176 | DEBUG_BEGIN (); |
177 | metaXML | 177 | metaXML |
178 | = glade_xml_new (getGladeFileName (), | 178 | = glade_xml_new (GNUNET_GTK_get_glade_filename (), |
179 | "namespaceMetaDataDialog", PACKAGE_NAME); | 179 | "namespaceMetaDataDialog", PACKAGNUNET_GENAME); |
180 | connectGladeWithPlugins (metaXML); | 180 | GNUNET_GTK_connect_glade_with_plugins (metaXML); |
181 | dialog = glade_xml_get_widget (metaXML, "namespaceMetaDataDialog"); | 181 | dialog = glade_xml_get_widget (metaXML, "namespaceMetaDataDialog"); |
182 | createMetaDataListTreeView (metaXML, | 182 | createMetaDataListTreeView (metaXML, |
183 | "namespaceMetaDataDialogMetaDataList", | 183 | "namespaceMetaDataDialogMetaDataList", |
@@ -217,14 +217,14 @@ create_namespace_clicked_fs (GtkWidget * dummy1, GtkWidget * dummy2) | |||
217 | GNUNET_hash (namespaceName, strlen (namespaceName), &rootEntry); | 217 | GNUNET_hash (namespaceName, strlen (namespaceName), &rootEntry); |
218 | nameLine = glade_xml_get_widget (metaXML, "namespaceNameEntry"); | 218 | nameLine = glade_xml_get_widget (metaXML, "namespaceNameEntry"); |
219 | namespaceName = gtk_entry_get_text (GTK_ENTRY (nameLine)); | 219 | namespaceName = gtk_entry_get_text (GTK_ENTRY (nameLine)); |
220 | root = NS_createNamespace (ectx, cfg, gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spin)), 1000, /* FIXME: priority */ | 220 | root = GNUNET_NS_namespace_create (ectx, cfg, gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spin)), 1000, /* FIXME: priority */ |
221 | GNUNET_get_time () + 2 * GNUNET_CRON_YEARS, /* FIXME: expiration */ | 221 | GNUNET_get_time () + 2 * GNUNET_CRON_YEARS, /* FIXME: expiration */ |
222 | namespaceName, meta, keywordURI, &rootEntry); | 222 | namespaceName, meta, keywordURI, &rootEntry); |
223 | if (root != NULL) | 223 | if (root != NULL) |
224 | { | 224 | { |
225 | ECRS_getNamespaceId (root, &namespaceId); | 225 | GNUNET_ECRS_uri_get_namespace_from_sks (root, &namespaceId); |
226 | addTabForNamespace (NULL, namespaceName, &namespaceId, meta, 0); | 226 | addTabForNamespace (NULL, namespaceName, &namespaceId, meta, 0); |
227 | ECRS_freeUri (root); | 227 | GNUNET_ECRS_uri_destroy (root); |
228 | } | 228 | } |
229 | else | 229 | else |
230 | { | 230 | { |
@@ -237,7 +237,7 @@ create_namespace_clicked_fs (GtkWidget * dummy1, GtkWidget * dummy2) | |||
237 | dialog = gtk_message_dialog_new | 237 | dialog = gtk_message_dialog_new |
238 | (NULL, | 238 | (NULL, |
239 | GTK_DIALOG_MODAL, | 239 | GTK_DIALOG_MODAL, |
240 | GTK_MESSAGE_ERROR, | 240 | GTK_MESSAGNUNET_GEERROR, |
241 | GTK_BUTTONS_CLOSE, | 241 | GTK_BUTTONS_CLOSE, |
242 | _("Failed to create namespace `%s'." | 242 | _("Failed to create namespace `%s'." |
243 | "Consult logs, most likely error is" | 243 | "Consult logs, most likely error is" |
@@ -246,8 +246,8 @@ create_namespace_clicked_fs (GtkWidget * dummy1, GtkWidget * dummy2) | |||
246 | gtk_dialog_run (GTK_DIALOG (dialog)); | 246 | gtk_dialog_run (GTK_DIALOG (dialog)); |
247 | gtk_widget_destroy (dialog); | 247 | gtk_widget_destroy (dialog); |
248 | } | 248 | } |
249 | ECRS_freeMetaData (meta); | 249 | GNUNET_ECRS_meta_data_destroy (meta); |
250 | ECRS_freeUri (keywordURI); | 250 | GNUNET_ECRS_uri_destroy (keywordURI); |
251 | } | 251 | } |
252 | gtk_widget_destroy (dialog); | 252 | gtk_widget_destroy (dialog); |
253 | UNREF (metaXML); | 253 | UNREF (metaXML); |