aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/dialogs/save-comp.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 3a4f728d60..bc67f54196 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-03 Federico Mena Quintero <federico@ximian.com>
+
+ * gui/dialogs/save-comp.c (save_component_dialog):
+ gnome_dialog_grab_focus() on the Yes button. Fixes bug #1242.
+
2001-01-30 Kjartan Maraas <kmaraas@gnome.org>
* gui/e-calendar-table.c: Mark a string for translation.
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));