From 2cf59d445ea90293065eedb8a29a2b97c287b906 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Tue, 4 May 2004 00:42:35 +0000 Subject: Implement. (e_contact_editor_init): Hook up the help button. 2004-05-03 Hans Petter Jansson * gui/contact-editor/e-contact-editor.c (show_help_cb): Implement. (e_contact_editor_init): Hook up the help button. * gui/contact-editor/contact-editor.glade: Give the help button a sensible name. svn path=/trunk/; revision=25772 --- addressbook/gui/contact-editor/contact-editor.glade | 15 +-------------- addressbook/gui/contact-editor/e-contact-editor.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 14 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/contact-editor/contact-editor.glade b/addressbook/gui/contact-editor/contact-editor.glade index a398bc4fff..c9d7b07437 100644 --- a/addressbook/gui/contact-editor/contact-editor.glade +++ b/addressbook/gui/contact-editor/contact-editor.glade @@ -11,11 +11,6 @@ False True False - True - False - False - GDK_WINDOW_TYPE_HINT_DIALOG - GDK_GRAVITY_NORTH_WEST False @@ -30,14 +25,13 @@ GTK_BUTTONBOX_END - + True True True gtk-help True GTK_RELIEF_NORMAL - True -11 @@ -50,7 +44,6 @@ gtk-cancel True GTK_RELIEF_NORMAL - True -6 @@ -64,7 +57,6 @@ gtk-ok True GTK_RELIEF_NORMAL - True -5 @@ -241,7 +233,6 @@ _Categories True GTK_RELIEF_NORMAL - True 0 @@ -359,7 +350,6 @@ Full _Name... True GTK_RELIEF_NORMAL - True 0 @@ -666,7 +656,6 @@ Wants to receive HTML mail True GTK_RELIEF_NORMAL - True False False True @@ -2152,8 +2141,6 @@ True True True - False - True GTK_JUSTIFY_LEFT GTK_WRAP_NONE True 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 #include #include +#include #include #include @@ -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) -- cgit