mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-10 09:11:43 +03:00

svn://svn.netsurf-browser.org/branches/mikeL/netsurf ........ r4689 | mikeL | 2008-07-17 19:59:20 +0100 (Thu, 17 Jul 2008) | 1 line Changed the toolbar at the bottom of the downloads dialog to a horizontal button box and added a 'Close' button (Based on a suggestion from the dev list). Internationalized the rest of the strings. Fixed many style errors (thanks rjek). Set authentication fields in the options dialog to be insensitive when proxy type is simple. Namespace'd the rest of download.h ........ r4690 | mikeL | 2008-07-17 21:39:39 +0100 (Thu, 17 Jul 2008) | 1 line Removed close button. fixed text on resume button ........ r4691 | mikeL | 2008-07-17 22:13:13 +0100 (Thu, 17 Jul 2008) | 1 line Added gtk downloads section ........ r4715 | mikeL | 2008-07-20 19:41:39 +0100 (Sun, 20 Jul 2008) | 1 line Downloads are now automatically sorted (Downloading, Error'd, Completed, Canceled). New downloads appear at the beginning of the list. Removed leftover callback for close button. Downloads without a known total size are now handled correctly (bouncing progress block). Fixed bug where shift+click downloads would throw an error (encoding is now always set to binary). ........ r4716 | mikeL | 2008-07-20 19:45:24 +0100 (Sun, 20 Jul 2008) | 1 line Removed unnecessary wndDownloads section ........ r4717 | mikeL | 2008-07-20 19:53:44 +0100 (Sun, 20 Jul 2008) | 1 line Removed label on url in about dialog. Removed extra variable from the input callback. These changes should have already been committed a while back but for some reason they were skipped ........ r4718 | mikeL | 2008-07-21 04:56:28 +0100 (Mon, 21 Jul 2008) | 1 line Total progress bar is now working and acts correctly with downloads of unknown size. All downloads are now stored in a GList (this will later make it possible to implement things like clearing all inactive downloads). Individual downloads no longer update themselves every .5 seconds, the function nsgtk_download_update is called using a g_timeout and cycles through the GList updating the total progress bar and each download. Downloads of unknown size now report their total size upon completion. ........ r4719 | mikeL | 2008-07-21 05:06:17 +0100 (Mon, 21 Jul 2008) | 1 line Changed names of two functions that change sensitivity and status. ........ r4720 | mikeL | 2008-07-21 16:56:41 +0100 (Mon, 21 Jul 2008) | 1 line Updated messages file ........ r4722 | mikeL | 2008-07-21 21:44:23 +0100 (Mon, 21 Jul 2008) | 1 line Clear button now clears all inactive downloads when there is no selection. ........ r4723 | mikeL | 2008-07-21 22:11:00 +0100 (Mon, 21 Jul 2008) | 1 line Fixed the total progress bar lagging behind events such as cancelations. ........ r4727 | mikeL | 2008-07-23 19:33:53 +0100 (Wed, 23 Jul 2008) | 1 line Added an overwrite confirmation dialog for the 'save' button ........ r4728 | mikeL | 2008-07-23 19:43:44 +0100 (Wed, 23 Jul 2008) | 1 line Save as dialog now starts in the default download directory instead of the user's home folder ........ r4729 | mikeL | 2008-07-23 20:02:34 +0100 (Wed, 23 Jul 2008) | 1 line Updated Copyright information ........ r4734 | mikeL | 2008-07-24 19:30:12 +0100 (Thu, 24 Jul 2008) | 1 line Fixed Info column not being set to expand ........ svn path=/trunk/netsurf/; revision=4752
61 lines
2.8 KiB
C
61 lines
2.8 KiB
C
/*
|
|
* 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);
|
|
}
|
|
|