[easytag] Open the online help if Yelp is not installed
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Open the online help if Yelp is not installed
- Date: Sun, 28 Feb 2016 22:05:09 +0000 (UTC)
commit 3dbfd06126c259d163541b2b49d937df3692266d
Author: David King <amigadave amigadave com>
Date: Sun Feb 28 22:02:17 2016 +0000
Open the online help if Yelp is not installed
If Yelp is not installed, or fails to start, show the online help instead.
https://mail.gnome.org/archives/easytag-list/2016-February/msg00009.html
src/application.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/application.c b/src/application.c
index da8cbda..ea0c196 100644
--- a/src/application.c
+++ b/src/application.c
@@ -52,19 +52,23 @@ on_help (GSimpleAction *action,
{
GError *error = NULL;
-#ifndef G_OS_WIN32
+ /* TODO: Link to locally-installed help on Windows. */
gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (MainWindow)),
"help:easytag", GDK_CURRENT_TIME, &error);
-#else /* G_OS_WIN32 */
- /* TODO: Link to locally-installed help on Windows. */
+
+ if (error)
+ {
+ g_debug ("Error while opening help: %s", error->message);
+ g_clear_error (&error);
+ }
+
gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (MainWindow)),
"https://help.gnome.org/users/easytag/stable/",
GDK_CURRENT_TIME, &error);
-#endif
if (error)
{
- g_debug ("Error while opening help: %s", error->message);
+ g_debug ("Error while opening online help: %s", error->message);
g_error_free (error);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]