diff options
author | Milan Crha <mcrha@redhat.com> | 2014-02-13 03:45:53 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-02-13 03:47:07 +0800 |
commit | b48e21d9aa7eb16e559739b71b9d08f90dfa92be (patch) | |
tree | 22244f22b235b1dfc80bbc50c7e2ab8eecb91cdf /smime | |
parent | 4bdbb71da69076287ffbb781109aa5687026349c (diff) | |
download | gsoc2013-evolution-b48e21d9aa7eb16e559739b71b9d08f90dfa92be.tar gsoc2013-evolution-b48e21d9aa7eb16e559739b71b9d08f90dfa92be.tar.gz gsoc2013-evolution-b48e21d9aa7eb16e559739b71b9d08f90dfa92be.tar.bz2 gsoc2013-evolution-b48e21d9aa7eb16e559739b71b9d08f90dfa92be.tar.lz gsoc2013-evolution-b48e21d9aa7eb16e559739b71b9d08f90dfa92be.tar.xz gsoc2013-evolution-b48e21d9aa7eb16e559739b71b9d08f90dfa92be.tar.zst gsoc2013-evolution-b48e21d9aa7eb16e559739b71b9d08f90dfa92be.zip |
Stop using deprecated gtk-stock items
Diffstat (limited to 'smime')
-rw-r--r-- | smime/gui/certificate-manager.c | 6 | ||||
-rw-r--r-- | smime/gui/e-cert-selector.c | 4 | ||||
-rw-r--r-- | smime/gui/smime-ui.ui | 44 |
3 files changed, 31 insertions, 23 deletions
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 @@ </child> <child> <object class="GtkButton" id="your-delete-button"> - <property name="label">gtk-delete</property> + <property name="label" translatable="yes">_Delete</property> <property name="visible">True</property> <property name="sensitive">False</property> <property name="can_focus">True</property> <property name="can_default">True</property> <property name="receives_default">False</property> - <property name="use_stock">True</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">False</property> @@ -244,13 +245,14 @@ </child> <child> <object class="GtkButton" id="contact-edit-button"> - <property name="label">gtk-edit</property> + <property name="label" translatable="yes">_Edit</property> <property name="visible">True</property> <property name="sensitive">False</property> <property name="can_focus">True</property> <property name="can_default">True</property> <property name="receives_default">False</property> - <property name="use_stock">True</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">False</property> @@ -275,13 +277,14 @@ </child> <child> <object class="GtkButton" id="contact-delete-button"> - <property name="label">gtk-delete</property> + <property name="label" translatable="yes">_Delete</property> <property name="visible">True</property> <property name="sensitive">False</property> <property name="can_focus">True</property> <property name="can_default">True</property> <property name="receives_default">False</property> - <property name="use_stock">True</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">False</property> @@ -379,13 +382,14 @@ </child> <child> <object class="GtkButton" id="authority-edit-button"> - <property name="label">gtk-edit</property> + <property name="label" translatable="yes">_Edit</property> <property name="visible">True</property> <property name="sensitive">False</property> <property name="can_focus">True</property> <property name="can_default">True</property> <property name="receives_default">False</property> - <property name="use_stock">True</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">False</property> @@ -410,13 +414,14 @@ </child> <child> <object class="GtkButton" id="authority-delete-button"> - <property name="label">gtk-delete</property> + <property name="label" translatable="yes">_Delete</property> <property name="visible">True</property> <property name="sensitive">False</property> <property name="can_focus">True</property> <property name="can_default">True</property> <property name="receives_default">False</property> - <property name="use_stock">True</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">False</property> @@ -562,12 +567,13 @@ </child> <child> <object class="GtkButton" id="cancelbutton"> - <property name="label">gtk-cancel</property> + <property name="label" translatable="yes">_Cancel</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="can_default">True</property> <property name="receives_default">False</property> - <property name="use_stock">True</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">False</property> @@ -577,12 +583,13 @@ </child> <child> <object class="GtkButton" id="okbutton"> - <property name="label">gtk-ok</property> + <property name="label" translatable="yes">_OK</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="can_default">True</property> <property name="receives_default">False</property> - <property name="use_stock">True</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">False</property> @@ -761,12 +768,13 @@ </child> <child> <object class="GtkButton" id="editok"> - <property name="label">gtk-ok</property> + <property name="label" translatable="yes">_OK</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="can_default">True</property> <property name="receives_default">False</property> - <property name="use_stock">True</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> </object> <packing> <property name="expand">False</property> @@ -790,10 +798,10 @@ </object> <object class="GtkImage" id="backup-image"> <property name="visible">True</property> - <property name="stock">gtk-save</property> + <property name="icon-name">document-save</property> </object> <object class="GtkImage" id="backup-all-image"> <property name="visible">True</property> - <property name="stock">gtk-save</property> + <property name="icon-name">document-save</property> </object> </interface> |