diff options
Diffstat (limited to 'src/lib/about.c')
-rw-r--r-- | src/lib/about.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/lib/about.c b/src/lib/about.c new file mode 100644 index 00000000..e75e11dc --- /dev/null +++ b/src/lib/about.c | |||
@@ -0,0 +1,53 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet | ||
3 | (C) 2005, 2006, 2010, 2011 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/lib/about.c | ||
23 | * @brief code to display an about dialog | ||
24 | * @author Christian Grothoff | ||
25 | * @author Igor Wronsky | ||
26 | */ | ||
27 | #include "gnunet_gtk.h" | ||
28 | |||
29 | /** | ||
30 | * This displays an about dialog. | ||
31 | * | ||
32 | * @param dialogfile name of the glade file containing the dialog | ||
33 | * @param dialogname name of the about dialog in the file | ||
34 | */ | ||
35 | void | ||
36 | GNUNET_GTK_display_about (const char *dialogfile, | ||
37 | const char *dialogname) | ||
38 | { | ||
39 | GtkBuilder *builder; | ||
40 | GtkWidget *ad; | ||
41 | |||
42 | builder = GNUNET_GTK_get_new_builder (dialogfile); | ||
43 | if (builder == NULL) | ||
44 | return; | ||
45 | ad = GTK_WIDGET (gtk_builder_get_object (builder, | ||
46 | dialogname)); | ||
47 | gtk_dialog_run (GTK_DIALOG (ad)); | ||
48 | gtk_widget_destroy (ad); | ||
49 | g_object_unref (G_OBJECT (builder)); | ||
50 | } | ||
51 | |||
52 | |||
53 | /* end of about.c */ | ||