-#ifdef CONVERSION_GNOME_TO_GTK
- gnome_help_display("grip.xml",section,NULL);
-#endif
+ if (section) {
+ /*
+ * This doesn't work for the moment: the "#section" seems to be
+ * ignored by g_app_info_launch_default_for_uri().
+ */
+ uri = g_strdup_printf("%s#%s", GRIP_HTML_DOC_URL, section);
+ }
+ else {
+ uri = g_strdup_printf("%s", GRIP_HTML_DOC_URL);
+ }
+
+ g_app_info_launch_default_for_uri(uri, NULL, NULL);
+ g_free (uri);