From b2d82f7fb8ea51bd8d67d2482cc606c06e5a560b Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Mon, 15 Jan 2001 08:11:57 +0000 Subject: Set the default button to `Yes' here. 2001-01-15 Miguel de Icaza * mail-callbacks.c (configure_mail): Set the default button to `Yes' here. svn path=/trunk/; revision=7498 --- mail/mail-callbacks.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 47122737c3..c5472d961b 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -87,6 +87,12 @@ configure_mail (FolderBrowser *fb) GNOME_STOCK_BUTTON_YES, GNOME_STOCK_BUTTON_NO, NULL); + /* + * Focus YES + */ + gnome_dialog_set_default (GNOME_DIALOG (dialog), 0); + gtk_widget_grab_focus (GTK_WIDGET (GNOME_DIALOG (dialog)->buttons->data)); + gnome_dialog_set_parent ( GNOME_DIALOG (dialog), GTK_WINDOW (gtk_widget_get_ancestor ( -- cgit