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 /addressbook/gui/contact-editor | |
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 'addressbook/gui/contact-editor')
5 files changed, 26 insertions, 22 deletions
diff --git a/addressbook/gui/contact-editor/contact-editor.ui b/addressbook/gui/contact-editor/contact-editor.ui index 919a5a440b..7e48bc5443 100644 --- a/addressbook/gui/contact-editor/contact-editor.ui +++ b/addressbook/gui/contact-editor/contact-editor.ui @@ -2400,12 +2400,13 @@ <property name="layout_style">end</property> <child> <object class="GtkButton" id="button-help"> - <property name="label">gtk-help</property> + <property name="label" translatable="yes">_Help</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> @@ -2415,12 +2416,13 @@ </child> <child> <object class="GtkButton" id="button-cancel"> - <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> @@ -2430,13 +2432,14 @@ </child> <child> <object class="GtkButton" id="button-ok"> - <property name="label">gtk-save</property> + <property name="label" translatable="yes">_Save</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="can_default">True</property> <property name="has_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> <accelerator key="s" modifiers="GDK_CONTROL_MASK" signal="clicked"/> </object> <packing> diff --git a/addressbook/gui/contact-editor/e-contact-editor-fullname.c b/addressbook/gui/contact-editor/e-contact-editor-fullname.c index 6aabc09e8b..6850797cb0 100644 --- a/addressbook/gui/contact-editor/e-contact-editor-fullname.c +++ b/addressbook/gui/contact-editor/e-contact-editor-fullname.c @@ -220,8 +220,8 @@ e_contact_editor_fullname_init (EContactEditorFullname *e_contact_editor_fullnam gtk_dialog_add_buttons ( dialog, - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_OK"), GTK_RESPONSE_OK, NULL); gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE); diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index c67353c244..7f3aaa17b6 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -265,14 +265,14 @@ static GtkActionEntry undo_entries[] = { NULL }, /* just a fake undo menu, to get shortcuts working */ { "undo", - GTK_STOCK_UNDO, + "edit-undo", NULL, "<Control>z", N_("Undo"), NULL }, /* Handled by EFocusTracker */ { "redo", - GTK_STOCK_REDO, + "edit-redo", NULL, "<Control>y", N_("Redo"), @@ -3565,17 +3565,16 @@ image_clicked (GtkWidget *button, EContactEditor *editor) { if (!editor->priv->file_selector) { - const gchar *title = _("Please select an image for this contact"); - const gchar *no_image = _("_No image"); GtkImage *preview; GtkFileFilter *filter; editor->priv->file_selector = gtk_file_chooser_dialog_new ( - title, GTK_WINDOW (editor->priv->app), + _("Please select an image for this contact"), + GTK_WINDOW (editor->priv->app), GTK_FILE_CHOOSER_ACTION_OPEN, - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, - no_image, GTK_RESPONSE_NO, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Open"), GTK_RESPONSE_ACCEPT, + _("_No image"), GTK_RESPONSE_NO, NULL); filter = gtk_file_filter_new (); diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c index 65e3d6c3bc..b6bbccd31e 100644 --- a/addressbook/gui/contact-editor/e-contact-quick-add.c +++ b/addressbook/gui/contact-editor/e-contact-quick-add.c @@ -452,8 +452,8 @@ build_quick_add_dialog (QuickAdd *qa) e_shell_get_active_window (NULL), 0, _("_Edit Full"), QUICK_ADD_RESPONSE_EDIT_FULL, - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OK, GTK_RESPONSE_OK, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_OK"), GTK_RESPONSE_OK, NULL); gtk_widget_ensure_style (dialog); diff --git a/addressbook/gui/contact-editor/fullname.ui b/addressbook/gui/contact-editor/fullname.ui index 0751fa3c68..2c550cdd85 100644 --- a/addressbook/gui/contact-editor/fullname.ui +++ b/addressbook/gui/contact-editor/fullname.ui @@ -74,12 +74,13 @@ <property name="layout_style">end</property> <child> <object class="GtkButton" id="button1"> - <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> @@ -89,12 +90,13 @@ </child> <child> <object class="GtkButton" id="button2"> - <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> |