diff options
Diffstat (limited to 'addressbook/gui/contact-editor/e-contact-editor.c')
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 9395fc925f..0b9868b38c 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -38,6 +38,7 @@ #include <libgnomeui/gnome-window-icon.h> #include <libgnome/gnome-util.h> #include <libgnome/gnome-i18n.h> +#include <libgnome/gnome-help.h> #include <gdk-pixbuf/gdk-pixbuf.h> #include <gal/widgets/e-categories.h> @@ -1891,6 +1892,20 @@ app_delete_event_cb (GtkWidget *widget, GdkEvent *event, gpointer data) return TRUE; } +static void +show_help_cb (GtkWidget *widget, gpointer data) +{ + GError *error = NULL; + + gnome_help_display_desktop (NULL, + "evolution-" BASE_VERSION, + "usage-contact.xml", + "usage-contact-cards", + &error); + if (error != NULL) + g_warning ("%s", error->message); +} + static GList * add_to_tab_order(GList *list, GladeXML *gui, char *name) { @@ -1980,6 +1995,8 @@ e_contact_editor_init (EContactEditor *e_contact_editor) g_signal_connect (widget, "clicked", G_CALLBACK (file_save_and_close_cb), e_contact_editor); widget = glade_xml_get_widget (e_contact_editor->gui, "button-cancel"); g_signal_connect (widget, "clicked", G_CALLBACK (file_cancel_cb), e_contact_editor); + widget = glade_xml_get_widget (e_contact_editor->gui, "button-help"); + g_signal_connect (widget, "clicked", G_CALLBACK (show_help_cb), e_contact_editor); widget = glade_xml_get_widget(e_contact_editor->gui, "entry-fullname"); if (widget) |