From 16a400b44e8bd55f408a52b9bf1252b9e908952d Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sat, 3 Feb 2001 19:51:15 +0000 Subject: gnome_dialog_grab_focus() on the Yes button. Fixes bug #1242. 2001-02-03 Federico Mena Quintero * gui/dialogs/save-comp.c (save_component_dialog): gnome_dialog_grab_focus() on the Yes button. Fixes bug #1242. svn path=/trunk/; revision=7947 --- calendar/gui/dialogs/save-comp.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/save-comp.c b/calendar/gui/dialogs/save-comp.c index d68f661107..c36e98cb5a 100644 --- a/calendar/gui/dialogs/save-comp.c +++ b/calendar/gui/dialogs/save-comp.c @@ -36,11 +36,12 @@ /** * save_component_dialog: - * @widget: + * @parent: Window to use as the transient dialog's parent. * + * Pops up a dialog box asking the user whether he wants to save changes for + * a calendar component. * - * - * Return value: + * Return value: TRUE if changes shold be saved, FALSE otherwise. **/ gint save_component_dialog (GtkWindow *parent) @@ -55,6 +56,7 @@ save_component_dialog (GtkWindow *parent) NULL); gnome_dialog_set_default (GNOME_DIALOG (dialog), 0); + gnome_dialog_grab_focus (GNOME_DIALOG (dialog), 0); gnome_dialog_set_parent (GNOME_DIALOG (dialog), parent); return gnome_dialog_run_and_close (GNOME_DIALOG (dialog)); -- cgit v1.2.3