Date: Tue, 17 Jun 2003 06:38:08 -0700 From: Doug Asherman <doug@italcorner.com> To: gnome@FreeBSD.org Subject: Possible mozilla patch Message-ID: <3EEF19C0.7050104@italcorner.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------040407080406090503090808 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello: I'm not sure if you'd be interested in this, but: there's a mozilla patch that comes with Slackware Linux that gets rid of the default behavior when plugins are not found; that is, you don't get the dialog box that prompts you to get the plugin. I'm pretty sure it's GPL'd, so I've attached it in case you want to look at it. I've already applied this patch to my Mozilla running under FreeBSD 5.1, and there is no problem with it. Doug Asherman Oakland, CA --------------040407080406090503090808 Content-Type: text/plain; name="mozilla-default-plugin-less-annoying.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mozilla-default-plugin-less-annoying.patch" --- mozilla/modules/plugin/samples/default/unix/npshell.c.foo Tue May 7 14:18:45 2002 +++ mozilla/modules/plugin/samples/default/unix/npshell.c Tue May 7 14:49:55 2002 @@ -224,7 +224,7 @@ This->depth = ws_info->depth; This->colormap = ws_info->colormap; makePixmap(This); - makeWidget(This); + /* makeWidget(This); */ } return NPERR_NO_ERROR; } --- mozilla/modules/plugin/samples/default/unix/nullplugin.c.foo Tue May 7 14:18:45 2002 +++ mozilla/modules/plugin/samples/default/unix/nullplugin.c Tue May 7 14:48:33 2002 @@ -70,6 +70,8 @@ gtk_object_remove_data(GTK_OBJECT(button), DIALOGID); +#if 0 + if (This->pluginsFileUrl != NULL) { /* Get the JavaScript command string */ @@ -110,6 +112,7 @@ NPN_MemFree(url); } } +#endif destroyWidget(This); } @@ -265,14 +268,14 @@ GTK_DIALOG(dialogWindow)->action_area); gtk_object_set_data(GTK_OBJECT(okButton), DIALOGID, dialogWindow); - cancelButton= AddWidget(gtk_button_new_with_label (CANCEL_BUTTON), - GTK_DIALOG(dialogWindow)->action_area); + /* cancelButton= AddWidget(gtk_button_new_with_label (CANCEL_BUTTON), + GTK_DIALOG(dialogWindow)->action_area); */ gtk_signal_connect (GTK_OBJECT(okButton), "clicked", GTK_SIGNAL_FUNC(DialogOKClicked), This); - gtk_signal_connect (GTK_OBJECT(cancelButton), "clicked", - GTK_SIGNAL_FUNC(DialogCancelClicked), This); + /* gtk_signal_connect (GTK_OBJECT(cancelButton), "clicked", + GTK_SIGNAL_FUNC(DialogCancelClicked), This); */ /* hookup to when the dialog is destroyed */ gtk_signal_connect(GTK_OBJECT(dialogWindow), "destroy", --- mozilla/modules/plugin/samples/default/unix/nullplugin.h.foo Tue May 7 14:46:48 2002 +++ mozilla/modules/plugin/samples/default/unix/nullplugin.h Tue May 7 14:47:08 2002 @@ -53,9 +53,7 @@ #define JVM_MINETYPE "application/x-java-vm" #define MESSAGE "\ This page contains information of a type (%s) that can\n\ -only be viewed with the appropriate Plug-in.\n\ -\n\ -Click OK to download Plugin." +only be viewed with the appropriate Plug-in." #define GET 1 #define REFRESH 2 --------------040407080406090503090808--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EEF19C0.7050104>