]> git.0d.be Git - empathy.git/blob - src/empathy-about-dialog.c
empathy-about-dialog: update the FSF address
[empathy.git] / src / empathy-about-dialog.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2006-2007 Imendio AB
4  * Copyright (C) 2007-2008 Collabora Ltd.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19  * Boston, MA  02110-1301  USA
20  *
21  * Authors: Martyn Russell <martyn@imendio.com>
22  *          Xavier Claessens <xclaesse@gmail.com>
23  */
24
25 #include <config.h>
26
27 #include <glib/gi18n.h>
28 #include <gtk/gtkaboutdialog.h>
29 #include <gtk/gtksizegroup.h>
30
31 #include <libempathy-gtk/empathy-ui-utils.h>
32
33 #include "empathy-about-dialog.h"
34
35 #define WEB_SITE "http://live.gnome.org/Empathy"
36
37 static void about_dialog_activate_link_cb (GtkAboutDialog  *about,
38                                            const gchar     *link,
39                                            gpointer         data);
40
41 static const char *authors[] = {
42         "Alban Crequy",
43         "Andreas Lööw",
44         "Aurelien Naldi",
45         "Bastien Nocera",
46         "Christoffer Olsen",
47         "Elliot Fairweather",
48         "Frederic Crozat",
49         "Frederic Peters",
50         "Geert-Jan Van den Bogaerde",
51         "Guillaume Desmottes",
52         "Johan Hammar",
53         "Jonatan Magnusson",
54         "Jonny Lamb",
55         "Jordi Mallach",
56         "Kim Andersen",
57         "Marco Barisione",
58         "Martyn Russell <martyn@gnome.org>",
59         "Mikael Hallendal <micke@imendio.com>",
60         "Mike Gratton",
61         "Richard Hult <richard@imendio.com>",
62         "Ross Burton",
63         "Sjoerd Simons",
64         "Thomas Reynolds",
65         "Vincent Untz",
66         "Xavier Claessens <xclaesse@gmail.com>",
67         NULL
68 };
69
70 static const char *documenters[] = {
71         "Milo Casagrande",
72         "Seth Dudenhofer",
73         NULL
74 };
75
76 static const char *artists[] = {
77         "Andreas Nilsson <nisses.mail@home.se>",
78         "Vinicius Depizzol <vdepizzol@gmail.com>",
79         NULL
80 };
81
82 static const char *license[] = {
83         N_("Empathy is free software; you can redistribute it and/or modify "
84            "it under the terms of the GNU General Public License as published by "
85            "the Free Software Foundation; either version 2 of the License, or "
86            "(at your option) any later version."),
87         N_("Empathy is distributed in the hope that it will be useful, "
88            "but WITHOUT ANY WARRANTY; without even the implied warranty of "
89            "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
90            "GNU General Public License for more details."),
91         N_("You should have received a copy of the GNU General Public License "
92            "along with Empathy; if not, write to the Free Software Foundation, Inc., "
93            "51 Franklin Street, Fifth Floor, Boston, MA 02110-130159 USA")
94 };
95
96 static void
97 about_dialog_activate_link_cb (GtkAboutDialog *about,
98                                const gchar    *link,
99                                gpointer        data)
100 {
101         empathy_url_show (GTK_WIDGET (about), link);
102 }
103
104 void
105 empathy_about_dialog_new (GtkWindow *parent)
106 {
107         gchar *license_trans;
108
109         gtk_about_dialog_set_url_hook (about_dialog_activate_link_cb, NULL, NULL);
110
111         license_trans = g_strconcat (_(license[0]), "\n\n",
112                                      _(license[1]), "\n\n",
113                                      _(license[2]), "\n\n",
114                                      NULL);
115
116         gtk_show_about_dialog (parent,
117                                "artists", artists,
118                                "authors", authors,
119                                "comments", _("An Instant Messaging client for GNOME"),
120                                "license", license_trans,
121                                "wrap-license", TRUE,
122                                "copyright", "Imendio AB 2002-2007\nCollabora Ltd 2007-2008",
123                                "documenters", documenters,
124                                "logo-icon-name", "empathy",
125                                "translator-credits", _("translator-credits"),
126                                "version", PACKAGE_VERSION,
127                                "website", WEB_SITE,
128                                NULL);
129
130         g_free (license_trans);
131 }
132
133