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 /plugins/email-custom-header | |
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 'plugins/email-custom-header')
-rw-r--r-- | plugins/email-custom-header/email-custom-header.c | 8 | ||||
-rw-r--r-- | plugins/email-custom-header/org-gnome-email-custom-header.ui | 15 |
2 files changed, 14 insertions, 9 deletions
diff --git a/plugins/email-custom-header/email-custom-header.c b/plugins/email-custom-header/email-custom-header.c index e2dc23878c..1642ea5ea7 100644 --- a/plugins/email-custom-header/email-custom-header.c +++ b/plugins/email-custom-header/email-custom-header.c @@ -26,6 +26,8 @@ #include <string.h> #include <glib/gi18n.h> +#include <e-util/e-util.h> + #include "mail/em-utils.h" #include "mail/em-event.h" #include "composer/e-msg-composer.h" @@ -833,17 +835,17 @@ e_plugin_lib_get_configure_widget (EPlugin *epl) gtk_button_box_set_layout (GTK_BUTTON_BOX (vbuttonbox1), GTK_BUTTONBOX_START); gtk_box_set_spacing (GTK_BOX (vbuttonbox1), 6); - header_add = gtk_button_new_from_stock ("gtk-add"); + header_add = e_dialog_button_new_with_icon ("list-add", _("_Add")); gtk_widget_show (header_add); gtk_container_add (GTK_CONTAINER (vbuttonbox1), header_add); gtk_widget_set_can_default (header_add, TRUE); - header_edit = gtk_button_new_from_stock ("gtk-edit"); + header_edit = gtk_button_new_with_mnemonic (_("_Edit")); gtk_widget_show (header_edit); gtk_container_add (GTK_CONTAINER (vbuttonbox1), header_edit); gtk_widget_set_can_default (header_edit, TRUE); - header_remove = gtk_button_new_from_stock ("gtk-remove"); + header_remove = e_dialog_button_new_with_icon ("list-remove", _("_Remove")); gtk_widget_show (header_remove); gtk_container_add (GTK_CONTAINER (vbuttonbox1), header_remove); gtk_widget_set_can_default (header_remove, TRUE); diff --git a/plugins/email-custom-header/org-gnome-email-custom-header.ui b/plugins/email-custom-header/org-gnome-email-custom-header.ui index 26857d9997..782ad2b785 100644 --- a/plugins/email-custom-header/org-gnome-email-custom-header.ui +++ b/plugins/email-custom-header/org-gnome-email-custom-header.ui @@ -32,8 +32,9 @@ <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> - <property name="label">gtk-help</property> - <property name="use_stock">True</property> + <property name="label" translatable="yes">_Help</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> </object> @@ -43,8 +44,9 @@ <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> - <property name="label">gtk-cancel</property> - <property name="use_stock">True</property> + <property name="label" translatable="yes">_Cancel</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> </object> @@ -54,8 +56,9 @@ <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> - <property name="label">gtk-ok</property> - <property name="use_stock">True</property> + <property name="label" translatable="yes">_OK</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> </object> |