diff options
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/gui/contact-editor/contact-editor.ui | 15 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor-fullname.c | 4 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 15 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-quick-add.c | 4 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/fullname.ui | 10 | ||||
-rw-r--r-- | addressbook/gui/contact-list-editor/contact-list-editor.ui | 44 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-view.c | 4 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-contact-map-window.c | 8 | ||||
-rw-r--r-- | addressbook/gui/widgets/eab-contact-display.c | 2 | ||||
-rw-r--r-- | addressbook/gui/widgets/eab-contact-merging.c | 26 | ||||
-rw-r--r-- | addressbook/gui/widgets/eab-gui-util.c | 4 |
11 files changed, 65 insertions, 71 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> diff --git a/addressbook/gui/contact-list-editor/contact-list-editor.ui b/addressbook/gui/contact-list-editor/contact-list-editor.ui index d6a197877c..c1a24f0192 100644 --- a/addressbook/gui/contact-list-editor/contact-list-editor.ui +++ b/addressbook/gui/contact-list-editor/contact-list-editor.ui @@ -209,8 +209,9 @@ <property name="can_default">True</property> <property name="has_tooltip">True</property> <property name="tooltip_text" translatable="yes">Add an email to the List</property> - <property name="label">gtk-add</property> - <property name="use_stock">True</property> + <property name="label" translatable="yes">_Add</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> <property name="xalign">0</property> <signal handler="contact_list_editor_add_button_clicked_cb" name="clicked"/> </object> @@ -227,8 +228,9 @@ <property name="can_default">True</property> <property name="has_tooltip">True</property> <property name="tooltip_text" translatable="yes">Remove an email address from the List</property> - <property name="label">gtk-remove</property> - <property name="use_stock">True</property> + <property name="label" translatable="yes">_Remove</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> <property name="xalign">0</property> <signal handler="contact_list_editor_remove_button_clicked_cb" name="clicked"/> </object> @@ -262,9 +264,9 @@ <property name="is_focus">True</property> <property name="can_default">True</property> <property name="has_default">True</property> - <property name="use_underline">True</property> - <property name="label">gtk-goto-top</property> - <property name="use-stock">True</property> + <property name="label" translatable="yes">_Top</property> + <property name="use-stock">False</property> + <property name="use-underline">True</property> <property name="sensitive">False</property> <signal name="clicked" handler="contact_list_editor_top_button_clicked_cb"/> </object> @@ -280,9 +282,9 @@ <property name="is_focus">True</property> <property name="can_default">True</property> <property name="has_default">True</property> - <property name="use_underline">True</property> - <property name="label">gtk-go-up</property> - <property name="use-stock">True</property> + <property name="label" translatable="yes">_Up</property> + <property name="use-stock">False</property> + <property name="use-underline">True</property> <property name="sensitive">False</property> <signal name="clicked" handler="contact_list_editor_up_button_clicked_cb"/> </object> @@ -297,9 +299,9 @@ <property name="visible">True</property> <property name="is_focus">True</property> <property name="has_focus">True</property> - <property name="use_underline">True</property> - <property name="label">gtk-go-down</property> - <property name="use-stock">True</property> + <property name="label" translatable="yes">_Down</property> + <property name="use-stock">False</property> + <property name="use-underline">True</property> <property name="sensitive">False</property> <signal name="clicked" handler="contact_list_editor_down_button_clicked_cb"/> </object> @@ -314,9 +316,9 @@ <property name="visible">True</property> <property name="is_focus">True</property> <property name="has_focus">True</property> - <property name="use_underline">True</property> - <property name="label">gtk-goto-bottom</property> - <property name="use-stock">True</property> + <property name="label" translatable="yes">_Bottom</property> + <property name="use-stock">False</property> + <property name="use-underline">True</property> <property name="sensitive">False</property> <signal name="clicked" handler="contact_list_editor_bottom_button_clicked_cb"/> </object> @@ -374,8 +376,9 @@ <property name="visible">True</property> <property name="is_focus">True</property> <property name="can_default">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> <signal handler="contact_list_editor_cancel_button_clicked_cb" name="clicked"/> </object> </child> @@ -383,8 +386,9 @@ <object class="GtkButton" id="ok-button"> <property name="visible">True</property> <property name="can_default">True</property> - <property name="label">gtk-save</property> - <property name="use_stock">True</property> + <property name="label" translatable="yes">_Save</property> + <property name="use_stock">False</property> + <property name="use-underline">True</property> <accelerator key="s" modifiers="GDK_CONTROL_MASK" signal="clicked"/> <signal handler="contact_list_editor_ok_button_clicked_cb" name="clicked"/> </object> diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c index 4aaa7ee598..58178747ba 100644 --- a/addressbook/gui/widgets/e-addressbook-view.c +++ b/addressbook/gui/widgets/e-addressbook-view.c @@ -1327,8 +1327,8 @@ addressbook_view_confirm_delete (GtkWindow *parent, GTK_BUTTONS_NONE, "%s", message); gtk_dialog_add_buttons ( GTK_DIALOG (dialog), - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_DELETE, GTK_RESPONSE_ACCEPT, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Delete"), GTK_RESPONSE_ACCEPT, NULL); response = gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); diff --git a/addressbook/gui/widgets/e-contact-map-window.c b/addressbook/gui/widgets/e-contact-map-window.c index 85a85fa7bd..736bad808f 100644 --- a/addressbook/gui/widgets/e-contact-map-window.c +++ b/addressbook/gui/widgets/e-contact-map-window.c @@ -29,6 +29,8 @@ #include <champlain/champlain.h> +#include <e-util/e-util.h> + #include "e-contact-map.h" #define E_CONTACT_MAP_WINDOW_GET_PRIVATE(obj) \ @@ -405,7 +407,7 @@ e_contact_map_window_init (EContactMapWindow *window) priv->spinner = button; /* Zoom-in button */ - button = gtk_button_new_from_stock (GTK_STOCK_ZOOM_IN); + button = e_dialog_button_new_with_icon ("zoom-in", _("Zoom _In")); g_signal_connect ( button, "clicked", G_CALLBACK (contact_map_window_zoom_in_cb), window); @@ -413,7 +415,7 @@ e_contact_map_window_init (EContactMapWindow *window) gtk_container_add (GTK_CONTAINER (hbox), button); /* Zoom-out button */ - button = gtk_button_new_from_stock (GTK_STOCK_ZOOM_OUT); + button = e_dialog_button_new_with_icon ("zoom-out", _("Zoom _Out")); g_signal_connect ( button, "clicked", G_CALLBACK (contact_map_window_zoom_out_cb), window); @@ -443,7 +445,7 @@ e_contact_map_window_init (EContactMapWindow *window) gtk_container_add (GTK_CONTAINER (hbox), entry); /* Search button */ - button = gtk_button_new_from_stock (GTK_STOCK_FIND); + button = e_dialog_button_new_with_icon ("edit-find", _("_Find")); g_signal_connect ( button, "clicked", G_CALLBACK (contact_map_window_find_contact_cb), window); diff --git a/addressbook/gui/widgets/eab-contact-display.c b/addressbook/gui/widgets/eab-contact-display.c index 35d9457ece..529bb0b25c 100644 --- a/addressbook/gui/widgets/eab-contact-display.c +++ b/addressbook/gui/widgets/eab-contact-display.c @@ -145,7 +145,7 @@ action_contact_send_message_cb (GtkAction *action, static GtkActionEntry internal_mailto_entries[] = { { "contact-mailto-copy", - GTK_STOCK_COPY, + "edit-copy", N_("Copy _Email Address"), NULL, N_("Copy the email address to the clipboard"), diff --git a/addressbook/gui/widgets/eab-contact-merging.c b/addressbook/gui/widgets/eab-contact-merging.c index 05bc69665f..f516eb33dd 100644 --- a/addressbook/gui/widgets/eab-contact-merging.c +++ b/addressbook/gui/widgets/eab-contact-merging.c @@ -359,7 +359,7 @@ mergeit (EContactMergingLookup *lookup) gtk_dialog_add_buttons ( GTK_DIALOG (dialog), - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, + _("_Cancel"), GTK_RESPONSE_CANCEL, _("_Merge"), GTK_RESPONSE_OK, NULL); @@ -598,22 +598,6 @@ check_if_same (EContact *contact, } static GtkWidget * -create_iconic_button (const gchar *label, - const gchar *icon_name) -{ - GtkWidget *button, *image; - - button = gtk_button_new_with_mnemonic (label); - - if (icon_name) { - image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_BUTTON); - gtk_button_set_image (GTK_BUTTON (button), image); - } - - return button; -} - -static GtkWidget * create_duplicate_contact_detected_dialog (EContact *old_contact, EContact *new_contact, gboolean disable_merge, @@ -633,13 +617,13 @@ create_duplicate_contact_detected_dialog (EContact *old_contact, "default-height", 400, NULL); - gtk_dialog_add_action_widget (dialog, create_iconic_button (_("_Cancel"), GTK_STOCK_CANCEL), GTK_RESPONSE_CANCEL); + gtk_dialog_add_action_widget (dialog, e_dialog_button_new_with_icon ("process-stop", _("_Cancel")), GTK_RESPONSE_CANCEL); if (is_for_commit) { - gtk_dialog_add_action_widget (dialog, create_iconic_button (_("_Save"), "document-save"), GTK_RESPONSE_OK); + gtk_dialog_add_action_widget (dialog, e_dialog_button_new_with_icon ("document-save", _("_Save")), GTK_RESPONSE_OK); } else { - gtk_dialog_add_action_widget (dialog, create_iconic_button (_("_Add"), "list-add"), GTK_RESPONSE_OK); - gtk_dialog_add_action_widget (dialog, create_iconic_button (_("_Merge"), NULL), GTK_RESPONSE_APPLY); + gtk_dialog_add_action_widget (dialog, e_dialog_button_new_with_icon ("list-add", _("_Add")), GTK_RESPONSE_OK); + gtk_dialog_add_action_widget (dialog, e_dialog_button_new_with_icon (NULL, _("_Merge")), GTK_RESPONSE_APPLY); } if (disable_merge) diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index ba8f5d076a..78b26fb11e 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -315,8 +315,8 @@ eab_select_source (ESourceRegistry *registry, dialog = gtk_dialog_new_with_buttons ( _("Select Address Book"), parent, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_OK"), GTK_RESPONSE_ACCEPT, NULL); gtk_window_set_default_size (GTK_WINDOW (dialog), 350, 300); |