diff options
author | Mike Lester <element3260@gmail.com> | 2008-10-09 20:47:19 +0000 |
---|---|---|
committer | Mike Lester <element3260@gmail.com> | 2008-10-09 20:47:19 +0000 |
commit | 232c43418db2227c4121c527f93495439da86f0b (patch) | |
tree | f4d3d7441311c8356dafe027938de8998f764873 | |
parent | 0bd85e2e44385017e69e89314b41a8e79f4c5475 (diff) | |
download | netsurf-232c43418db2227c4121c527f93495439da86f0b.tar.gz netsurf-232c43418db2227c4121c527f93495439da86f0b.tar.bz2 |
Fixed all but one "about dialog" related warnings. All credit strings are now constant.
svn path=/trunk/netsurf/; revision=5515
-rw-r--r-- | gtk/dialogs/gtk_about.c | 20 | ||||
-rw-r--r-- | gtk/dialogs/gtk_about.h | 4 |
2 files changed, 10 insertions, 14 deletions
diff --git a/gtk/dialogs/gtk_about.c b/gtk/dialogs/gtk_about.c index 81d22cea8..cd130a5b8 100644 --- a/gtk/dialogs/gtk_about.c +++ b/gtk/dialogs/gtk_about.c @@ -22,25 +22,25 @@ GtkAboutDialog* about_dialog; -static gchar *authors[] = {"John-Mark Bell", "James Bursa", "Michael Drake", +static const 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:", +static const gchar *translators = "Sebastian Barthel \nBruno D'Arcangeli \nGerard van Katwijk \nJérôme Mathevet \nSimon Voortman."; +static const 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 const 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 const gchar *name = "NetSurf"; +static const 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 const gchar *url = "http://www.netsurf-browser.org/"; +static const gchar *url_label = "NetSurf Website"; +static const gchar *copyright = "Copyright © 2003 - 2008 The NetSurf Developers"; -static gchar* licence = "licence"; +static const gchar* licence = "licence"; static void launch_url (GtkAboutDialog *about_dialog, const gchar *url, gpointer data){ struct browser_window *bw = data; diff --git a/gtk/dialogs/gtk_about.h b/gtk/dialogs/gtk_about.h index 35e6be80c..e34a7bff7 100644 --- a/gtk/dialogs/gtk_about.h +++ b/gtk/dialogs/gtk_about.h @@ -19,10 +19,6 @@ #ifndef NETSURF_GTK_ABOUT_H #define NETSURF_GTK_ABOUT_H -#include <gtk/gtk.h> - -#include "gtk/gtk_gui.h" -#include "desktop/netsurf.h" #include "desktop/browser.h" void nsgtk_about_dialog_init(GtkWindow *parent, struct browser_window *bw, const char *version); |