comparison finch/gntcertmgr.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 5152a14d06a3
children f7c5bb2f6623
comparison
equal deleted inserted replaced
22256:51d2bfedf679 22257:8233bbcf3e86
232 primary = g_strdup_printf(_("Really delete certificate for %s?"), key); 232 primary = g_strdup_printf(_("Really delete certificate for %s?"), key);
233 233
234 purple_request_close_with_handle((void *)key); 234 purple_request_close_with_handle((void *)key);
235 purple_request_yes_no((void *)key, _("Confirm certificate delete"), 235 purple_request_yes_no((void *)key, _("Confirm certificate delete"),
236 primary, NULL, 236 primary, NULL,
237 1, 237 0,
238 NULL, NULL, NULL, 238 NULL, NULL, NULL,
239 g_strdup(key), 239 g_strdup(key),
240 tls_peers_mgmt_delete_confirm_cb, 240 tls_peers_mgmt_delete_confirm_cb,
241 g_free); 241 g_free);
242 242