From 5604788e0b15b7be87d24ea7d80e60e9e9c27220 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Fri, 13 May 2011 21:09:23 +0000 Subject: 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) --- src/trg-preferences-dialog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/trg-preferences-dialog.c') 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); -- cgit v1.2.3