diff --git a/capplets/mouse/ChangeLog b/capplets/mouse/ChangeLog index 5fe62cfa3..ab1c2d630 100644 --- a/capplets/mouse/ChangeLog +++ b/capplets/mouse/ChangeLog @@ -1,3 +1,8 @@ +2002-05-09 Jody Goldberg + + * gnome-mouse-properties.c (dialog_button_clicked_cb) : enable help. + (main) : ditto. + 2002-05-09 Jody Goldberg * gnome-mouse-properties.glade : long forgotten atk patch from Dave. diff --git a/capplets/mouse/gnome-mouse-properties.c b/capplets/mouse/gnome-mouse-properties.c index 3fab4b755..3ec4d32c0 100644 --- a/capplets/mouse/gnome-mouse-properties.c +++ b/capplets/mouse/gnome-mouse-properties.c @@ -669,12 +669,20 @@ create_dialog (void) static void dialog_button_clicked_cb (GtkDialog *dialog, gint response_id, GConfChangeSet *changeset) { - switch (response_id) { - case GTK_RESPONSE_CLOSE: - default: + if (response_id == GTK_RESPONSE_HELP) { + GError *error = NULL; + + /* TODO : get this written */ + gnome_help_display_desktop (NULL, + "control-center-manual", + "config-mouse.xml", + "CONFIGURATION", &error); + if (error) { + g_warning ("help error: %s\n", error->message); + g_error_free (error); + } + } else gtk_main_quit (); - break; - } } int @@ -716,6 +724,7 @@ main (int argc, char **argv) dialog_win = gtk_dialog_new_with_buttons (_("Mouse Properties"), NULL, 0, + GTK_STOCK_HELP, GTK_RESPONSE_HELP, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); diff --git a/capplets/mouse/gnome-mouse-properties.glade b/capplets/mouse/gnome-mouse-properties.glade index 6d176fe27..be8ca54e5 100644 --- a/capplets/mouse/gnome-mouse-properties.glade +++ b/capplets/mouse/gnome-mouse-properties.glade @@ -27,26 +27,26 @@ 10 - + True True True gtk-help True GTK_RELIEF_NORMAL - 0 + -11 - + True True True gtk-close True GTK_RELIEF_NORMAL - 0 + 2