diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-05-13 21:09:23 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-05-13 21:09:23 +0000 |
commit | 5604788e0b15b7be87d24ea7d80e60e9e9c27220 (patch) | |
tree | 5875de495aa30a24c0fc4253c0e0d492ea572a52 /src/trg-torrent-props-dialog.c | |
parent | bde5ae0e400dc61f2eb64e7ffb9707b9c69b9113 (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-torrent-props-dialog.c')
-rw-r--r-- | src/trg-torrent-props-dialog.c | 10 |
1 files changed, 5 insertions, 5 deletions
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", |