Blame SOURCES/evolution-2.30.1-help-contents.patch

c72ca9
diff -up evolution-3.8.5/shell/e-shell-window-actions.c.help-contents evolution-3.8.5/shell/e-shell-window-actions.c
c72ca9
--- evolution-3.8.5/shell/e-shell-window-actions.c.help-contents	2013-07-23 14:52:25.000000000 +0200
c72ca9
+++ evolution-3.8.5/shell/e-shell-window-actions.c	2013-10-09 18:34:01.179570314 +0200
c72ca9
@@ -1402,6 +1402,17 @@ e_shell_window_actions_init (EShellWindo
c72ca9
 	if (path == NULL)
c72ca9
 		gtk_action_set_visible (ACTION (SUBMIT_BUG), FALSE);
c72ca9
 	g_free (path);
c72ca9
+
c72ca9
+	/* Viewing user documentation requires the evolution-help package.
c72ca9
+	 * Look for one of the files it installs. */
c72ca9
+	path = g_build_filename (
c72ca9
+		EVOLUTION_DATADIR, "help", "C",
c72ca9
+		PACKAGE, "index.page", NULL);
c72ca9
+	if (!g_file_test (path, G_FILE_TEST_IS_REGULAR)) {
c72ca9
+		gtk_action_set_visible (ACTION (CONTENTS), FALSE);
c72ca9
+		gtk_action_set_sensitive (ACTION (CONTENTS), FALSE);
c72ca9
+	}
c72ca9
+	g_free (path);
c72ca9
 }
c72ca9
 
c72ca9
 static GList *