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
This commit is contained in:
Mike Fleetwood 2019-02-24 12:22:48 +00:00 committed by Curtis Gedak
parent 4ef3ef3312
commit 5aca85e4ad
1 changed files with 3 additions and 4 deletions

View File

@ -1777,10 +1777,9 @@ void Win_GParted::show_help_dialog( const Glib::ustring & filename /* E.g., gpar
GError *error = NULL ; GError *error = NULL ;
GdkScreen *gscreen = NULL ; GdkScreen *gscreen = NULL ;
Glib::ustring uri = "ghelp:" + filename ; Glib::ustring uri = "help:" + filename;
if (link_id .size() > 0 ) { if (link_id.size() > 0)
uri = uri + "?" + link_id ; uri = uri + "/" + link_id;
}
gscreen = get_window()->get_screen()->gobj(); gscreen = get_window()->get_screen()->gobj();
gtk_show_uri( gscreen, uri .c_str(), gtk_get_current_event_time(), &error ) ; gtk_show_uri( gscreen, uri .c_str(), gtk_get_current_event_time(), &error ) ;