]> spindle.queued.net Git - midori/commitdiff
Load documentation as a proper file:// URI
authorChristian Dywan <christian@twotoasts.de>
Sat, 21 Feb 2009 23:04:28 +0000 (00:04 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 21 Feb 2009 23:04:28 +0000 (00:04 +0100)
midori/midori-browser.c

index c5c228b6c46f0ff0721cf7f955f08cc171a33d55..af7c66cb0cda53630d12d66b14dd0cab9117abea 100644 (file)
@@ -2624,12 +2624,10 @@ _action_help_link_activate (GtkAction*     action,
     if  (!strncmp ("HelpContents", action_name, 12))
     {
         #ifdef DOCDIR
-        uri = DOCDIR "/midori/user/midori.html";
-        if (!g_file_test (uri, G_FILE_TEST_EXISTS))
-            uri = "error:nodocs " DOCDIR "/midori/user/midori.html";
-        #else
-        uri = "error:nodocs " DATADIR "/doc/midori/user/midori.html";
+        uri = "file://" DOCDIR "/midori/user/midori.html";
+        if (!g_file_test (DOCDIR "/midori/user/midori.html", G_FILE_TEST_EXISTS))
         #endif
+            uri = "error:nodocs " DOCDIR "/midori/user/midori.html";
     }
     else if  (!strncmp ("HelpFAQ", action_name, 7))
         uri = "http://wiki.xfce.org/_export/xhtml/midori_faq";