[seahorse] pgp: Don't use deprecated GtkStock
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] pgp: Don't use deprecated GtkStock
- Date: Tue, 19 Feb 2019 06:40:33 +0000 (UTC)
commit 31849ce64655ea5fe098684ccc6b956994db996b
Author: Niels De Graef <nielsdegraef gmail com>
Date: Tue Feb 19 07:39:56 2019 +0100
pgp: Don't use deprecated GtkStock
pgp/seahorse-gpgme-photos.c | 10 +++++-----
pgp/seahorse-pgp-key-properties.c | 4 ++--
pgp/seahorse-server-source.c | 2 +-
3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-photos.c b/pgp/seahorse-gpgme-photos.c
index de3eb929..48abd122 100644
--- a/pgp/seahorse-gpgme-photos.c
+++ b/pgp/seahorse-gpgme-photos.c
@@ -73,7 +73,7 @@ suggest_resize (GtkWindow *parent)
DEFAULT_WIDTH, DEFAULT_HEIGHT);
gtk_dialog_add_buttons (GTK_DIALOG (dlg),
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Don’t Resize"), GTK_RESPONSE_REJECT,
_("_Resize"), GTK_RESPONSE_ACCEPT,
NULL);
@@ -261,8 +261,8 @@ seahorse_gpgme_photo_add (SeahorseGpgmeKey *pkey,
if (NULL == path) {
chooser = gtk_file_chooser_dialog_new (_("Choose Photo to Add to Key"), parent,
GTK_FILE_CHOOSER_ACTION_OPEN,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Open"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_ACCEPT);
@@ -320,8 +320,8 @@ seahorse_gpgme_photo_delete (SeahorseGpgmePhoto *photo, GtkWindow *parent)
GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE,
_("Are you sure you want to remove the current photo from your key?"));
- gtk_dialog_add_button (GTK_DIALOG (dlg), GTK_STOCK_DELETE, GTK_RESPONSE_ACCEPT);
- gtk_dialog_add_button (GTK_DIALOG (dlg), GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT);
+ gtk_dialog_add_button (GTK_DIALOG (dlg), _("_Delete"), GTK_RESPONSE_ACCEPT);
+ gtk_dialog_add_button (GTK_DIALOG (dlg), _("_Cancel"), GTK_RESPONSE_REJECT);
response = gtk_dialog_run (GTK_DIALOG (dlg));
gtk_widget_destroy (dlg);
diff --git a/pgp/seahorse-pgp-key-properties.c b/pgp/seahorse-pgp-key-properties.c
index 4ff1790e..05a997da 100644
--- a/pgp/seahorse-pgp-key-properties.c
+++ b/pgp/seahorse-pgp-key-properties.c
@@ -334,7 +334,7 @@ names_update_row (SeahorseObjectModel *skmodel, SeahorseObject *object,
const gchar *name, *id;
icon = g_themed_icon_new (SEAHORSE_PGP_IS_KEY (object) ?
- SEAHORSE_ICON_SIGN : GTK_STOCK_DIALOG_QUESTION);
+ SEAHORSE_ICON_SIGN : "dialog-question");
name = seahorse_object_get_markup (object);
id = seahorse_object_get_identifier (object);
@@ -1327,7 +1327,7 @@ trust_update_row (SeahorseObjectModel *skmodel, SeahorseObject *object,
trusted = TRUE;
icon = g_themed_icon_new (SEAHORSE_PGP_IS_KEY (object) ?
- SEAHORSE_ICON_SIGN : GTK_STOCK_DIALOG_QUESTION);
+ SEAHORSE_ICON_SIGN : "dialog-question");
name = seahorse_object_get_label (object);
id = seahorse_object_get_identifier (object);
diff --git a/pgp/seahorse-server-source.c b/pgp/seahorse-server-source.c
index bbdc3040..38813da3 100644
--- a/pgp/seahorse-server-source.c
+++ b/pgp/seahorse-server-source.c
@@ -182,7 +182,7 @@ seahorse_server_source_get_uri (SeahorsePlace* self)
static GIcon *
seahorse_server_source_get_icon (SeahorsePlace* self)
{
- return g_themed_icon_new (GTK_STOCK_DIALOG_QUESTION);
+ return g_themed_icon_new (NULL);
}
static GtkActionGroup *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]