[seahorse] pkcs11: Request: get rid of more GtkStock
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] pkcs11: Request: get rid of more GtkStock
- Date: Mon, 13 Aug 2018 17:56:27 +0000 (UTC)
commit 4c21b73759d3bed32074160cba053f12adfa7342
Author: Niels De Graef <nielsdegraef gmail com>
Date: Mon Aug 13 19:55:06 2018 +0200
pkcs11: Request: get rid of more GtkStock
pkcs11/pkcs11-request.vala | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/pkcs11/pkcs11-request.vala b/pkcs11/pkcs11-request.vala
index 429a4856..304a2219 100644
--- a/pkcs11/pkcs11-request.vala
+++ b/pkcs11/pkcs11-request.vala
@@ -51,10 +51,10 @@ public class Request : Gtk.Dialog {
this._name_entry = (Gtk.Entry)builder.get_object("request-name");
this._name_entry.changed.connect(() => { update_response(); });
- /* The buttons */
- this.add_buttons(Gtk.Stock.CANCEL, Gtk.ResponseType.CANCEL,
- _("Create"), Gtk.ResponseType.OK);
- this.set_default_response (Gtk.ResponseType.OK);
+ // The buttons
+ this.add_buttons(_("_Cancel"), Gtk.ResponseType.CANCEL,
+ _("Create"), Gtk.ResponseType.OK);
+ this.set_default_response (Gtk.ResponseType.OK);
this.update_response ();
@@ -99,12 +99,12 @@ public class Request : Gtk.Dialog {
private static string BAD_FILENAME_CHARS = "/\\<>|?*";
- private void save_certificate_request(Gcr.CertificateRequest req,
- Gtk.Window? parent) {
- var chooser = new Gtk.FileChooserDialog(_("Save certificate request"),
- parent, Gtk.FileChooserAction.SAVE,
- Gtk.Stock.CANCEL, Gtk.ResponseType.CANCEL,
- Gtk.Stock.SAVE, Gtk.ResponseType.ACCEPT);
+ private void save_certificate_request(Gcr.CertificateRequest req,
+ Gtk.Window? parent) {
+ var chooser = new Gtk.FileChooserDialog(_("Save certificate request"),
+ parent, Gtk.FileChooserAction.SAVE,
+ _("_Cancel"), Gtk.ResponseType.CANCEL,
+ _("_Save"), Gtk.ResponseType.ACCEPT);
chooser.set_default_response(Gtk.ResponseType.ACCEPT);
chooser.set_local_only(false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]