<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -54,3 +54,4 @@ data/default-prefs.js
 gtester.xml
 report.html
 test/test
+install_manifest.txt</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,16 @@ project(chmsee)
 cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR)
 set(PACKAGE_VERSION &quot;1.0.7&quot; )
 find_package(PkgConfig)
-pkg_check_modules (CHMSEE REQUIRED gthread-2.0 glib-2.0 libxml-2.0 gtk+-2.0 libglade-2.0 libxul-embedding-unstable&gt;=1.9 libxul-embedding-unstable&lt;=1.9.0.999)
+pkg_check_modules (CHMSEE REQUIRED gthread-2.0 glib-2.0 libxml-2.0 gtk+-2.0 libglade-2.0)
+pkg_search_module(XULRUNNER libxul-embedding-unstable&gt;=1.9 xulrunner-gtkmozembed&gt;=1.8)
+set(CHMSEE_INCLUDE_DIRS ${CHMSEE_INCLUDE_DIRS} ${XULRUNNER_INCLUDE_DIRS})
+set(CHMSEE_CFLAGS_OTHER ${CHMSEE_CFLAGS_OTHER} ${XULRUNNER_CFLAGS_OTHER} -Wall)
+set(CHMSEE_LIBRARY_DIRS ${CHMSEE_LIBRARY_DIRS} ${XULRUNNER_LIBRARY_DIRS})
+set(CHMSEE_LIBRARIES ${CHMSEE_LIBRARIES} ${XULRUNNER_LIBRARIES} chm gcrypt)
+if(XULRUNNER_VERSION STRLESS &quot;1.9&quot;)
+	set(XULRUNNER18 1)
+	set(GECKO_LIB_ROOT &quot;${XULRUNNER_LIBDIR}&quot;)
+endif()
 
 set(CHMSEE_BOOKMARK_FILE &quot;chmsee_bookmarks&quot;)
 set(CHMSEE_BOOKINFO_FILE &quot;chmsee_bookinfo&quot;)</diff>
      <filename>CMakeLists.txt</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,7 @@ Features
 ~~~~~~~~
 
 * issue 47: jump to specify index page from command line.
+* issue 48: support xulrunner 1.8 again.
 
 l10n
 ~~~~</diff>
      <filename>NEWS</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,6 @@ include_directories(
   ${CHMSEE_INCLUDE_DIRS}
   )
 add_definitions(
-  -Wall
   ${CHMSEE_CFLAGS_OTHER}
   )
 add_custom_command(
@@ -49,8 +48,6 @@ set(CHMSEE_SRCS
 add_library(chmseelib STATIC ${CHMSEE_SRCS})
 target_link_libraries(chmseelib
   ${CHMSEE_LIBRARIES}
-  chm
-  gcrypt
   )
 
 add_executable(chmsee main.cpp)</diff>
      <filename>src/CMakeLists.txt</filename>
    </modified>
    <modified>
      <diff>@@ -9,3 +9,6 @@
 #define PACKAGE &quot;chmsee&quot;
 #define GETTEXT_PACKAGE &quot;chmsee&quot;
 #define PACKAGE_LOCALE_DIR &quot;${CMAKE_INSTALL_PREFIX}/share/locale&quot;
+#cmakedefine XULRUNNER_VERSION &quot;${XULRUNNER_VERSION}&quot;
+#cmakedefine XULRUNNER18 1
+#cmakedefine GECKO_LIB_ROOT &quot;${GECKO_LIB_ROOT}&quot;</diff>
      <filename>src/config.h.in</filename>
    </modified>
    <modified>
      <diff>@@ -53,7 +53,13 @@
 #include &lt;nsMemory.h&gt;
 #include &lt;nsEmbedString.h&gt;
 #include &lt;nsIPrefService.h&gt;
-#include &lt;nsICommandManager.h&gt;
+#if XULRUNNER18
+  #include &lt;commandhandler/nsICommandManager.h&gt;
+  #include &lt;locale/nsILocaleService.h&gt;
+#else
+  #include &lt;nsICommandManager.h&gt;
+  #include &lt;nsILocaleService.h&gt;
+#endif
 #include &lt;nsIInterfaceRequestorUtils.h&gt;
 #include &lt;nsIDOMWindow.h&gt;
 
@@ -65,7 +71,6 @@
 #include &lt;nsILocalFile.h&gt;
 #include &lt;nsIDOMMouseEvent.h&gt;
 #include &lt;nsIWebBrowserFind.h&gt;
-#include &lt;nsILocaleService.h&gt;
 #include &lt;nsStringAPI.h&gt;
 
 #include &quot;utils/utils.h&quot;</diff>
      <filename>src/gecko_utils.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>012b3292c12f4aa89080a6be25bf0795a3719aa0</id>
    </parent>
  </parents>
  <author>
    <name>LI Daobing</name>
    <email>lidaobing@gmail.com</email>
  </author>
  <url>http://github.com/lidaobing/chmsee/commit/320f40990ce0bfe6449fbe2cb54733e8c446137e</url>
  <id>320f40990ce0bfe6449fbe2cb54733e8c446137e</id>
  <committed-date>2009-08-01T09:56:04-07:00</committed-date>
  <authored-date>2009-08-01T09:56:04-07:00</authored-date>
  <message>issue 48: support xulrunner 1.8 again.</message>
  <tree>c07befacee3f2d701a83aef2f2469358512bbe90</tree>
  <committer>
    <name>LI Daobing</name>
    <email>lidaobing@gmail.com</email>
  </committer>
</commit>
