devhelp/devhelp-0.16.1-xulrunner.patch

31 lines
1.0 KiB
Diff
Raw Normal View History

2007-11-22 11:50:34 +00:00
diff -up devhelp-0.16.1/src/Yelper.cpp.xl devhelp-0.16.1/src/Yelper.cpp
--- devhelp-0.16.1/src/Yelper.cpp.xl 2007-05-28 09:42:20.000000000 +0200
2007-11-22 12:03:16 +00:00
+++ devhelp-0.16.1/src/Yelper.cpp 2007-11-22 13:00:28.000000000 +0100
@@ -41,7 +41,9 @@
2007-11-22 11:50:34 +00:00
#include <nsIDOMWindow.h>
#include <nsIInterfaceRequestorUtils.h>
#include <nsIPrefService.h>
2007-11-22 12:03:16 +00:00
+#ifndef HAVE_GECKO_1_9
#include <nsIPrintSettings.h>
+#endif
2007-11-22 11:50:34 +00:00
#include <nsISelectionController.h>
#include <nsITypeAheadFind.h>
#include <nsIWebBrowser.h>
2007-11-22 12:03:16 +00:00
@@ -169,16 +171,9 @@ Yelper::Find (const char *aSearchString)
nsresult rv;
PRUint16 found = nsITypeAheadFind::FIND_NOTFOUND;
-#ifdef HAVE_GECKO_1_9
- rv = mFinder->Find (NS_ConvertUTF8toUTF16 (aSearchString),
- PR_FALSE /* links only? */,
- mHasFocus,
- &found);
-#else
2007-11-22 11:50:34 +00:00
rv = mFinder->Find (NS_ConvertUTF8toUTF16 (aSearchString),
PR_FALSE /* links only? */,
&found);
2007-11-22 12:03:16 +00:00
-#endif
return NS_SUCCEEDED (rv) && (found == nsITypeAheadFind::FIND_FOUND || found == nsITypeAheadFind::FIND_WRAPPED);
}