gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog plugin/plugin.cpp [release_0_8_1]


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog plugin/plugin.cpp [release_0_8_1]
Date: Sat, 18 Aug 2007 16:48:55 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         release_0_8_1
Changes by:     Sandro Santilli <strk>  07/08/18 16:48:55

Modified files:
        .              : ChangeLog 
        plugin         : plugin.cpp 

Log message:
                * plugin/plugin.cpp: Use the environmental variable
                  GNASH_PLUGIN_DESCRIPTION for the plugin description
                  (when set).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release_0_8_1&r1=1.3971.2.35&r2=1.3971.2.36
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/plugin.cpp?cvsroot=gnash&only_with_tag=release_0_8_1&r1=1.81.2.2&r2=1.81.2.3

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3971.2.35
retrieving revision 1.3971.2.36
diff -u -b -r1.3971.2.35 -r1.3971.2.36
--- ChangeLog   18 Aug 2007 16:13:35 -0000      1.3971.2.35
+++ ChangeLog   18 Aug 2007 16:48:54 -0000      1.3971.2.36
@@ -1,5 +1,11 @@
 2007-08-18 Sandro Santilli <address@hidden>
 
+       * plugin/plugin.cpp: Use the environmental variable
+         GNASH_PLUGIN_DESCRIPTION for the plugin description
+         (when set).
+
+2007-08-18 Sandro Santilli <address@hidden>
+
        * server/video_stream_instance.cpp: mark characters created
          using new Video as dynamic.
        * server/character.h (isDynamic): remove bogus assertion

Index: plugin/plugin.cpp
===================================================================
RCS file: /sources/gnash/gnash/plugin/plugin.cpp,v
retrieving revision 1.81.2.2
retrieving revision 1.81.2.3
diff -u -b -r1.81.2.2 -r1.81.2.3
--- plugin/plugin.cpp   18 Aug 2007 12:37:18 -0000      1.81.2.2
+++ plugin/plugin.cpp   18 Aug 2007 16:48:54 -0000      1.81.2.3
@@ -15,7 +15,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-/* $Id: plugin.cpp,v 1.81.2.2 2007/08/18 12:37:18 strk Exp $ */
+/* $Id: plugin.cpp,v 1.81.2.3 2007/08/18 16:48:54 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -78,6 +78,8 @@
 
 static bool  waitforgdb = false;
 
+static const char* getPluginDescription();
+
 void
 PR_CALLBACK Destructor(void * /* data */)
 {
@@ -192,7 +194,7 @@
       // This becomes the description field you see below the opening
       // text when you type about:plugins
       case NPPVpluginDescriptionString:
-          *static_cast<char **>(aValue) = PLUGIN_DESCRIPTION;
+          *static_cast<const char **>(aValue) = getPluginDescription();
           break;
 
       case NPPVpluginNeedsXEmbed:
@@ -693,6 +695,17 @@
         return propValue.utf8characters; // const char *
 }
 
+static const char* getPluginDescription() 
+{
+       static const char* desc = NULL;
+       if ( ! desc )
+       {
+               desc = getenv("GNASH_PLUGIN_DESCRIPTION");
+               if ( ! desc ) desc = PLUGIN_DESCRIPTION;
+       }
+       return desc;
+}
+
 // Local Variables:
 // mode: C++
 // indent-tabs-mode: t




reply via email to

[Prev in Thread] Current Thread [Next in Thread]