[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash plugin/plugin.cpp ./ChangeLog
From: |
John Gilmore |
Subject: |
[Gnash-commit] gnash plugin/plugin.cpp ./ChangeLog |
Date: |
Wed, 05 Apr 2006 05:40:17 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Branch:
Changes by: John Gilmore <address@hidden> 06/04/05 05:40:17
Modified files:
plugin : plugin.cpp
. : ChangeLog
Log message:
* plugin/plugin.cpp: Describe the plugin more fully. It's the
GNU Flash Player. Add copyright notice, version number, more links.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/plugin/plugin.cpp.diff?tr1=1.24&tr2=1.25&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/ChangeLog.diff?tr1=1.202&tr2=1.203&r1=text&r2=text
Patches:
Index: gnash/ChangeLog
diff -u gnash/ChangeLog:1.202 gnash/ChangeLog:1.203
--- gnash/ChangeLog:1.202 Wed Apr 5 04:15:33 2006
+++ gnash/ChangeLog Wed Apr 5 05:40:17 2006
@@ -6,8 +6,9 @@
* backend/gnash.cpp: Revise --version and --help for GNU Coding
Standards.
* plugin/player.cpp: Lint.
- * plugin/plugin.cpp (PLUGIN_DESCRIPTION): It's the GNU Flash Player.
-
+ * plugin/plugin.cpp: Describe the plugin more fully. It's the
+ GNU Flash Player. Add copyright notice, version number, more links.
+
2006-04-04 Rob Savoye <address@hidden>
* backend/gnash.cpp: Add -j and -k options to set the width and
Index: gnash/plugin/plugin.cpp
diff -u gnash/plugin/plugin.cpp:1.24 gnash/plugin/plugin.cpp:1.25
--- gnash/plugin/plugin.cpp:1.24 Wed Apr 5 04:15:34 2006
+++ gnash/plugin/plugin.cpp Wed Apr 5 05:40:17 2006
@@ -46,7 +46,9 @@
// plugin version to load.
#define PLUGIN_NAME "Shockwave Flash 8.0"
#define MIME_TYPES_DESCRIPTION MIME_TYPES_HANDLED":swf:"PLUGIN_NAME
-#define PLUGIN_DESCRIPTION "Gnash, the GNU Flash Player. More details at
http://www.gnu.org/software/gnash/"
+// PLUGIN_DESCRIPTION is inline in a function below, since it got very
+// long, including copyright info and URLs and such.
+#define PLUGIN_DESCRIPTION SEE-BELOW-SEARCH-FOR-PLUGIN_DESCRIPTION
#include <GL/glx.h>
#include <GL/gl.h>
@@ -298,6 +300,23 @@
plugInitialized = FALSE;
}
+// HTML description of Gnash, for display in URL "about:plugins" in the
browser.
+// PLUGIN_DESCRIPTION used to feed in here, but now it's just literal.
+static const char description[] =
+"Gnash " VERSION ", the GNU Flash Player. "
+"Copyright © 2006 "
+"<a href=\"http://www.fsf.org\">Free Software Foundation</a>, Inc.<br>"
+"Gnash comes with NO WARRANTY, to the extent permitted by law. "
+"You may redistribute copies of Gnash under the terms of the "
+"<a href=\"http://www.gnu.org/licenses/gpl.html\">GNU "
+"General Public License</a>, with an additional special exception allowing "
+"linking with Mozilla, or any variant of Mozilla (such as Firefox), "
+"so long as the linking is "
+"through its standard plug-in interface. For more information about Gnash, "
+"see <a href=\"http://www.gnu.org/software/gnash/\">"
+"http://www.gnu.org/software/gnash</a>."
+ ;
+
/// \brief Retrieve values from the plugin for the Browser
///
/// This C function is called by the browser to get certain
@@ -308,23 +327,19 @@
{
GNASH_REPORT_FUNCTION;
- char tmp[1024];
NPError err = NPERR_NO_ERROR;
switch (aVariable) {
case NPPVpluginNameString:
*((char **)aValue) = PLUGIN_NAME;
break;
+
// This becomes the description field you see below the opening
// text when you type about:plugins
case NPPVpluginDescriptionString:
- snprintf(tmp, 1024,
- "Gnash, a GPL\'d Flash Player. More details at "
- "<a href=http://www.gnu.org/software/gnash/>"
- "http://www.gnu.org/software/gnash</a>"
- );
- *((char **)aValue) = tmp;
+ *((char **)aValue) = (char *)description;
break;
+
case NPPVpluginNeedsXEmbed:
#ifdef HAVE_GTK2
*((PRBool *)aValue) = PR_TRUE;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash plugin/plugin.cpp ./ChangeLog,
John Gilmore <=