2014-03-03 12:40:44 +00:00
|
|
|
diff -up evolution-3.11.91/addressbook/gui/contact-editor/e-contact-editor.c.help-contents evolution-3.11.91/addressbook/gui/contact-editor/e-contact-editor.c
|
|
|
|
--- evolution-3.11.91/addressbook/gui/contact-editor/e-contact-editor.c.help-contents 2014-03-03 01:37:23.000000000 +0100
|
|
|
|
+++ evolution-3.11.91/addressbook/gui/contact-editor/e-contact-editor.c 2014-03-03 13:37:40.924928474 +0100
|
2014-02-17 08:19:15 +00:00
|
|
|
@@ -4281,6 +4281,11 @@ e_contact_editor_init (EContactEditor *e
|
2013-11-11 20:42:44 +00:00
|
|
|
g_signal_connect (
|
|
|
|
widget, "clicked",
|
|
|
|
G_CALLBACK (show_help_cb), e_contact_editor);
|
|
|
|
+ if (!e_misc_utils_is_help_package_installed ()) {
|
|
|
|
+ gtk_widget_set_sensitive (widget, FALSE);
|
|
|
|
+ gtk_widget_hide (widget);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
widget = e_builder_get_widget (
|
2014-01-13 07:34:19 +00:00
|
|
|
e_contact_editor->priv->builder, "button-web-expand");
|
2013-11-11 20:42:44 +00:00
|
|
|
g_signal_connect_swapped (
|
2014-03-03 12:40:44 +00:00
|
|
|
diff -up evolution-3.11.91/calendar/gui/dialogs/comp-editor.c.help-contents evolution-3.11.91/calendar/gui/dialogs/comp-editor.c
|
|
|
|
--- evolution-3.11.91/calendar/gui/dialogs/comp-editor.c.help-contents 2014-03-03 01:37:23.000000000 +0100
|
|
|
|
+++ evolution-3.11.91/calendar/gui/dialogs/comp-editor.c 2014-03-03 13:37:40.924928474 +0100
|
|
|
|
@@ -2168,6 +2168,12 @@ comp_editor_init (CompEditor *editor)
|
2013-11-11 20:42:44 +00:00
|
|
|
G_BINDING_SYNC_CREATE);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ action = gtk_action_group_get_action (action_group, "help");
|
|
|
|
+ if (action && !e_misc_utils_is_help_package_installed ()) {
|
|
|
|
+ gtk_action_set_visible (action, FALSE);
|
|
|
|
+ gtk_action_set_sensitive (action, FALSE);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
action_group = gtk_action_group_new ("individual");
|
|
|
|
gtk_action_group_set_translation_domain (
|
|
|
|
action_group, GETTEXT_PACKAGE);
|
2014-03-03 12:40:44 +00:00
|
|
|
diff -up evolution-3.11.91/e-util/e-misc-utils.c.help-contents evolution-3.11.91/e-util/e-misc-utils.c
|
|
|
|
--- evolution-3.11.91/e-util/e-misc-utils.c.help-contents 2014-02-11 14:39:16.000000000 +0100
|
|
|
|
+++ evolution-3.11.91/e-util/e-misc-utils.c 2014-03-03 13:37:40.925928474 +0100
|
2014-02-17 08:19:15 +00:00
|
|
|
@@ -2102,3 +2102,20 @@ e_binding_transform_uid_to_source (GBind
|
2013-11-11 20:42:44 +00:00
|
|
|
|
|
|
|
return success;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+gboolean
|
|
|
|
+e_misc_utils_is_help_package_installed (void)
|
|
|
|
+{
|
|
|
|
+ gboolean is_installed;
|
|
|
|
+ gchar *path;
|
|
|
|
+
|
|
|
|
+ /* Viewing user documentation requires the evolution-help
|
|
|
|
+ * package. Look for one of the files it installs. */
|
|
|
|
+ path = g_build_filename (EVOLUTION_DATADIR, "help", "C", PACKAGE, "index.page", NULL);
|
|
|
|
+
|
|
|
|
+ is_installed = g_file_test (path, G_FILE_TEST_IS_REGULAR);
|
|
|
|
+
|
|
|
|
+ g_free (path);
|
|
|
|
+
|
|
|
|
+ return is_installed;
|
|
|
|
+}
|
2014-03-03 12:40:44 +00:00
|
|
|
diff -up evolution-3.11.91/e-util/e-misc-utils.h.help-contents evolution-3.11.91/e-util/e-misc-utils.h
|
|
|
|
--- evolution-3.11.91/e-util/e-misc-utils.h.help-contents 2014-03-03 01:37:23.000000000 +0100
|
|
|
|
+++ evolution-3.11.91/e-util/e-misc-utils.h 2014-03-03 13:37:40.925928474 +0100
|
2014-01-13 07:34:19 +00:00
|
|
|
@@ -184,6 +184,8 @@ gboolean e_binding_transform_uid_to_sour
|
2013-11-11 20:42:44 +00:00
|
|
|
GValue *target_value,
|
|
|
|
ESourceRegistry *registry);
|
|
|
|
|
|
|
|
+gboolean e_misc_utils_is_help_package_installed (void);
|
|
|
|
+
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* E_MISC_UTILS_H */
|
2014-03-03 12:40:44 +00:00
|
|
|
diff -up evolution-3.11.91/e-util/e-preferences-window.c.help-contents evolution-3.11.91/e-util/e-preferences-window.c
|
|
|
|
--- evolution-3.11.91/e-util/e-preferences-window.c.help-contents 2014-02-16 15:11:01.000000000 +0100
|
|
|
|
+++ evolution-3.11.91/e-util/e-preferences-window.c 2014-03-03 13:37:40.925928474 +0100
|
2014-02-17 08:19:15 +00:00
|
|
|
@@ -385,6 +385,11 @@ e_preferences_window_init (EPreferencesW
|
2013-11-11 20:42:44 +00:00
|
|
|
GTK_BUTTON_BOX (container), widget, TRUE);
|
|
|
|
gtk_widget_show (widget);
|
|
|
|
|
|
|
|
+ if (!e_misc_utils_is_help_package_installed ()) {
|
|
|
|
+ gtk_widget_set_sensitive (widget, FALSE);
|
|
|
|
+ gtk_widget_hide (widget);
|
|
|
|
+ }
|
|
|
|
+
|
2014-02-17 08:19:15 +00:00
|
|
|
widget = e_dialog_button_new_with_icon ("window-close", _("_Close"));
|
2013-11-11 20:42:44 +00:00
|
|
|
g_signal_connect_swapped (
|
|
|
|
widget, "clicked",
|
2014-03-03 12:40:44 +00:00
|
|
|
diff -up evolution-3.11.91/e-util/e-send-options.c.help-contents evolution-3.11.91/e-util/e-send-options.c
|
|
|
|
--- evolution-3.11.91/e-util/e-send-options.c.help-contents 2014-03-03 01:37:23.000000000 +0100
|
|
|
|
+++ evolution-3.11.91/e-util/e-send-options.c 2014-03-03 13:37:40.925928474 +0100
|
2014-01-13 07:34:19 +00:00
|
|
|
@@ -439,6 +439,7 @@ get_widgets (ESendOptionsDialog *sod)
|
2013-11-11 20:42:44 +00:00
|
|
|
{
|
|
|
|
ESendOptionsDialogPrivate *priv;
|
|
|
|
GtkBuilder *builder;
|
|
|
|
+ GtkWidget *helpbutton;
|
|
|
|
|
|
|
|
priv = sod->priv;
|
|
|
|
builder = sod->priv->builder;
|
2014-01-13 07:34:19 +00:00
|
|
|
@@ -478,6 +479,12 @@ get_widgets (ESendOptionsDialog *sod)
|
2013-11-11 20:42:44 +00:00
|
|
|
priv->accepted_label = e_builder_get_widget (builder, "accepted-label");
|
|
|
|
priv->completed_label = e_builder_get_widget (builder, "completed-label");
|
|
|
|
|
|
|
|
+ helpbutton = e_builder_get_widget (builder, "helpbutton1");
|
|
|
|
+ if (helpbutton && !e_misc_utils_is_help_package_installed ()) {
|
|
|
|
+ gtk_widget_set_sensitive (helpbutton, FALSE);
|
|
|
|
+ gtk_widget_hide (helpbutton);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
return (priv->priority
|
|
|
|
&& priv->security
|
|
|
|
&& priv->status
|
2014-03-03 12:40:44 +00:00
|
|
|
diff -up evolution-3.11.91/plugins/email-custom-header/email-custom-header.c.help-contents evolution-3.11.91/plugins/email-custom-header/email-custom-header.c
|
|
|
|
--- evolution-3.11.91/plugins/email-custom-header/email-custom-header.c.help-contents 2014-03-03 01:37:23.000000000 +0100
|
|
|
|
+++ evolution-3.11.91/plugins/email-custom-header/email-custom-header.c 2014-03-03 13:39:03.723924965 +0100
|
2014-02-17 08:19:15 +00:00
|
|
|
@@ -118,6 +118,8 @@ static gboolean
|
2013-11-11 20:42:44 +00:00
|
|
|
epech_get_widgets (CustomHeaderOptionsDialog *mch)
|
|
|
|
{
|
|
|
|
CustomHeaderOptionsDialogPrivate *priv;
|
|
|
|
+ GtkWidget *helpbutton;
|
|
|
|
+
|
|
|
|
priv = mch->priv;
|
|
|
|
|
|
|
|
#define EMAIL_CUSTOM_HEADER(name) e_builder_get_widget (priv->builder, name)
|
2014-02-17 08:19:15 +00:00
|
|
|
@@ -128,6 +130,13 @@ epech_get_widgets (CustomHeaderOptionsDi
|
2013-11-11 20:42:44 +00:00
|
|
|
|
2014-03-03 12:40:44 +00:00
|
|
|
priv->page = EMAIL_CUSTOM_HEADER ("email-custom-header-vbox");
|
2013-11-11 20:42:44 +00:00
|
|
|
priv->header_table = EMAIL_CUSTOM_HEADER ("email-custom-header-options");
|
|
|
|
+
|
|
|
|
+ helpbutton = EMAIL_CUSTOM_HEADER ("helpbutton1");
|
|
|
|
+ if (helpbutton && !e_misc_utils_is_help_package_installed ()) {
|
|
|
|
+ gtk_widget_set_sensitive (helpbutton, FALSE);
|
|
|
|
+ gtk_widget_hide (helpbutton);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
#undef EMAIL_CUSTOM_HEADER
|
|
|
|
|
|
|
|
return (priv->page
|
2014-03-03 12:40:44 +00:00
|
|
|
diff -up evolution-3.11.91/shell/e-shell-window-actions.c.help-contents evolution-3.11.91/shell/e-shell-window-actions.c
|
|
|
|
--- evolution-3.11.91/shell/e-shell-window-actions.c.help-contents 2014-02-17 15:53:16.000000000 +0100
|
|
|
|
+++ evolution-3.11.91/shell/e-shell-window-actions.c 2014-03-03 13:37:40.926928474 +0100
|
2014-01-13 07:34:19 +00:00
|
|
|
@@ -1413,6 +1413,11 @@ e_shell_window_actions_init (EShellWindo
|
2010-05-08 15:10:00 +00:00
|
|
|
if (path == NULL)
|
2010-07-13 13:56:22 +00:00
|
|
|
gtk_action_set_visible (ACTION (SUBMIT_BUG), FALSE);
|
2010-05-08 15:10:00 +00:00
|
|
|
g_free (path);
|
|
|
|
+
|
2013-11-11 20:42:44 +00:00
|
|
|
+ if (!e_misc_utils_is_help_package_installed ()) {
|
2010-05-08 15:10:00 +00:00
|
|
|
+ gtk_action_set_visible (ACTION (CONTENTS), FALSE);
|
2013-10-14 08:18:08 +00:00
|
|
|
+ gtk_action_set_sensitive (ACTION (CONTENTS), FALSE);
|
|
|
|
+ }
|
2010-05-08 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
2013-04-29 09:26:15 +00:00
|
|
|
GtkWidget *
|