aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-02-04 03:51:15 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-02-04 03:51:15 +0800
commit16a400b44e8bd55f408a52b9bf1252b9e908952d (patch)
tree88a98e21e908295a7bf70601545651ec4979e42a /calendar/gui
parenta2cd79db6dc55054470d24c6f46f021367144132 (diff)
downloadgsoc2013-evolution-16a400b44e8bd55f408a52b9bf1252b9e908952d.tar
gsoc2013-evolution-16a400b44e8bd55f408a52b9bf1252b9e908952d.tar.gz
gsoc2013-evolution-16a400b44e8bd55f408a52b9bf1252b9e908952d.tar.bz2
gsoc2013-evolution-16a400b44e8bd55f408a52b9bf1252b9e908952d.tar.lz
gsoc2013-evolution-16a400b44e8bd55f408a52b9bf1252b9e908952d.tar.xz
gsoc2013-evolution-16a400b44e8bd55f408a52b9bf1252b9e908952d.tar.zst
gsoc2013-evolution-16a400b44e8bd55f408a52b9bf1252b9e908952d.zip
gnome_dialog_grab_focus() on the Yes button. Fixes bug #1242.
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. svn path=/trunk/; revision=7947
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));