From 5aca85e4ad040bcc1410fde958e826312ff8e125 Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Sun, 24 Feb 2019 12:22:48 +0000 Subject: [PATCH] Launch help from GParted using the new GNOME 3 help: prefix (!24) Update GParted to specify the GParted Manual using the new GNOME 3 way with the 'help:' prefix to avoid yelp reporting this error: Document Not Found The URI 'ghelp:gparted' does not point to a valid page. Closes !24 - Port to GNOME 3 yelp-tools documentation infrastructure --- src/Win_GParted.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc index 77fc85af..7ebbeec0 100644 --- a/src/Win_GParted.cc +++ b/src/Win_GParted.cc @@ -1777,10 +1777,9 @@ void Win_GParted::show_help_dialog( const Glib::ustring & filename /* E.g., gpar GError *error = NULL ; GdkScreen *gscreen = NULL ; - Glib::ustring uri = "ghelp:" + filename ; - if (link_id .size() > 0 ) { - uri = uri + "?" + link_id ; - } + Glib::ustring uri = "help:" + filename; + if (link_id.size() > 0) + uri = uri + "/" + link_id; gscreen = get_window()->get_screen()->gobj(); gtk_show_uri( gscreen, uri .c_str(), gtk_get_current_event_time(), &error ) ;