Mercurial > pidgin.yaz
diff finch/gntaccount.c @ 22257:8233bbcf3e86
The Gnome Human Interface Guidelines say, "if pressing this button by
mistake could cause a loss of data, do not set a default button for the
window. Do not make Cancel the default button instead."
So I changed our account deletion dialog to not have a default action.
For things like deleting a buddy or a certificate I think it makes
sense to have the default be "yes" because it's much less severe
than deleting an account (which deletes your buddies, contacts, etc).
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 03 Feb 2008 11:39:59 +0000 |
parents | 16ff37f64e29 |
children | cc8903c59d6b f5bcb58bdf56 |
line wrap: on
line diff
--- a/finch/gntaccount.c Sun Feb 03 11:36:33 2008 +0000 +++ b/finch/gntaccount.c Sun Feb 03 11:39:59 2008 +0000 @@ -632,7 +632,8 @@ prompt = g_strdup_printf(_("Are you sure you want to delete %s?"), purple_account_get_username(account)); - purple_request_action(account, _("Delete Account"), prompt, NULL, 0, + purple_request_action(account, _("Delete Account"), prompt, NULL, + PURPLE_DEFAULT_ACTION_NONE, account, NULL, NULL, account, 2, _("Delete"), really_delete_account, _("Cancel"), NULL);