1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Fix build with mozilla-devel-gtk2.

This commit is contained in:
Joe Marcus Clarke 2003-02-13 22:04:30 +00:00
parent 9a40180498
commit 3524f206ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75480
6 changed files with 194 additions and 5 deletions

View File

@ -0,0 +1,41 @@
--- mozilla/BaseHelpProtocolHandler.cpp.orig Thu Feb 13 16:08:39 2003
+++ mozilla/BaseHelpProtocolHandler.cpp Thu Feb 13 16:13:24 2003
@@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "outputbuffer.h"
#ifdef NOT_PORTED
@@ -194,17 +198,23 @@
/* finish the rendering */
nsCOMPtr<nsIInputStream> iStream;
- PRUint32 size;
-
- rv = sStream->GetLength(&size);
- if (NS_FAILED(rv)) return rv;
rv = sStream->NewInputStream(0, getter_AddRefs(iStream));
if (NS_FAILED(rv)) return rv;
+#if MOZILLA_SNAPSHOT > 3
+ rv = NS_NewInputStreamChannel(getter_AddRefs(mChannel), mURI,
+ iStream, NS_LITERAL_CSTRING("text/html"),
+ NS_LITERAL_CSTRING("utf-8"));
+#else
+ PRUint32 size;
+ rv = sStream->GetLength(&size);
+ if (NS_FAILED(rv)) return rv;
+
rv = NS_NewInputStreamChannel(getter_AddRefs(mChannel), mURI,
iStream, NS_LITERAL_CSTRING("text/html"),
NS_LITERAL_CSTRING("utf-8"), size);
+#endif
if (NS_FAILED(rv)) return rv;
return rv;

View File

@ -0,0 +1,27 @@
--- mozilla/BaseProtocolContentHandler.cpp.orig Thu Feb 13 16:21:02 2003
+++ mozilla/BaseProtocolContentHandler.cpp Thu Feb 13 16:22:10 2003
@@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "nsCOMPtr.h"
#include "nsIURI.h"
#include "nsIChannel.h"
@@ -63,8 +67,13 @@
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIChannel> channel;
+#if MOZILLA_SNAPSHOT > 3
+ rv = NS_NewInputStreamChannel(getter_AddRefs(channel), aURI,
+ iStream, mMimeType, NS_LITERAL_CSTRING(""));
+#else
rv = NS_NewInputStreamChannel(getter_AddRefs(channel), aURI,
iStream, mMimeType, NS_LITERAL_CSTRING(""), 0);
+#endif
if (NS_FAILED(rv)) return rv;
NS_IF_ADDREF (*_retval = channel);

View File

@ -0,0 +1,27 @@
--- mozilla/GlobalHistory.cpp.orig Thu Feb 13 16:30:19 2003
+++ mozilla/GlobalHistory.cpp Thu Feb 13 16:32:29 2003
@@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "galeon-config.h"
#include "mozilla-embed-shell.h"
@@ -149,6 +153,13 @@
{
return NS_ERROR_NOT_IMPLEMENTED;
}
+
+#if MOZILLA_SNAPSHOT > 3
+NS_IMETHODIMP MozGlobalHistory::OutputReferrerURL(const char *aURL, const char *aReferrer)
+{
+ return NS_ERROR_NOT_IMPLEMENTED;
+}
+#endif
NS_DEF_FACTORY (MozGlobalHistory, MozGlobalHistory);

View File

@ -0,0 +1,41 @@
--- mozilla/MyportalProtocolHandler.cpp.orig Thu Feb 13 16:23:25 2003
+++ mozilla/MyportalProtocolHandler.cpp Thu Feb 13 16:26:47 2003
@@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "bookmarks.h"
#include "bookmarks-iterator.h"
#include "eel-gconf-extensions.h"
@@ -249,17 +253,23 @@
g_free (myportalURI);
#else
nsCOMPtr<nsIInputStream> iStream;
- PRUint32 size;
-
- rv = sStream->GetLength(&size);
+ rv = sStream->NewInputStream(0, getter_AddRefs(iStream));
+
if (NS_FAILED(rv)) return rv;
- rv = sStream->NewInputStream(0, getter_AddRefs(iStream));
+#if MOZILLA_SNAPSHOT > 3
+ rv = NS_NewInputStreamChannel(getter_AddRefs(mChannel), mURI,
+ iStream, NS_LITERAL_CSTRING("text/html"),
+ NS_LITERAL_CSTRING("utf-8"));
+#else
+ PRUint32 size;
+ rv = sStream->GetLength(&size);
if (NS_FAILED(rv)) return rv;
rv = NS_NewInputStreamChannel(getter_AddRefs(mChannel), mURI,
iStream, NS_LITERAL_CSTRING("text/html"),
NS_LITERAL_CSTRING("utf-8"), size);
+#endif
if (NS_FAILED(rv)) return rv;
#endif
g_free (stylesheet_filename);

View File

@ -1,5 +1,5 @@
--- mozilla/TOCProtocolHandler.cpp.orig Wed Nov 20 15:24:03 2002
+++ mozilla/TOCProtocolHandler.cpp Wed Nov 20 15:24:19 2002
--- mozilla/TOCProtocolHandler.cpp.orig Wed Sep 4 20:41:48 2002
+++ mozilla/TOCProtocolHandler.cpp Thu Feb 13 16:15:50 2003
@@ -83,8 +83,8 @@
oStream->Write (str.c_str(), str.size(), &bytesWriten);
@ -11,7 +11,35 @@
/* Implementation file */
NS_IMPL_ISUPPORTS1 (GTOCProtocolHandler, nsIProtocolHandler)
@@ -401,7 +401,7 @@
@@ -126,17 +126,24 @@
if (NS_FAILED(rv)) return rv;
/* finish the rendering */
- PRUint32 size;
- rv = mStream->GetLength(&size);
- if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIInputStream> iStream;
rv = mStream->NewInputStream(0, getter_AddRefs(iStream));
if (NS_FAILED(rv)) return rv;
+#if MOZILLA_SNAPSHOT > 3
+ rv = NS_NewInputStreamChannel(getter_AddRefs(mChannel), mURI,
+ iStream, NS_LITERAL_CSTRING("text/html"),
+ NS_LITERAL_CSTRING("utf-8"));
+#else
+ PRUint32 size;
+ rv = mStream->GetLength(&size);
+ if (NS_FAILED(rv)) return rv;
+
rv = NS_NewInputStreamChannel(getter_AddRefs(mChannel), mURI,
iStream, NS_LITERAL_CSTRING("text/html"),
NS_LITERAL_CSTRING("utf-8"), size);
+#endif
if (NS_FAILED(rv)) return rv;
return rv;
@@ -401,7 +408,7 @@
}
NS_METHOD GTOCProtocolHandler::CreateHelpPage (const char *type,
@ -20,7 +48,7 @@
{
nsresult rv;
@@ -496,7 +496,7 @@
@@ -496,7 +503,7 @@
}
}
@ -29,7 +57,7 @@
{
#ifdef NOT_PORTED
char *helpPath = gnome_help_file_find_file (
@@ -512,7 +512,7 @@
@@ -512,7 +519,7 @@
#endif
}

View File

@ -0,0 +1,25 @@
--- mozilla/mozilla-embed-persist.cpp.orig Thu Feb 13 16:18:30 2003
+++ mozilla/mozilla-embed-persist.cpp Thu Feb 13 16:20:25 2003
@@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "mozilla-embed-persist.h"
#include "mozilla-embed.h"
#include "ProgressListener.h"
@@ -235,7 +239,11 @@
persist,
!(flags & EMBED_PERSIST_SHOW_PROGRESS));
+#if MOZILLA_SNAPSHOT > 3
+ rv = bpersist->SaveURI (linkURI, nsnull, nsnull, nsnull, nsnull, file);
+#else
rv = bpersist->SaveURI (linkURI, nsnull, file);
+#endif
if (NS_FAILED(rv)) return G_FAILED;
}