[seahorse/wip/sadiq/fixes: 3/4] pkcs11: Replace deprecated GtkStock icons



commit 8f5aa42c08c40d127cbf3ee5f208278fb4111bb2
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Tue Aug 21 22:28:34 2018 +0530

    pkcs11: Replace deprecated GtkStock icons

 pkcs11/pkcs11-properties.vala | 4 ++--
 pkcs11/pkcs11-token.vala      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pkcs11/pkcs11-properties.vala b/pkcs11/pkcs11-properties.vala
index a1b43281..f3af5797 100644
--- a/pkcs11/pkcs11-properties.vala
+++ b/pkcs11/pkcs11-properties.vala
@@ -196,9 +196,9 @@ public class Properties : Gtk.Window {
        }
 
        private const Gtk.ActionEntry[] UI_ACTIONS = {
-               { "export-object", Gtk.Stock.SAVE_AS, N_("_Export"), "",
+                { "export-object", "document-save-as", N_("_Export"), "",
                  N_("Export the certificate"), on_export_certificate },
-               { "delete-object", Gtk.Stock.DELETE, N_("_Delete"), "<Ctrl>Delete",
+               { "delete-object", "edit-delete", N_("_Delete"), "<Ctrl>Delete",
                  N_("Delete this certificate or key"), on_delete_objects },
                { "request-certificate", null, N_("Request _Certificate"), null,
                  N_("Create a certificate request file for this key"), on_request_certificate },
diff --git a/pkcs11/pkcs11-token.vala b/pkcs11/pkcs11-token.vala
index ca14d598..927118c2 100644
--- a/pkcs11/pkcs11-token.vala
+++ b/pkcs11/pkcs11-token.vala
@@ -95,7 +95,7 @@ public class Token : GLib.Object, Gcr.Collection, Place, Lockable {
                owned get {
                        var token = this._slot.get_token_info();
                        if (token == null)
-                               return new GLib.ThemedIcon(Gtk.Stock.DIALOG_QUESTION);
+                               return new GLib.ThemedIcon("dialog-question");
                        return Gcr.icon_for_token(token);
                }
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]