aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-02-13 03:45:53 +0800
committerMilan Crha <mcrha@redhat.com>2014-02-13 03:47:07 +0800
commitb48e21d9aa7eb16e559739b71b9d08f90dfa92be (patch)
tree22244f22b235b1dfc80bbc50c7e2ab8eecb91cdf /shell
parent4bdbb71da69076287ffbb781109aa5687026349c (diff)
downloadgsoc2013-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 'shell')
-rw-r--r--shell/e-shell-content.c10
-rw-r--r--shell/e-shell-utils.c8
-rw-r--r--shell/e-shell-window-actions.c60
-rw-r--r--shell/main.c2
4 files changed, 40 insertions, 40 deletions
diff --git a/shell/e-shell-content.c b/shell/e-shell-content.c
index 96297b62fd..de4a58d6c3 100644
--- a/shell/e-shell-content.c
+++ b/shell/e-shell-content.c
@@ -656,9 +656,9 @@ e_shell_content_run_advanced_search_dialog (EShellContent *shell_content)
dialog = gtk_dialog_new_with_buttons (
_("Advanced Search"), GTK_WINDOW (shell_window),
GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_SAVE, GTK_RESPONSE_APPLY,
- GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Save"), GTK_RESPONSE_APPLY,
+ _("_OK"), GTK_RESPONSE_OK, NULL);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 7);
gtk_container_set_border_width (GTK_CONTAINER (widget), 3);
@@ -763,8 +763,8 @@ e_shell_content_run_save_search_dialog (EShellContent *shell_content)
dialog = gtk_dialog_new_with_buttons (
_("Save Search"), GTK_WINDOW (shell_window),
GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_OK"), GTK_RESPONSE_OK, NULL);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 7);
gtk_container_set_border_width (GTK_CONTAINER (widget), 3);
diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c
index 984c90b6af..56430ab5f1 100644
--- a/shell/e-shell-utils.c
+++ b/shell/e-shell-utils.c
@@ -67,8 +67,8 @@ e_shell_run_open_dialog (EShell *shell,
dialog = gtk_file_chooser_dialog_new (
title, parent,
GTK_FILE_CHOOSER_ACTION_OPEN,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Open"), GTK_RESPONSE_ACCEPT, NULL);
file_chooser = GTK_FILE_CHOOSER (dialog);
@@ -131,8 +131,8 @@ e_shell_run_save_dialog (EShell *shell,
dialog = gtk_file_chooser_dialog_new (
title, parent,
GTK_FILE_CHOOSER_ACTION_SAVE,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL);
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Save"), GTK_RESPONSE_ACCEPT, NULL);
file_chooser = GTK_FILE_CHOOSER (dialog);
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index 4ff9b5a10d..fcf1e07a74 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -340,7 +340,7 @@ action_categories_cb (GtkAction *action,
_("Categories Editor"),
GTK_WINDOW (shell_window),
GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);
+ _("_Close"), GTK_RESPONSE_CLOSE, NULL);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 12);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
gtk_box_pack_start (
@@ -846,57 +846,57 @@ action_work_online_cb (GtkAction *action,
static GtkActionEntry shell_entries[] = {
{ "about",
- GTK_STOCK_ABOUT,
- NULL,
+ "help-about",
+ N_("_About"),
NULL,
N_("Show information about Evolution"),
G_CALLBACK (action_about_cb) },
{ "close",
- GTK_STOCK_CLOSE,
+ "window-close",
N_("_Close Window"),
"<Control>w",
N_("Close this window"),
G_CALLBACK (action_close_cb) },
{ "close-window-menu",
- GTK_STOCK_CLOSE,
- NULL,
+ "window-close",
+ N_("_Close"),
"<Control>w",
N_("Close this window"),
G_CALLBACK (action_close_cb) },
{ "close-window",
- GTK_STOCK_CLOSE,
+ "window-close",
N_("_Close Window"),
"<Control>w",
N_("Close this window"),
G_CALLBACK (action_close_cb) },
{ "contents",
- GTK_STOCK_HELP,
+ "help-browser",
N_("_Contents"),
"F1",
N_("Open the Evolution User Guide"),
G_CALLBACK (action_contents_cb) },
{ "copy-clipboard",
- GTK_STOCK_COPY,
- NULL,
+ "edit-copy",
+ N_("_Copy"),
NULL,
N_("Copy the selection"),
NULL }, /* Handled by EFocusTracker */
{ "cut-clipboard",
- GTK_STOCK_CUT,
- NULL,
+ "edit-cut",
+ N_("Cu_t"),
NULL,
N_("Cut the selection"),
NULL }, /* Handled by EFocusTracker */
{ "delete-selection",
- GTK_STOCK_DELETE,
- NULL,
+ "edit-delete",
+ N_("_Delete"),
NULL,
N_("Delete the selection"),
NULL }, /* Handled by EFocusTracker */
@@ -916,8 +916,8 @@ static GtkActionEntry shell_entries[] = {
G_CALLBACK (action_new_window_cb) },
{ "paste-clipboard",
- GTK_STOCK_PASTE,
- NULL,
+ "edit-paste",
+ N_("_Paste"),
NULL,
N_("Paste the clipboard"),
NULL }, /* Handled by EFocusTracker */
@@ -930,8 +930,8 @@ static GtkActionEntry shell_entries[] = {
G_CALLBACK (action_categories_cb) },
{ "preferences",
- GTK_STOCK_PREFERENCES,
- NULL,
+ "preferences-system",
+ N_("_Preferences"),
"<Control><Shift>s",
N_("Configure Evolution"),
G_CALLBACK (action_preferences_cb) },
@@ -944,8 +944,8 @@ static GtkActionEntry shell_entries[] = {
G_CALLBACK (action_quick_reference_cb) },
{ "quit",
- GTK_STOCK_QUIT,
- NULL,
+ "application-exit",
+ N_("_Quit"),
NULL,
N_("Exit the program"),
G_CALLBACK (action_quit_cb) },
@@ -958,8 +958,8 @@ static GtkActionEntry shell_entries[] = {
G_CALLBACK (action_search_advanced_cb) },
{ "search-clear",
- GTK_STOCK_CLEAR,
- NULL,
+ "edit-clear",
+ N_("_Clear"),
"<Control><Shift>q",
N_("Clear the current search parameters"),
G_CALLBACK (action_search_clear_cb) },
@@ -972,14 +972,14 @@ static GtkActionEntry shell_entries[] = {
G_CALLBACK (action_search_edit_cb) },
{ "search-options",
- GTK_STOCK_FIND,
- NULL,
+ "edit-find",
+ N_("_Find"),
NULL,
N_("Click here to change the search type"),
G_CALLBACK (action_search_options_cb) },
{ "search-quick",
- GTK_STOCK_FIND,
+ "edit-find",
N_("_Find Now"),
"", /* Block the default Ctrl+F. */
N_("Execute the current search parameters"),
@@ -993,8 +993,8 @@ static GtkActionEntry shell_entries[] = {
G_CALLBACK (action_search_save_cb) },
{ "select-all",
- GTK_STOCK_SELECT_ALL,
- NULL,
+ "edit-select-all",
+ N_("Select _All"),
"<Control>a",
N_("Select all text"),
NULL }, /* Handled by EFocusTracker */
@@ -1051,7 +1051,7 @@ static GtkActionEntry shell_entries[] = {
NULL },
{ "new-menu",
- GTK_STOCK_NEW,
+ "document-new",
N_("_New"),
"",
NULL,
@@ -1223,8 +1223,8 @@ static GtkRadioActionEntry shell_gal_view_radio_entries[] = {
static GtkActionEntry shell_lockdown_print_setup_entries[] = {
{ "page-setup",
- GTK_STOCK_PAGE_SETUP,
- NULL,
+ "document-page-setup",
+ N_("Page Set_up..."),
NULL,
N_("Change the page settings for your current printer"),
G_CALLBACK (action_page_setup_cb) }
diff --git a/shell/main.c b/shell/main.c
index 40bf83e35c..29a7364a25 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -164,7 +164,7 @@ show_development_warning (void)
GTK_WINDOW (warning_dialog), TRUE);
gtk_dialog_add_button (
GTK_DIALOG (warning_dialog),
- GTK_STOCK_OK, GTK_RESPONSE_OK);
+ _("_OK"), GTK_RESPONSE_OK);
action_area = gtk_dialog_get_action_area (GTK_DIALOG (warning_dialog));
content_area = gtk_dialog_get_content_area (GTK_DIALOG (warning_dialog));