From b48e21d9aa7eb16e559739b71b9d08f90dfa92be Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 12 Feb 2014 20:45:53 +0100 Subject: Stop using deprecated gtk-stock items --- smime/gui/certificate-manager.c | 6 +++--- smime/gui/e-cert-selector.c | 4 ++-- smime/gui/smime-ui.ui | 44 ++++++++++++++++++++++++----------------- 3 files changed, 31 insertions(+), 23 deletions(-) (limited to 'smime') diff --git a/smime/gui/certificate-manager.c b/smime/gui/certificate-manager.c index afdd488e92..a955303087 100644 --- a/smime/gui/certificate-manager.c +++ b/smime/gui/certificate-manager.c @@ -620,8 +620,8 @@ import_cert (GtkWidget *button, filesel = gtk_file_chooser_dialog_new ( _("Select a certificate to import..."), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, GTK_RESPONSE_OK, NULL); + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Open"), GTK_RESPONSE_OK, NULL); gtk_dialog_set_default_response (GTK_DIALOG (filesel), GTK_RESPONSE_OK); filter = gtk_file_filter_new (); @@ -1179,7 +1179,7 @@ e_cert_manager_new_certificate_viewer (GtkWindow *parent, dialog = gtk_dialog_new_with_buttons ( subject_name, parent, GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, + _("_Close"), GTK_RESPONSE_CLOSE, NULL); gtk_container_set_border_width (GTK_CONTAINER (dialog), 5); diff --git a/smime/gui/e-cert-selector.c b/smime/gui/e-cert-selector.c index 1ecc34f757..a3d4d988d8 100644 --- a/smime/gui/e-cert-selector.c +++ b/smime/gui/e-cert-selector.c @@ -229,8 +229,8 @@ e_cert_selector_init (ECertSelector *ecs) { gtk_dialog_add_buttons ( GTK_DIALOG (ecs), - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_OK"), GTK_RESPONSE_OK, NULL); ecs->priv = E_CERT_SELECTOR_GET_PRIVATE (ecs); } diff --git a/smime/gui/smime-ui.ui b/smime/gui/smime-ui.ui index 5622c4d0e5..021408705f 100644 --- a/smime/gui/smime-ui.ui +++ b/smime/gui/smime-ui.ui @@ -139,13 +139,14 @@ - gtk-delete + _Delete True False True True False - True + False + True False @@ -244,13 +245,14 @@ - gtk-edit + _Edit True False True True False - True + False + True False @@ -275,13 +277,14 @@ - gtk-delete + _Delete True False True True False - True + False + True False @@ -379,13 +382,14 @@ - gtk-edit + _Edit True False True True False - True + False + True False @@ -410,13 +414,14 @@ - gtk-delete + _Delete True False True True False - True + False + True False @@ -562,12 +567,13 @@ - gtk-cancel + _Cancel True True True False - True + False + True False @@ -577,12 +583,13 @@ - gtk-ok + _OK True True True False - True + False + True False @@ -761,12 +768,13 @@ - gtk-ok + _OK True True True False - True + False + True False @@ -790,10 +798,10 @@ True - gtk-save + document-save True - gtk-save + document-save -- cgit v1.2.3