[gnote] Fix opening help pages using URI



commit 273bb12d3e672c35cd9e36f4eb7c7bf29c28c110
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Mon Apr 22 22:28:36 2013 +0300

    Fix opening help pages using URI
    
    Fix URI handling in utils::show_help().
    Fixes bug 698327.
    Thanks Luc Pionchon.

 src/utils.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/utils.cpp b/src/utils.cpp
index 3b7a690..b157b29 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -126,9 +126,12 @@ namespace gnote {
     void show_help(const std::string & filename, const std::string & link_id,
                    GdkScreen *screen, Gtk::Window *parent)
     {
+      // "help:" URIs are "help:document[/page][?query][#frag]"
+      // See resolve_help_uri () at,
+      // https://git.gnome.org/browse/yelp/tree/libyelp/yelp-uri.c#n811
       std::string uri = "help:" + filename;
       if(!link_id.empty()) {
-        uri += "#" + link_id;
+        uri += "/" + link_id;
       }
       GError *error = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]