/hg/icedtea-web: fix info shown in about:plugins in firefox

omajid at icedtea.classpath.org omajid at icedtea.classpath.org
Tue Dec 7 08:07:42 PST 2010


changeset 3f36c58d7b30 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=3f36c58d7b30
author: Omair Majid <omajid at redhat.com>
date: Tue Dec 07 11:03:42 2010 -0500

	fix info shown in about:plugins in firefox

	2010-12-07 Omair Majid <omajid at redhat.com>

	 * Makefile.am (PLUGIN_VERSION): Change to IcedTea-Web
	($(PLUGIN_DIR)/%.o): Define PLUGIN_NAME and PACKAGE_URL.
	    * configure.ac (AC_INTIT): Add url.
	    * plugin/icedteanp/IcedTeaNPPlugin.cc (PLUGIN_NAME): Removed.
	(PLUGIN_FULL_NAME): New definition. (PLUGIN_DESC): Add link to
	IcedTea-Web wiki page. (NP_GetValue): Return PLUGIN_FULL_NAME
	instead of PLUGIN_NAME.


diffstat:

4 files changed, 20 insertions(+), 5 deletions(-)
ChangeLog                           |   13 +++++++++++++
Makefile.am                         |    4 +++-
configure.ac                        |    2 +-
plugin/icedteanp/IcedTeaNPPlugin.cc |    6 +++---

diffs (74 lines):

diff -r 338c7d55380b -r 3f36c58d7b30 ChangeLog
--- a/ChangeLog	Mon Dec 06 15:34:01 2010 -0500
+++ b/ChangeLog	Tue Dec 07 11:03:42 2010 -0500
@@ -1,3 +1,16 @@ 2010-12-06  Deepak Bhole <dbhole at redhat.
+2010-12-07  Omair Majid  <omajid at redhat.com>
+
+	* Makefile.am
+	(PLUGIN_VERSION): Change to IcedTea-Web
+	($(PLUGIN_DIR)/%.o): Define PLUGIN_NAME and PACKAGE_URL.
+	* configure.ac
+	(AC_INTIT): Add url.
+	* plugin/icedteanp/IcedTeaNPPlugin.cc
+	(PLUGIN_NAME): Removed.
+	(PLUGIN_FULL_NAME): New definition.
+	(PLUGIN_DESC): Add link to IcedTea-Web wiki page.
+	(NP_GetValue): Return PLUGIN_FULL_NAME instead of PLUGIN_NAME.
+
 2010-12-06  Deepak Bhole <dbhole at redhat.com>
 
 	Fixed indentation and spacing for all .java files
diff -r 338c7d55380b -r 3f36c58d7b30 Makefile.am
--- a/Makefile.am	Mon Dec 06 15:34:01 2010 -0500
+++ b/Makefile.am	Tue Dec 07 11:03:42 2010 -0500
@@ -82,7 +82,7 @@ LAUNCHER_LINK = -o $@ -pthread -Xlinker 
 	-Wl,-soname=lib.so  -L $(BOOT_DIR)/jre/lib/$(INSTALL_ARCH_DIR)/jli -Wl,-z -Wl,origin \
 	-Wl,--allow-shlib-undefined -Wl,-rpath -Wl,\$$ORIGIN/../lib/$(INSTALL_ARCH_DIR)/jli -Wl,-rpath \
 	-Wl,\$$ORIGIN/../jre/lib/$(INSTALL_ARCH_DIR)/jli $(X11_CFLAGS) $(X11_LIBS) -ljli  -ldl -lz
-PLUGIN_VERSION = IcedTea $(PACKAGE_VERSION)$(ICEDTEA_REV)$(ICEDTEA_PKG)
+PLUGIN_VERSION = IcedTea-Web $(PACKAGE_VERSION)$(ICEDTEA_REV)$(ICEDTEA_PKG)
 
 EXTRA_DIST = $(top_srcdir)/netx $(top_srcdir)/plugin javaws.png javaws.desktop.in extra launcher \
  itweb-settings.desktop.in
@@ -167,7 +167,9 @@ PLUGIN_OBJECTS=IcedTeaNPPlugin.o IcedTea
 	cd $(PLUGIN_DIR) && \
 	$(CXX) $(CXXFLAGS) \
 	  -DJDK_UPDATE_VERSION="\"$(JDK_UPDATE_VERSION)\"" \
+	  -DPLUGIN_NAME="\"IcedTea-Web Plugin\"" \
 	  -DPLUGIN_VERSION="\"$(PLUGIN_VERSION)\"" \
+	  -DPACKAGE_URL="\"$(PACKAGE_URL)\"" \
 	  -DMOZILLA_VERSION_COLLAPSED="$(MOZILLA_VERSION_COLLAPSED)" \
 	  $(GLIB_CFLAGS) \
 	  $(GTK_CFLAGS) \
diff -r 338c7d55380b -r 3f36c58d7b30 configure.ac
--- a/configure.ac	Mon Dec 06 15:34:01 2010 -0500
+++ b/configure.ac	Tue Dec 07 11:03:42 2010 -0500
@@ -1,4 +1,4 @@ AC_INIT([icedtea-web],[1.0pre],[distro-p
-AC_INIT([icedtea-web],[1.0pre],[distro-pkg-dev at openjdk.java.net])
+AC_INIT([icedtea-web],[1.0pre],[distro-pkg-dev at openjdk.java.net], [icedtea-web], [http://icedtea.classpath.org/wiki/IcedTea-Web])
 AM_INIT_AUTOMAKE([1.9 tar-pax foreign])
 AC_CONFIG_FILES([Makefile])
 
diff -r 338c7d55380b -r 3f36c58d7b30 plugin/icedteanp/IcedTeaNPPlugin.cc
--- a/plugin/icedteanp/IcedTeaNPPlugin.cc	Mon Dec 06 15:34:01 2010 -0500
+++ b/plugin/icedteanp/IcedTeaNPPlugin.cc	Tue Dec 07 11:03:42 2010 -0500
@@ -87,8 +87,8 @@ exception statement from your version. *
               __LINE__, g_thread_self (), first, second, third)
 
 // Plugin information passed to about:plugins.
-#define PLUGIN_NAME "IcedTea NPR Web Browser Plugin (using " PLUGIN_VERSION ")"
-#define PLUGIN_DESC "The " PLUGIN_NAME " executes Java applets."
+#define PLUGIN_FULL_NAME PLUGIN_NAME " (using " PLUGIN_VERSION ")"
+#define PLUGIN_DESC "The <a href=\"" PACKAGE_URL "\">" PLUGIN_NAME "</a> executes Java applets."
 
 #define PLUGIN_MIME_DESC                                               \
   "application/x-java-vm:class,jar:IcedTea;"                           \
@@ -2275,7 +2275,7 @@ NP_GetValue (void* future, NPPVariable v
     {
     case NPPVpluginNameString:
       PLUGIN_DEBUG ("NP_GetValue: returning plugin name.\n");
-      *char_value = g_strdup (PLUGIN_NAME);
+      *char_value = g_strdup (PLUGIN_FULL_NAME);
       break;
 
     case NPPVpluginDescriptionString:



More information about the distro-pkg-dev mailing list