Mercurial > pidgin.yaz
comparison pidgin/gtkcertmgr.c @ 21236:73c5f5bfeb39
disapproval of revision '4b2b98ecc70947f687d13c902b1b031247b49392'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 16 Nov 2007 23:27:01 +0000 |
parents | fba1f6c3df0b |
children | 8ae227dca885 |
comparison
equal
deleted
inserted
replaced
21235:fba1f6c3df0b | 21236:73c5f5bfeb39 |
---|---|
195 _("OK"), | 195 _("OK"), |
196 G_CALLBACK(tls_peers_mgmt_import_ok2_cb), | 196 G_CALLBACK(tls_peers_mgmt_import_ok2_cb), |
197 _("Cancel"), | 197 _("Cancel"), |
198 G_CALLBACK(tls_peers_mgmt_import_cancel2_cb), | 198 G_CALLBACK(tls_peers_mgmt_import_cancel2_cb), |
199 NULL, NULL, NULL, /* No account/who/conv*/ | 199 NULL, NULL, NULL, /* No account/who/conv*/ |
200 PURPLE_UI_REQUEST_HINT_CERTMGR, crt /* Pass cert instance to callback*/ | 200 "certmgr", crt /* Pass cert instance to callback*/ |
201 ); | 201 ); |
202 | 202 |
203 g_free(default_hostname); | 203 g_free(default_hostname); |
204 } else { | 204 } else { |
205 /* Errors! Oh no! */ | 205 /* Errors! Oh no! */ |
224 _("Select a PEM certificate"), | 224 _("Select a PEM certificate"), |
225 "certificate.pem", | 225 "certificate.pem", |
226 FALSE, /* Not a save dialog */ | 226 FALSE, /* Not a save dialog */ |
227 G_CALLBACK(tls_peers_mgmt_import_ok_cb), | 227 G_CALLBACK(tls_peers_mgmt_import_ok_cb), |
228 NULL, /* Do nothing if cancelled */ | 228 NULL, /* Do nothing if cancelled */ |
229 NULL, NULL, NULL, PURPLE_UI_REQUEST_HINT_CERTMGR, NULL );/* No account,conv,etc. */ | 229 NULL, NULL, NULL, "certmgr", NULL );/* No account,conv,etc. */ |
230 } | 230 } |
231 | 231 |
232 static void | 232 static void |
233 tls_peers_mgmt_export_ok_cb(gpointer data, const char *filename) | 233 tls_peers_mgmt_export_ok_cb(gpointer data, const char *filename) |
234 { | 234 { |
300 "certificate.pem", | 300 "certificate.pem", |
301 TRUE, /* Is a save dialog */ | 301 TRUE, /* Is a save dialog */ |
302 G_CALLBACK(tls_peers_mgmt_export_ok_cb), | 302 G_CALLBACK(tls_peers_mgmt_export_ok_cb), |
303 G_CALLBACK(tls_peers_mgmt_export_cancel_cb), | 303 G_CALLBACK(tls_peers_mgmt_export_cancel_cb), |
304 NULL, NULL, NULL, /* No account,conv,etc. */ | 304 NULL, NULL, NULL, /* No account,conv,etc. */ |
305 PURPLE_UI_REQUEST_HINT_CERTMGR, crt); /* Pass the certificate on to the callback */ | 305 "certmgr", crt); /* Pass the certificate on to the callback */ |
306 } | 306 } |
307 | 307 |
308 static void | 308 static void |
309 tls_peers_mgmt_info_cb(GtkWidget *button, gpointer data) | 309 tls_peers_mgmt_info_cb(GtkWidget *button, gpointer data) |
310 { | 310 { |
373 | 373 |
374 purple_request_yes_no_with_hint(tpm_dat, _("Confirm certificate delete"), | 374 purple_request_yes_no_with_hint(tpm_dat, _("Confirm certificate delete"), |
375 primary, NULL, /* Can this be NULL? */ | 375 primary, NULL, /* Can this be NULL? */ |
376 2, /* NO is default action */ | 376 2, /* NO is default action */ |
377 NULL, NULL, NULL, | 377 NULL, NULL, NULL, |
378 PURPLE_UI_REQUEST_HINT_CERTMGR, | 378 "certmgr", |
379 id, /* id ownership passed to callback */ | 379 id, /* id ownership passed to callback */ |
380 tls_peers_mgmt_delete_confirm_cb, | 380 tls_peers_mgmt_delete_confirm_cb, |
381 tls_peers_mgmt_delete_confirm_cb ); | 381 tls_peers_mgmt_delete_confirm_cb ); |
382 | 382 |
383 g_free(primary); | 383 g_free(primary); |