diff --git a/capplets/keyboard/ChangeLog b/capplets/keyboard/ChangeLog index 78fb242b9..76146ae26 100644 --- a/capplets/keyboard/ChangeLog +++ b/capplets/keyboard/ChangeLog @@ -1,3 +1,8 @@ +2002-05-09 Jody Goldberg + + * gnome-keyboard-properties.c (dialog_response) : support help. + * gnome-keyboard-properties.glade : add help. + 2002-05-09 Jody Goldberg * gnome-keyboard-properties.glade : long forgotten atk patch from Dave. diff --git a/capplets/keyboard/gnome-keyboard-properties.c b/capplets/keyboard/gnome-keyboard-properties.c index 8afc665f8..f829da4fa 100644 --- a/capplets/keyboard/gnome-keyboard-properties.c +++ b/capplets/keyboard/gnome-keyboard-properties.c @@ -223,14 +223,20 @@ dialog_response (GtkWidget *widget, gint response_id, GConfChangeSet *changeset) { - switch (response_id) - { - case RESPONSE_CLOSE: - case GTK_RESPONSE_DELETE_EVENT: - default: + if (response_id == GTK_RESPONSE_HELP) { + GError *error = NULL; + + /* TODO : get this written */ + gnome_help_display_desktop (NULL, + "control-center-manual", + "config-keyboard.xml", + "CONFIGURATION", &error); + if (error) { + g_warning ("help error: %s\n", error->message); + g_error_free (error); + } + } else gtk_main_quit (); - break; - } } static void diff --git a/capplets/keyboard/gnome-keyboard-properties.glade b/capplets/keyboard/gnome-keyboard-properties.glade index 08c61470d..89a5b5be4 100644 --- a/capplets/keyboard/gnome-keyboard-properties.glade +++ b/capplets/keyboard/gnome-keyboard-properties.glade @@ -28,7 +28,19 @@ 10 - + + True + True + True + gtk-help + True + GTK_RELIEF_NORMAL + -11 + + + + + True True True