|
|
79117e |
diff -up evolution-3.8.5/addressbook/gui/contact-editor/e-contact-editor.c.help-contents evolution-3.8.5/addressbook/gui/contact-editor/e-contact-editor.c
|
|
|
79117e |
--- evolution-3.8.5/addressbook/gui/contact-editor/e-contact-editor.c.help-contents 2013-08-10 23:38:42.000000000 +0200
|
|
|
79117e |
+++ evolution-3.8.5/addressbook/gui/contact-editor/e-contact-editor.c 2013-11-11 21:09:06.861724501 +0100
|
|
|
79117e |
@@ -4157,6 +4157,11 @@ e_contact_editor_init (EContactEditor *e
|
|
|
79117e |
g_signal_connect (
|
|
|
79117e |
widget, "clicked",
|
|
|
79117e |
G_CALLBACK (show_help_cb), e_contact_editor);
|
|
|
79117e |
+ if (!e_misc_utils_is_help_package_installed ()) {
|
|
|
79117e |
+ gtk_widget_set_sensitive (widget, FALSE);
|
|
|
79117e |
+ gtk_widget_hide (widget);
|
|
|
79117e |
+ }
|
|
|
79117e |
+
|
|
|
79117e |
widget = e_builder_get_widget (
|
|
|
79117e |
e_contact_editor->builder, "button-web-expand");
|
|
|
79117e |
g_signal_connect_swapped (
|
|
|
79117e |
diff -up evolution-3.8.5/calendar/gui/dialogs/comp-editor.c.help-contents evolution-3.8.5/calendar/gui/dialogs/comp-editor.c
|
|
|
79117e |
--- evolution-3.8.5/calendar/gui/dialogs/comp-editor.c.help-contents 2013-07-23 14:52:33.000000000 +0200
|
|
|
79117e |
+++ evolution-3.8.5/calendar/gui/dialogs/comp-editor.c 2013-11-11 21:09:06.862724501 +0100
|
|
|
79117e |
@@ -2173,6 +2173,12 @@ comp_editor_init (CompEditor *editor)
|
|
|
79117e |
G_BINDING_SYNC_CREATE);
|
|
|
79117e |
}
|
|
|
79117e |
|
|
|
79117e |
+ action = gtk_action_group_get_action (action_group, "help");
|
|
|
79117e |
+ if (action && !e_misc_utils_is_help_package_installed ()) {
|
|
|
79117e |
+ gtk_action_set_visible (action, FALSE);
|
|
|
79117e |
+ gtk_action_set_sensitive (action, FALSE);
|
|
|
79117e |
+ }
|
|
|
79117e |
+
|
|
|
79117e |
action_group = gtk_action_group_new ("individual");
|
|
|
79117e |
gtk_action_group_set_translation_domain (
|
|
|
79117e |
action_group, GETTEXT_PACKAGE);
|
|
|
79117e |
diff -up evolution-3.8.5/e-util/e-misc-utils.c.help-contents evolution-3.8.5/e-util/e-misc-utils.c
|
|
|
79117e |
--- evolution-3.8.5/e-util/e-misc-utils.c.help-contents 2013-07-23 14:52:11.000000000 +0200
|
|
|
79117e |
+++ evolution-3.8.5/e-util/e-misc-utils.c 2013-11-11 21:09:06.863724501 +0100
|
|
|
79117e |
@@ -2053,3 +2053,20 @@ e_binding_transform_uid_to_source (GBind
|
|
|
79117e |
|
|
|
79117e |
return success;
|
|
|
79117e |
}
|
|
|
79117e |
+
|
|
|
79117e |
+gboolean
|
|
|
79117e |
+e_misc_utils_is_help_package_installed (void)
|
|
|
79117e |
+{
|
|
|
79117e |
+ gboolean is_installed;
|
|
|
79117e |
+ gchar *path;
|
|
|
79117e |
+
|
|
|
79117e |
+ /* Viewing user documentation requires the evolution-help
|
|
|
79117e |
+ * package. Look for one of the files it installs. */
|
|
|
79117e |
+ path = g_build_filename (EVOLUTION_DATADIR, "help", "C", PACKAGE, "index.page", NULL);
|
|
|
79117e |
+
|
|
|
79117e |
+ is_installed = g_file_test (path, G_FILE_TEST_IS_REGULAR);
|
|
|
79117e |
+
|
|
|
79117e |
+ g_free (path);
|
|
|
79117e |
+
|
|
|
79117e |
+ return is_installed;
|
|
|
79117e |
+}
|
|
|
79117e |
diff -up evolution-3.8.5/e-util/e-misc-utils.h.help-contents evolution-3.8.5/e-util/e-misc-utils.h
|
|
|
79117e |
--- evolution-3.8.5/e-util/e-misc-utils.h.help-contents 2013-07-23 14:52:11.000000000 +0200
|
|
|
79117e |
+++ evolution-3.8.5/e-util/e-misc-utils.h 2013-11-11 21:09:06.864724501 +0100
|
|
|
79117e |
@@ -183,6 +183,8 @@ gboolean e_binding_transform_uid_to_sour
|
|
|
79117e |
GValue *target_value,
|
|
|
79117e |
ESourceRegistry *registry);
|
|
|
79117e |
|
|
|
79117e |
+gboolean e_misc_utils_is_help_package_installed (void);
|
|
|
79117e |
+
|
|
|
79117e |
G_END_DECLS
|
|
|
79117e |
|
|
|
79117e |
#endif /* E_MISC_UTILS_H */
|
|
|
79117e |
diff -up evolution-3.8.5/e-util/e-preferences-window.c.help-contents evolution-3.8.5/e-util/e-preferences-window.c
|
|
|
79117e |
--- evolution-3.8.5/e-util/e-preferences-window.c.help-contents 2013-07-23 14:52:16.000000000 +0200
|
|
|
79117e |
+++ evolution-3.8.5/e-util/e-preferences-window.c 2013-11-11 21:09:06.864724501 +0100
|
|
|
79117e |
@@ -385,6 +385,11 @@ e_preferences_window_init (EPreferencesW
|
|
|
79117e |
GTK_BUTTON_BOX (container), widget, TRUE);
|
|
|
79117e |
gtk_widget_show (widget);
|
|
|
79117e |
|
|
|
79117e |
+ if (!e_misc_utils_is_help_package_installed ()) {
|
|
|
79117e |
+ gtk_widget_set_sensitive (widget, FALSE);
|
|
|
79117e |
+ gtk_widget_hide (widget);
|
|
|
79117e |
+ }
|
|
|
79117e |
+
|
|
|
79117e |
widget = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
|
|
|
79117e |
g_signal_connect_swapped (
|
|
|
79117e |
widget, "clicked",
|
|
|
79117e |
diff -up evolution-3.8.5/e-util/e-send-options.c.help-contents evolution-3.8.5/e-util/e-send-options.c
|
|
|
79117e |
--- evolution-3.8.5/e-util/e-send-options.c.help-contents 2013-07-23 14:51:59.000000000 +0200
|
|
|
79117e |
+++ evolution-3.8.5/e-util/e-send-options.c 2013-11-11 21:09:06.864724501 +0100
|
|
|
79117e |
@@ -440,6 +440,7 @@ get_widgets (ESendOptionsDialog *sod)
|
|
|
79117e |
{
|
|
|
79117e |
ESendOptionsDialogPrivate *priv;
|
|
|
79117e |
GtkBuilder *builder;
|
|
|
79117e |
+ GtkWidget *helpbutton;
|
|
|
79117e |
|
|
|
79117e |
priv = sod->priv;
|
|
|
79117e |
builder = sod->priv->builder;
|
|
|
79117e |
@@ -479,6 +480,12 @@ get_widgets (ESendOptionsDialog *sod)
|
|
|
79117e |
priv->accepted_label = e_builder_get_widget (builder, "accepted-label");
|
|
|
79117e |
priv->completed_label = e_builder_get_widget (builder, "completed-label");
|
|
|
79117e |
|
|
|
79117e |
+ helpbutton = e_builder_get_widget (builder, "helpbutton1");
|
|
|
79117e |
+ if (helpbutton && !e_misc_utils_is_help_package_installed ()) {
|
|
|
79117e |
+ gtk_widget_set_sensitive (helpbutton, FALSE);
|
|
|
79117e |
+ gtk_widget_hide (helpbutton);
|
|
|
79117e |
+ }
|
|
|
79117e |
+
|
|
|
79117e |
return (priv->priority
|
|
|
79117e |
&& priv->security
|
|
|
79117e |
&& priv->status
|
|
|
79117e |
diff -up evolution-3.8.5/plugins/email-custom-header/email-custom-header.c.help-contents evolution-3.8.5/plugins/email-custom-header/email-custom-header.c
|
|
|
79117e |
--- evolution-3.8.5/plugins/email-custom-header/email-custom-header.c.help-contents 2013-07-23 14:51:38.000000000 +0200
|
|
|
79117e |
+++ evolution-3.8.5/plugins/email-custom-header/email-custom-header.c 2013-11-11 21:09:06.865724501 +0100
|
|
|
79117e |
@@ -27,6 +27,7 @@
|
|
|
79117e |
#include <string.h>
|
|
|
79117e |
#include <glib/gi18n.h>
|
|
|
79117e |
|
|
|
79117e |
+#include "e-util/e-util.h"
|
|
|
79117e |
#include "mail/em-utils.h"
|
|
|
79117e |
#include "mail/em-event.h"
|
|
|
79117e |
#include "composer/e-msg-composer.h"
|
|
|
79117e |
@@ -117,6 +118,8 @@ static gboolean
|
|
|
79117e |
epech_get_widgets (CustomHeaderOptionsDialog *mch)
|
|
|
79117e |
{
|
|
|
79117e |
CustomHeaderOptionsDialogPrivate *priv;
|
|
|
79117e |
+ GtkWidget *helpbutton;
|
|
|
79117e |
+
|
|
|
79117e |
priv = mch->priv;
|
|
|
79117e |
|
|
|
79117e |
#define EMAIL_CUSTOM_HEADER(name) e_builder_get_widget (priv->builder, name)
|
|
|
79117e |
@@ -127,6 +130,13 @@ epech_get_widgets (CustomHeaderOptionsDi
|
|
|
79117e |
|
|
|
79117e |
priv->page = EMAIL_CUSTOM_HEADER ("email-custom-header-vbox");
|
|
|
79117e |
priv->header_table = EMAIL_CUSTOM_HEADER ("email-custom-header-options");
|
|
|
79117e |
+
|
|
|
79117e |
+ helpbutton = EMAIL_CUSTOM_HEADER ("helpbutton1");
|
|
|
79117e |
+ if (helpbutton && !e_misc_utils_is_help_package_installed ()) {
|
|
|
79117e |
+ gtk_widget_set_sensitive (helpbutton, FALSE);
|
|
|
79117e |
+ gtk_widget_hide (helpbutton);
|
|
|
79117e |
+ }
|
|
|
79117e |
+
|
|
|
79117e |
#undef EMAIL_CUSTOM_HEADER
|
|
|
79117e |
|
|
|
79117e |
return (priv->page
|
|
|
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
|
|
|
79117e |
--- evolution-3.8.5/shell/e-shell-window-actions.c.help-contents 2013-11-11 21:09:06.866724501 +0100
|
|
|
79117e |
+++ evolution-3.8.5/shell/e-shell-window-actions.c 2013-11-11 21:11:31.751714594 +0100
|
|
|
79117e |
@@ -1402,6 +1402,11 @@ e_shell_window_actions_init (EShellWindo
|
|
|
c72ca9 |
if (path == NULL)
|
|
|
c72ca9 |
gtk_action_set_visible (ACTION (SUBMIT_BUG), FALSE);
|
|
|
c72ca9 |
g_free (path);
|
|
|
c72ca9 |
+
|
|
|
79117e |
+ if (!e_misc_utils_is_help_package_installed ()) {
|
|
|
c72ca9 |
+ gtk_action_set_visible (ACTION (CONTENTS), FALSE);
|
|
|
c72ca9 |
+ gtk_action_set_sensitive (ACTION (CONTENTS), FALSE);
|
|
|
c72ca9 |
+ }
|
|
|
c72ca9 |
}
|
|
|
c72ca9 |
|
|
|
c72ca9 |
static GList *
|