aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/save-comp.c8
1 files changed, 5 insertions, 3 deletions
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));