aboutsummaryrefslogtreecommitdiffstats
path: root/www/galeon
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-02-07 04:38:33 +0800
committermarcus <marcus@FreeBSD.org>2003-02-07 04:38:33 +0800
commitca4068844d27fb2e758c0676ffe4e783069c40a0 (patch)
treeab84cd9a969cb9420c8c5c7c76cb0e34b6fc5d1b /www/galeon
parentb4e23e8e1dbbdc78d7e10b1abd2c3cc8b1211a0c (diff)
downloadfreebsd-ports-gnome-ca4068844d27fb2e758c0676ffe4e783069c40a0.tar.gz
freebsd-ports-gnome-ca4068844d27fb2e758c0676ffe4e783069c40a0.tar.zst
freebsd-ports-gnome-ca4068844d27fb2e758c0676ffe4e783069c40a0.zip
Fix build with mozilla-devel.
Reported by: Andrew J Caines <A.J.Caines@halplant.com>
Diffstat (limited to 'www/galeon')
-rw-r--r--www/galeon/files/patch-src_mozilla_GaleonWrapper.cpp25
1 files changed, 23 insertions, 2 deletions
diff --git a/www/galeon/files/patch-src_mozilla_GaleonWrapper.cpp b/www/galeon/files/patch-src_mozilla_GaleonWrapper.cpp
index bf0495a874b2..b0f7fba45285 100644
--- a/www/galeon/files/patch-src_mozilla_GaleonWrapper.cpp
+++ b/www/galeon/files/patch-src_mozilla_GaleonWrapper.cpp
@@ -1,5 +1,5 @@
---- src/mozilla/GaleonWrapper.cpp.orig Thu Jan 2 13:55:14 2003
-+++ src/mozilla/GaleonWrapper.cpp Thu Jan 2 13:56:16 2003
+--- src/mozilla/GaleonWrapper.cpp.orig Fri Oct 25 20:52:28 2002
++++ src/mozilla/GaleonWrapper.cpp Thu Feb 6 15:36:06 2003
@@ -80,8 +80,10 @@
#include "caps/nsIPrincipal.h"
#include "nsIDeviceContext.h"
@@ -27,3 +27,24 @@
nsCOMPtr<nsIWebBrowserFind> finder (do_GetInterface(mWebBrowser));
+@@ -984,7 +988,6 @@
+ nsIStyleSheet **return_sheet)
+ {
+ nsresult result;
+- PRBool completed;
+
+ /* catch necessary stuff */
+ nsCOMPtr<nsIDocShell> DocShell;
+@@ -1014,7 +1017,12 @@
+ if (NS_FAILED(result)) return NS_ERROR_FAILURE;
+
+ nsICSSStyleSheet *sheet;
++#if MOZILLA_SNAPSHOT > 3
++ result = loader->LoadAgentSheet(uri, &sheet);
++#else
++ PRBool completed;
+ result = loader->LoadAgentSheet(uri, sheet, completed, nsnull);
++#endif
+ if (NS_FAILED(result)) return NS_ERROR_FAILURE;
+
+ /* catch stylesheet stuff and apply by appending it as a override