summaryrefslogtreecommitdiff
path: root/gtk/dialogs/gtk_about.c
blob: e39af1cc2769dad300523dc4d30c5aee8ce88a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * Copyright 2008 Mike Lester <element3260@gmail.com>
 *
 * This file is part of NetSurf, http://www.netsurf-browser.org/
 *
 * NetSurf is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * NetSurf is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "gtk/gtk_gui.h"
#include "gtk/dialogs/gtk_about.h"
#include "desktop/browser.h"

GtkAboutDialog* about_dialog;

static gchar *authors[] = {"John-Mark Bell", "James Bursa", "Michael Drake",
		"Rob Kendrick", "Adrian Lees", "Vincent Sanders", "Daniel Silverstone",
		"Richard Wilson", "\nContributors:", "Kevin Bagust", "Stefaan Claes",
		"Matthew Hambley", "Rob Jackson", "Jeffrey Lee", "Phil Mellor",
		"Philip Pemberton", "Darren Salt", "Andrew Timmins", "John Tytgat",
		"Chris Williams", "\nGoogle Summer of Code Contributors:", "Adam Blokus",
		"Sean Fox", "Michael Lester", "Andrew Sidwell", NULL};
static gchar *translators = "Sebastian Barthel \nBruno D'Arcangeli \nGerard van Katwijk \nJérôme Mathevet \nSimon Voortman.";
static gchar *artists[] = {"Michael Drake", "\nContributors:",
		"Andrew Duffell", "John Duffell", "Richard Hallas", "Phil Mellor", NULL};
static gchar *documenters[] = {"John-Mark Bell", "James Bursa", "Michael Drake", "Richard Wilson", "\nContributors:", "James Shaw", NULL};

static gchar *name = "NetSurf";
static gchar *description = "Small as a mouse, fast as a cheetah, and available for free.\nNetSurf is a web browser for RISC OS and UNIX-like platforms.";
static gchar *url = "http://www.netsurf-browser.org/";
static gchar *url_label = "NetSurf Website";
static gchar *copyright = "Copyright © 2003 - 2008 The NetSurf Developers";

static gchar* licence = "licence";

static void launch_url (GtkAboutDialog *about_dialog, const gchar *url, gpointer data){
      struct browser_window *bw = data;
	 browser_window_go(bw, url, 0, true);
 }

void nsgtk_about_dialog_init(GtkWindow *parent, struct browser_window *bw, const char *version) {
	g_file_get_contents(g_strconcat(res_dir_location, licence, NULL), &licence, NULL, NULL);
	gtk_about_dialog_set_url_hook (launch_url, (gpointer) bw, NULL);

	gtk_show_about_dialog(parent, "artists", artists, "authors", authors,
	"comments", description,"copyright", copyright, 
	"documenters", documenters, "license", licence, "program-name", name,
	"translator-credits", translators, "version", version, "website", url,
	"wrap-license", FALSE, NULL);
}