diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2013-08-13 14:25:10 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2013-08-13 14:25:10 +0200 |
commit | 82a7c3ddaa1b2bda7d03f9d258fa218468156488 (patch) | |
tree | 307abfa3cbf9373e4fe4af20a8254e2ce03dd943 /src/nautilus-mime-actions.c | |
parent | 3a61cbb24090dea76af0cc14a128f0c57fba77dc (diff) | |
download | nautilus-82a7c3ddaa1b2bda7d03f9d258fa218468156488.tar.gz |
src: don't use deprecated GtkImageMenuItem and GtkStock
There's another occurrence of GtkImageMenuItem right now, for the "Open
With..." menu which is harder to fix.
Diffstat (limited to 'src/nautilus-mime-actions.c')
-rw-r--r-- | src/nautilus-mime-actions.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c index c628861b7..ae9fa8aa1 100644 --- a/src/nautilus-mime-actions.c +++ b/src/nautilus-mime-actions.c @@ -669,11 +669,11 @@ report_broken_symbolic_link (GtkWindow *parent_window, NautilusFile *file) if (!can_trash) { eel_run_simple_dialog (GTK_WIDGET (parent_window), FALSE, GTK_MESSAGE_WARNING, - prompt, detail, GTK_STOCK_CANCEL, NULL); + prompt, detail, _("_Cancel"), NULL); goto out; } - dialog = eel_show_yes_no_dialog (prompt, detail, _("Mo_ve to Trash"), GTK_STOCK_CANCEL, + dialog = eel_show_yes_no_dialog (prompt, detail, _("Mo_ve to Trash"), _("_Cancel"), parent_window); gtk_dialog_set_default_response (dialog, GTK_RESPONSE_CANCEL); @@ -744,7 +744,7 @@ get_executable_text_file_action (GtkWindow *parent_window, NautilusFile *file) _("Run in _Terminal"), RESPONSE_RUN_IN_TERMINAL, _("_Display"), RESPONSE_DISPLAY, parent_window); - gtk_dialog_add_button (dialog, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); + gtk_dialog_add_button (dialog, _("_Cancel"), GTK_RESPONSE_CANCEL); gtk_dialog_add_button (dialog, _("_Run"), RESPONSE_RUN); gtk_dialog_set_default_response (dialog, GTK_RESPONSE_CANCEL); gtk_widget_show (GTK_WIDGET (dialog)); @@ -1087,7 +1087,7 @@ confirm_multiple_windows (GtkWindow *parent_window, "This will open %d separate windows.", count), count); } dialog = eel_show_yes_no_dialog (prompt, detail, - GTK_STOCK_OK, GTK_STOCK_CANCEL, + _("_OK"), _("_Cancel"), parent_window); g_free (detail); @@ -1264,7 +1264,7 @@ show_unhandled_type_error (ActivateParametersInstall *parameters) gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Select Application"), GTK_RESPONSE_ACCEPT); - gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_OK, GTK_RESPONSE_OK); + gtk_dialog_add_button (GTK_DIALOG (dialog), _("_OK"), GTK_RESPONSE_OK); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); @@ -1593,7 +1593,7 @@ activate_desktop_file (ActivateParameters *parameters, _("Mark as _Trusted"), RESPONSE_MARK_TRUSTED); } gtk_dialog_add_button (GTK_DIALOG (dialog), - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); + _("_Cancel"), GTK_RESPONSE_CANCEL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); g_signal_connect (dialog, "response", @@ -1817,7 +1817,7 @@ activate_files (ActivateParameters *parameters) detail = g_strdup_printf (ngettext ("This will open %d separate application.", "This will open %d separate applications.", num_apps), num_apps); dialog = eel_show_yes_no_dialog (prompt, detail, - GTK_STOCK_OK, GTK_STOCK_CANCEL, + _("_OK"), _("_Cancel"), parameters->parent_window); g_free (detail); |