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-torrent-props-dialog.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/trg-torrent-props-dialog.c') diff --git a/src/trg-torrent-props-dialog.c b/src/trg-torrent-props-dialog.c index 9b82297..3b8809d 100644 --- a/src/trg-torrent-props-dialog.c +++ b/src/trg-torrent-props-dialog.c @@ -116,7 +116,7 @@ trg_torrent_props_response_cb(GtkDialog * dlg, gint res_id, priv = TRG_TORRENT_PROPS_DIALOG_GET_PRIVATE(dlg); - if (res_id != GTK_RESPONSE_ACCEPT) { + if (res_id != GTK_RESPONSE_OK) { gtk_widget_destroy(GTK_WIDGET(dlg)); return; } @@ -295,17 +295,17 @@ static GObject *trg_torrent_props_dialog_constructor(GType type, gtk_dialog_add_button(GTK_DIALOG(object), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE); - gtk_dialog_add_button(GTK_DIALOG(object), GTK_STOCK_APPLY, - GTK_RESPONSE_ACCEPT); + gtk_dialog_add_button(GTK_DIALOG(object), GTK_STOCK_OK, + GTK_RESPONSE_OK); gtk_container_set_border_width(GTK_CONTAINER(object), GUI_PAD); gtk_dialog_set_default_response(GTK_DIALOG(object), - GTK_RESPONSE_CLOSE); + GTK_RESPONSE_OK); gtk_dialog_set_alternative_button_order(GTK_DIALOG(object), GTK_RESPONSE_ACCEPT, - GTK_RESPONSE_CLOSE, -1); + GTK_RESPONSE_OK, -1); g_signal_connect(G_OBJECT(object), "response", -- cgit v1.2.3