aboutsummaryrefslogtreecommitdiff
path: root/src/main_window_create_pseudonym.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_window_create_pseudonym.c')
-rw-r--r--src/main_window_create_pseudonym.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/main_window_create_pseudonym.c b/src/main_window_create_pseudonym.c
deleted file mode 100644
index 4224e6c4..00000000
--- a/src/main_window_create_pseudonym.c
+++ /dev/null
@@ -1,64 +0,0 @@
1/*
2 This file is part of GNUnet
3 (C) 2005, 2006, 2010 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file src/main_window_create_pseudonym.c
23 * @author Christian Grothoff
24 *
25 */
26#include "common.h"
27
28/**
29 */
30void
31GNUNET_GTK_main_menu_create_pseudonym_activate_cb (GtkWidget * dummy,
32 gpointer data)
33{
34 GtkWidget *ad;
35 GtkBuilder *builder;
36 const char *name;
37 struct GNUNET_FS_Namespace *ns;
38
39 builder = GNUNET_GTK_get_new_builder ("create_namespace_dialog.glade");
40 if (builder == NULL)
41 {
42 GNUNET_break (0);
43 return;
44 }
45 ad = GTK_WIDGET (gtk_builder_get_object (builder,
46 "GNUNET_GTK_create_namespace_dialog"));
47 if (GTK_RESPONSE_OK != gtk_dialog_run (GTK_DIALOG (ad)))
48 {
49 gtk_widget_destroy (ad);
50 g_object_unref (G_OBJECT (builder));
51 return;
52 }
53 name = gtk_entry_get_text (GTK_ENTRY (gtk_builder_get_object (builder,
54 "GNUNET_GTK_create_namespace_name_entry")));
55 /* FIXME: show busy dialog while doing key creation */
56 ns = GNUNET_FS_namespace_create (GNUNET_GTK_get_fs_handle (),
57 name);
58 GNUNET_FS_namespace_delete (ns, GNUNET_NO);
59 gtk_widget_destroy (ad);
60 g_object_unref (G_OBJECT (builder));
61}
62
63
64/* end of main_window_create_pseudonym.c */