1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2006-2007 Imendio AB
4 * Copyright (C) 2007-2008 Collabora Ltd.
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.
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.
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
21 * Authors: Martyn Russell <martyn@imendio.com>
22 * Xavier Claessens <xclaesse@gmail.com>
27 #include <glib/gi18n.h>
28 #include <gtk/gtkaboutdialog.h>
29 #include <gtk/gtksizegroup.h>
31 #include <libempathy-gtk/empathy-ui-utils.h>
33 #include "empathy-about-dialog.h"
35 #define WEB_SITE "http://live.gnome.org/Empathy"
37 static void about_dialog_activate_link_cb (GtkAboutDialog *about,
41 static const char *authors[] = {
51 "Geert-Jan Van den Bogaerde",
52 "Guillaume Desmottes",
59 "Martyn Russell <martyn@gnome.org>",
60 "Mikael Hallendal <micke@imendio.com>",
62 "Richard Hult <richard@imendio.com>",
67 "Xavier Claessens <xclaesse@gmail.com>",
71 static const char *documenters[] = {
77 static const char *artists[] = {
78 "Andreas Nilsson <nisses.mail@home.se>",
79 "Vinicius Depizzol <vdepizzol@gmail.com>",
83 static const char *license[] = {
84 N_("Empathy is free software; you can redistribute it and/or modify "
85 "it under the terms of the GNU General Public License as published by "
86 "the Free Software Foundation; either version 2 of the License, or "
87 "(at your option) any later version."),
88 N_("Empathy is distributed in the hope that it will be useful, "
89 "but WITHOUT ANY WARRANTY; without even the implied warranty of "
90 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "
91 "GNU General Public License for more details."),
92 N_("You should have received a copy of the GNU General Public License "
93 "along with Empathy; if not, write to the Free Software Foundation, Inc., "
94 "51 Franklin Street, Fifth Floor, Boston, MA 02110-130159 USA")
98 about_dialog_activate_link_cb (GtkAboutDialog *about,
102 empathy_url_show (GTK_WIDGET (about), link);
106 empathy_about_dialog_new (GtkWindow *parent)
108 gchar *license_trans;
110 gtk_about_dialog_set_url_hook (about_dialog_activate_link_cb, NULL, NULL);
112 license_trans = g_strconcat (_(license[0]), "\n\n",
113 _(license[1]), "\n\n",
114 _(license[2]), "\n\n",
117 gtk_show_about_dialog (parent,
120 "comments", _("An Instant Messaging client for GNOME"),
121 "license", license_trans,
122 "wrap-license", TRUE,
123 "copyright", "Imendio AB 2002-2007\nCollabora Ltd 2007-2008",
124 "documenters", documenters,
125 "logo-icon-name", "empathy",
126 "translator-credits", _("translator-credits"),
127 "version", PACKAGE_VERSION,
131 g_free (license_trans);