]> git.0d.be Git - empathy.git/blob - src/empathy-about-dialog.c
Fix includes
[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., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, 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 #include <glade/glade.h>
31
32 #include <libempathy-gtk/empathy-ui-utils.h>
33
34 #include "empathy-about-dialog.h"
35
36 #define WEB_SITE "http://live.gnome.org/Empathy"
37
38 static void about_dialog_activate_link_cb (GtkAboutDialog  *about,
39                                            const gchar     *link,
40                                            gpointer         data);
41
42 static const char *authors[] = {
43         "Mikael Hallendal",
44         "Richard Hult",
45         "Martyn Russell",
46         "Geert-Jan Van den Bogaerde",
47         "Kevin Dougherty",
48         "Eitan Isaacson",
49         "Xavier Claessens",
50         NULL
51 };
52
53 static const char *documenters[] = {
54         NULL
55 };
56
57 static const char *artists[] = {
58         "Andreas Nilsson <nisses.mail@home.se>",
59         "Vinicius Depizzol <vdepizzol@gmail.com>",
60         NULL
61 };
62
63 static const char *license[] = {
64         N_("Empathy is free software; you can redistribute it and/or modify "
65            "it under the terms of the GNU General Public License as published by "
66            "the Free Software Foundation; either version 2 of the License, or "
67            "(at your option) any later version."),
68         N_("Empathy is distributed in the hope that it will be useful, "
69            "but WITHOUT ANY WARRANTY; without even the implied warranty of "
70            "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
71            "GNU General Public License for more details."),
72         N_("You should have received a copy of the GNU General Public License "
73            "along with Empathy; if not, write to the Free Software Foundation, Inc., "
74            "51 Franklin Street, Fifth Floor, Boston, MA 02110-130159 USA")
75 };
76
77 static void
78 about_dialog_activate_link_cb (GtkAboutDialog *about,
79                                const gchar    *link,
80                                gpointer        data)
81 {
82         empathy_url_show (link);
83 }
84
85 void
86 empathy_about_dialog_new (GtkWindow *parent)
87 {
88         gchar *license_trans;
89
90         gtk_about_dialog_set_url_hook (about_dialog_activate_link_cb, NULL, NULL);
91
92         license_trans = g_strconcat (_(license[0]), "\n\n",
93                                      _(license[1]), "\n\n",
94                                      _(license[2]), "\n\n",
95                                      NULL);
96
97         gtk_show_about_dialog (parent,
98                                "artists", artists,
99                                "authors", authors,
100                                "comments", _("An Instant Messaging client for GNOME"),
101                                "license", license_trans,
102                                "wrap-license", TRUE,
103                                "copyright", "Imendio AB 2002-2007\nCollabora Ltd 2007",
104                                "documenters", documenters,
105                                "logo-icon-name", "empathy",
106                                "translator-credits", _("translator-credits"),
107                                "version", PACKAGE_VERSION,
108                                "website", WEB_SITE,
109                                NULL);
110
111         g_free (license_trans);
112 }
113
114