Polished patch
This commit is contained in:
parent
61e03a2961
commit
d337ba212c
@ -1,20 +1,30 @@
|
|||||||
diff -up devhelp-0.16.1/src/Yelper.cpp.xl devhelp-0.16.1/src/Yelper.cpp
|
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
|
--- devhelp-0.16.1/src/Yelper.cpp.xl 2007-05-28 09:42:20.000000000 +0200
|
||||||
+++ devhelp-0.16.1/src/Yelper.cpp 2007-11-22 12:44:11.000000000 +0100
|
+++ devhelp-0.16.1/src/Yelper.cpp 2007-11-22 13:00:28.000000000 +0100
|
||||||
@@ -41,7 +41,7 @@
|
@@ -41,7 +41,9 @@
|
||||||
#include <nsIDOMWindow.h>
|
#include <nsIDOMWindow.h>
|
||||||
#include <nsIInterfaceRequestorUtils.h>
|
#include <nsIInterfaceRequestorUtils.h>
|
||||||
#include <nsIPrefService.h>
|
#include <nsIPrefService.h>
|
||||||
-#include <nsIPrintSettings.h>
|
+#ifndef HAVE_GECKO_1_9
|
||||||
+//#include <nsIPrintSettings.h>
|
#include <nsIPrintSettings.h>
|
||||||
|
+#endif
|
||||||
#include <nsISelectionController.h>
|
#include <nsISelectionController.h>
|
||||||
#include <nsITypeAheadFind.h>
|
#include <nsITypeAheadFind.h>
|
||||||
#include <nsIWebBrowser.h>
|
#include <nsIWebBrowser.h>
|
||||||
@@ -172,7 +172,6 @@ Yelper::Find (const char *aSearchString)
|
@@ -169,16 +171,9 @@ Yelper::Find (const char *aSearchString)
|
||||||
#ifdef HAVE_GECKO_1_9
|
|
||||||
|
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
|
||||||
rv = mFinder->Find (NS_ConvertUTF8toUTF16 (aSearchString),
|
rv = mFinder->Find (NS_ConvertUTF8toUTF16 (aSearchString),
|
||||||
PR_FALSE /* links only? */,
|
PR_FALSE /* links only? */,
|
||||||
- mHasFocus,
|
|
||||||
&found);
|
&found);
|
||||||
#else
|
-#endif
|
||||||
rv = mFinder->Find (NS_ConvertUTF8toUTF16 (aSearchString),
|
|
||||||
|
return NS_SUCCEEDED (rv) && (found == nsITypeAheadFind::FIND_FOUND || found == nsITypeAheadFind::FIND_WRAPPED);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user