summaryrefslogtreecommitdiff
path: root/src/trg-preferences-dialog.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-05-13 21:09:23 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-05-13 21:09:23 +0000
commit5604788e0b15b7be87d24ea7d80e60e9e9c27220 (patch)
tree5875de495aa30a24c0fc4253c0e0d492ea572a52 /src/trg-preferences-dialog.c
parentbde5ae0e400dc61f2eb64e7ffb9707b9c69b9113 (diff)
some small changes to utility dialogs to conform with GNOME HIG guide: use ok instead of apply if the dialog will close (duh), use default of ok if its non-destructive/easy to reverse (properties/remote prefs)
Diffstat (limited to 'src/trg-preferences-dialog.c')
-rw-r--r--src/trg-preferences-dialog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trg-preferences-dialog.c b/src/trg-preferences-dialog.c
index 41548b8..0010f71 100644
--- a/src/trg-preferences-dialog.c
+++ b/src/trg-preferences-dialog.c
@@ -390,6 +390,10 @@ static GObject *trg_preferences_dialog_constructor(GType type,
gtk_window_set_destroy_with_parent(GTK_WINDOW(object), TRUE);
gtk_dialog_add_button(GTK_DIALOG(object), GTK_STOCK_CLOSE,
GTK_RESPONSE_CLOSE);
+
+ gtk_dialog_set_default_response(GTK_DIALOG(object),
+ GTK_RESPONSE_CLOSE);
+
gtk_window_set_title(GTK_WINDOW(object), _("Local Preferences"));
gtk_container_set_border_width(GTK_CONTAINER(object), GUI_PAD);