Mercurial > hg > release > icedtea6-1.7
changeset 1940:7e7059a08814
PR icedtea/491: pass java_{code,codebase,archive} paramters to java
2010-07-20 Omair Majid <omajid@redhat.com>
PR icedtea/491
* plugin/icedteanp/IcedTeaNPPlugin.cc
(plugin_create_applet_tag): Accept and pass on
java_{code,codebase,archive} tags to the java side of the plugin.
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Tue, 20 Jul 2010 13:46:28 -0400 |
parents | 02f558ca98d8 |
children | ce09ca575fdb |
files | ChangeLog plugin/icedteanp/IcedTeaNPPlugin.cc |
diffstat | 2 files changed, 28 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Jul 16 15:19:55 2010 -0400 +++ b/ChangeLog Tue Jul 20 13:46:28 2010 -0400 @@ -1,3 +1,10 @@ +2010-07-20 Omair Majid <omajid@redhat.com> + + PR icedtea/491 + * plugin/icedteanp/IcedTeaNPPlugin.cc + (plugin_create_applet_tag): Accept and pass on + java_{code,codebase,archive} tags to the java side of the plugin. + 2010-07-16 Deepak Bhole <dbhole@redhat.com> * patches/icedtea-policy-evaluation.patch: New patch. Fixes policy
--- a/plugin/icedteanp/IcedTeaNPPlugin.cc Fri Jul 16 15:19:55 2010 -0400 +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc Tue Jul 20 13:46:28 2010 -0400 @@ -1625,6 +1625,13 @@ g_free (code); code = NULL; } + else if (!g_ascii_strcasecmp (argn[i], "java_code")) + { + gchar* java_code = g_strdup_printf ("JAVA_CODE=\"%s\" ", argv[i]); + applet_tag = g_strconcat (applet_tag, java_code, NULL); + g_free (java_code); + java_code = NULL; + } else if (!g_ascii_strcasecmp (argn[i], "codebase")) { gchar* codebase = g_strdup_printf ("CODEBASE=\"%s\" ", argv[i]); @@ -1632,6 +1639,13 @@ g_free (codebase); codebase = NULL; } + else if (!g_ascii_strcasecmp (argn[i], "java_codebase")) + { + gchar* java_codebase = g_strdup_printf ("JAVA_CODEBASE=\"%s\" ", argv[i]); + applet_tag = g_strconcat (applet_tag, java_codebase, NULL); + g_free (java_codebase); + java_codebase = NULL; + } else if (!g_ascii_strcasecmp (argn[i], "classid")) { gchar* classid = g_strdup_printf ("CLASSID=\"%s\" ", argv[i]); @@ -1646,6 +1660,13 @@ g_free (archive); archive = NULL; } + else if (!g_ascii_strcasecmp (argn[i], "java_archive")) + { + gchar* java_archive = g_strdup_printf ("JAVA_ARCHIVE=\"%s\" ", argv[i]); + applet_tag = g_strconcat (applet_tag, java_archive, NULL); + g_free (java_archive); + java_archive = NULL; + } else if (!g_ascii_strcasecmp (argn[i], "width")) { gchar* width = g_strdup_printf ("width=\"%s\" ", argv[i]);