diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2004-05-04 08:42:35 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2004-05-04 08:42:35 +0800 |
commit | 2cf59d445ea90293065eedb8a29a2b97c287b906 (patch) | |
tree | 4f8052d613c0c42f4bac21a12a4bd12888d829e5 /addressbook | |
parent | b3bb9e9c4b2e846eca226e98444b1b648309664b (diff) | |
download | gsoc2013-evolution-2cf59d445ea90293065eedb8a29a2b97c287b906.tar.gz gsoc2013-evolution-2cf59d445ea90293065eedb8a29a2b97c287b906.tar.zst gsoc2013-evolution-2cf59d445ea90293065eedb8a29a2b97c287b906.zip |
Implement. (e_contact_editor_init): Hook up the help button.
2004-05-03 Hans Petter Jansson <hpj@ximian.com>
* 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
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 8 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/contact-editor.glade | 15 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 17 |
3 files changed, 26 insertions, 14 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 35fad91839..11439aaf87 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2004-05-03 Hans Petter Jansson <hpj@ximian.com> + + * 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. + 2004-05-03 Larry Ewing <lewing@ximian.com> * gui/component/ldap-config.glade: bump the maximum download limit 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 @@ <property name="modal">False</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property> - <property name="decorated">True</property> - <property name="skip_taskbar_hint">False</property> - <property name="skip_pager_hint">False</property> - <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> - <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="has_separator">False</property> <child internal-child="vbox"> @@ -30,14 +25,13 @@ <property name="layout_style">GTK_BUTTONBOX_END</property> <child> - <widget class="GtkButton" id="helpbutton1"> + <widget class="GtkButton" id="button-help"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-help</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">True</property> <property name="response_id">-11</property> </widget> </child> @@ -50,7 +44,6 @@ <property name="label">gtk-cancel</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">True</property> <property name="response_id">-6</property> </widget> </child> @@ -64,7 +57,6 @@ <property name="label">gtk-ok</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">True</property> <property name="response_id">-5</property> </widget> </child> @@ -241,7 +233,6 @@ <property name="label" translatable="yes">_Categories</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">0</property> @@ -359,7 +350,6 @@ <property name="label" translatable="yes">Full _Name...</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">0</property> @@ -666,7 +656,6 @@ <property name="label" translatable="yes">Wants to receive HTML mail</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> @@ -2152,8 +2141,6 @@ <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> - <property name="overwrite">False</property> - <property name="accepts_tab">True</property> <property name="justification">GTK_JUSTIFY_LEFT</property> <property name="wrap_mode">GTK_WRAP_NONE</property> <property name="cursor_visible">True</property> 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) |