1 /* gdict-about.c - GtkAboutDialog wrapper
2 *
3 * This file is part of GNOME Dictionary
4 *
5 * Copyright (C) 2005 Emmanuele Bassi
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "config.h"
22
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26
27 #include <glib/gi18n.h>
28 #include <gdk-pixbuf/gdk-pixbuf.h>
29
30 #include "gdict-about.h"
31 #include "gdict-common.h"
32
33 void
gdict_show_about_dialog(GtkWidget * parent)34 gdict_show_about_dialog (GtkWidget *parent)
35 {
36 const gchar *authors[] = {
37 "Mike Hughes <mfh@psilord.com>",
38 "Spiros Papadimitriou <spapadim+@cs.cmu.edu>",
39 "Bradford Hovinen <hovinen@udel.edu>",
40 "Vincent Noel <vnoel@cox.net>",
41 "Emmanuele Bassi <ebassi@gmail.com>",
42 NULL
43 };
44
45 const gchar *documenters[] = {
46 "Sun GNOME Documentation Team <gdocteam@sun.com>",
47 "John Fleck <jfleck@inkstain.net>",
48 "Emmanuele Bassi <ebassi@gmail.com>",
49 NULL
50 };
51
52 const gchar *translator_credits = _("translator-credits");
53 const gchar *copyright = "Copyright \xc2\xa9 2005 Emmanuele Bassi";
54 const gchar *comments = _("Look up words in dictionaries");
55
56 g_return_if_fail (GTK_IS_WINDOW (parent));
57
58 gtk_show_about_dialog (GTK_WINDOW (parent),
59 "program-name",
60 gdict_is_devel_build ()
61 ? _("Dictionary (development build)")
62 : _("Dictionary"),
63 "version", VERSION,
64 "copyright", copyright,
65 "comments", comments,
66 "authors", authors,
67 "documenters", documenters,
68 "translator-credits", translator_credits,
69 "logo-icon-name", APPLICATION_ID,
70 "license-type", GTK_LICENSE_GPL_2_0,
71 NULL);
72 }
73