summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file-operations.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-01-27 22:04:52 +0100
committerraveit65 <[email protected]>2018-02-09 14:14:02 +0100
commitbf3da8eea7dad06618c84375adbb4952c74f6987 (patch)
treedd95b9a475316ba68cecd035129790eea6a2910a /libcaja-private/caja-file-operations.c
parentd8579ead4a13e66b03d2f17f3240f724008cc555 (diff)
downloadcaja-bf3da8eea7dad06618c84375adbb4952c74f6987.tar.bz2
caja-bf3da8eea7dad06618c84375adbb4952c74f6987.tar.xz
avoid deprecated GtkStock
Diffstat (limited to 'libcaja-private/caja-file-operations.c')
-rw-r--r--libcaja-private/caja-file-operations.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c
index d8320339..b1eac871 100644
--- a/libcaja-private/caja-file-operations.c
+++ b/libcaja-private/caja-file-operations.c
@@ -1367,7 +1367,7 @@ confirm_delete_from_trash (CommonJob *job,
f (_("If you delete an item, it will be permanently lost.")),
NULL,
FALSE,
- GTK_STOCK_CANCEL, GTK_STOCK_DELETE,
+ "gtk-cancel", "gtk-delete",
NULL);
return (response == 1);
@@ -1391,7 +1391,7 @@ confirm_empty_trash (CommonJob *job)
f(_("All items in the Trash will be permanently deleted.")),
NULL,
FALSE,
- GTK_STOCK_CANCEL, _("Empty _Trash"),
+ "gtk-cancel", _("Empty _Trash"),
NULL);
return (response == 1);
@@ -1433,7 +1433,7 @@ confirm_delete_directly (CommonJob *job,
f (_("If you delete an item, it will be permanently lost.")),
NULL,
FALSE,
- GTK_STOCK_CANCEL, GTK_STOCK_DELETE,
+ "gtk-cancel", "gtk-delete",
NULL);
return response == 1;
@@ -1475,7 +1475,7 @@ confirm_trash (CommonJob *job,
f (_("Items moved to the trash may be recovered until the trash is emptied.")),
NULL,
FALSE,
- GTK_STOCK_CANCEL, _("Move to _Trash"),
+ "gtk-cancel", _("Move to _Trash"),
NULL);
return response == 1;
@@ -1609,7 +1609,7 @@ delete_dir (CommonJob *job, GFile *dir,
secondary,
details,
FALSE,
- GTK_STOCK_CANCEL, _("_Skip files"),
+ "gtk-cancel", _("_Skip files"),
NULL);
g_error_free (error);
@@ -1642,7 +1642,7 @@ delete_dir (CommonJob *job, GFile *dir,
secondary,
details,
FALSE,
- GTK_STOCK_CANCEL, SKIP, RETRY,
+ "gtk-cancel", SKIP, RETRY,
NULL);
g_error_free (error);
@@ -1675,7 +1675,7 @@ delete_dir (CommonJob *job, GFile *dir,
secondary,
details,
(source_info->num_files - transfer_info->num_files) > 1,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
@@ -1752,7 +1752,7 @@ delete_file (CommonJob *job, GFile *file,
secondary,
details,
(source_info->num_files - transfer_info->num_files) > 1,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
@@ -1895,7 +1895,7 @@ trash_files (CommonJob *job, GList *files, int *files_skipped)
secondary,
details,
(total_files - files_trashed) > 1,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP, DELETE_ALL, GTK_STOCK_DELETE,
+ "gtk-cancel", SKIP_ALL, SKIP, DELETE_ALL, "gtk-delete",
NULL);
if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
@@ -2316,7 +2316,7 @@ prompt_empty_trash (GtkWindow *parent_window)
"will be permanently lost."));
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
_("Do _not Empty Trash"), GTK_RESPONSE_REJECT,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ "gtk-cancel", GTK_RESPONSE_CANCEL,
_("Empty _Trash"), GTK_RESPONSE_ACCEPT, NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
gtk_window_set_title (GTK_WINDOW (dialog), ""); /* as per HIG */
@@ -2631,7 +2631,7 @@ scan_dir (GFile *dir,
secondary,
details,
FALSE,
- GTK_STOCK_CANCEL, RETRY, SKIP,
+ "gtk-cancel", RETRY, SKIP,
NULL);
g_error_free (error);
@@ -2672,7 +2672,7 @@ scan_dir (GFile *dir,
secondary,
details,
TRUE,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP, RETRY,
+ "gtk-cancel", SKIP_ALL, SKIP, RETRY,
NULL);
g_error_free (error);
@@ -2750,7 +2750,7 @@ scan_file (GFile *file,
secondary,
details,
TRUE,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP, RETRY,
+ "gtk-cancel", SKIP_ALL, SKIP, RETRY,
NULL);
g_error_free (error);
@@ -2854,7 +2854,7 @@ verify_destination (CommonJob *job,
secondary,
details,
FALSE,
- GTK_STOCK_CANCEL, RETRY,
+ "gtk-cancel", RETRY,
NULL);
g_error_free (error);
@@ -2889,7 +2889,7 @@ verify_destination (CommonJob *job,
secondary,
NULL,
FALSE,
- GTK_STOCK_CANCEL,
+ "gtk-cancel",
NULL);
abort_job (job);
@@ -2924,7 +2924,7 @@ verify_destination (CommonJob *job,
secondary,
details,
FALSE,
- GTK_STOCK_CANCEL,
+ "gtk-cancel",
COPY_FORCE,
RETRY,
NULL);
@@ -2952,7 +2952,7 @@ verify_destination (CommonJob *job,
secondary,
NULL,
FALSE,
- GTK_STOCK_CANCEL,
+ "gtk-cancel",
NULL);
g_error_free (error);
@@ -3472,7 +3472,7 @@ create_dest_dir (CommonJob *job,
secondary,
details,
FALSE,
- GTK_STOCK_CANCEL, SKIP, RETRY,
+ "gtk-cancel", SKIP, RETRY,
NULL);
g_error_free (error);
@@ -3613,7 +3613,7 @@ copy_move_directory (CopyMoveJob *copy_job,
secondary,
details,
FALSE,
- GTK_STOCK_CANCEL, _("_Skip files"),
+ "gtk-cancel", _("_Skip files"),
NULL);
g_error_free (error);
@@ -3658,7 +3658,7 @@ copy_move_directory (CopyMoveJob *copy_job,
secondary,
details,
FALSE,
- GTK_STOCK_CANCEL, SKIP, RETRY,
+ "gtk-cancel", SKIP, RETRY,
NULL);
g_error_free (error);
@@ -3700,7 +3700,7 @@ copy_move_directory (CopyMoveJob *copy_job,
secondary,
details,
(source_info->num_files - transfer_info->num_files) > 1,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
@@ -3789,7 +3789,7 @@ remove_target_recursively (CommonJob *job,
secondary,
details,
TRUE,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
@@ -3830,7 +3830,7 @@ remove_target_recursively (CommonJob *job,
secondary,
details,
TRUE,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
@@ -4147,7 +4147,7 @@ copy_move_file (CopyMoveJob *copy_job,
secondary,
NULL,
(source_info->num_files - transfer_info->num_files) > 1,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
@@ -4180,7 +4180,7 @@ copy_move_file (CopyMoveJob *copy_job,
secondary,
NULL,
(source_info->num_files - transfer_info->num_files) > 1,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
@@ -4400,7 +4400,7 @@ copy_move_file (CopyMoveJob *copy_job,
secondary,
details,
TRUE,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
g_error_free (error);
@@ -4468,7 +4468,7 @@ copy_move_file (CopyMoveJob *copy_job,
secondary,
details,
(source_info->num_files - transfer_info->num_files) > 1,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
g_error_free (error);
@@ -4832,7 +4832,7 @@ move_file_prepare (CopyMoveJob *move_job,
secondary,
NULL,
files_left > 1,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
@@ -4986,7 +4986,7 @@ move_file_prepare (CopyMoveJob *move_job,
secondary,
details,
files_left > 1,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
g_error_free (error);
@@ -5432,7 +5432,7 @@ link_file (CopyMoveJob *job,
secondary,
details,
files_left > 1,
- GTK_STOCK_CANCEL, SKIP_ALL, SKIP,
+ "gtk-cancel", SKIP_ALL, SKIP,
NULL);
if (error) {
@@ -6190,7 +6190,7 @@ create_job (GIOSchedulerJob *io_job,
secondary,
details,
FALSE,
- GTK_STOCK_CANCEL, SKIP,
+ "gtk-cancel", SKIP,
NULL);
g_error_free (error);
@@ -6513,7 +6513,7 @@ mark_desktop_file_trusted (CommonJob *common,
error->message,
NULL,
FALSE,
- GTK_STOCK_CANCEL, RETRY,
+ "gtk-cancel", RETRY,
NULL);
} else {
response = 0;
@@ -6554,7 +6554,7 @@ mark_desktop_file_trusted (CommonJob *common,
error->message,
NULL,
FALSE,
- GTK_STOCK_CANCEL, RETRY,
+ "gtk-cancel", RETRY,
NULL);
} else {
response = 0;
@@ -6589,7 +6589,7 @@ mark_desktop_file_trusted (CommonJob *common,
error->message,
NULL,
FALSE,
- GTK_STOCK_CANCEL, RETRY,
+ "gtk-cancel", RETRY,
NULL);
} else {
response = 0;
@@ -6624,7 +6624,7 @@ mark_desktop_file_trusted (CommonJob *common,
error->message,
NULL,
FALSE,
- GTK_STOCK_CANCEL, RETRY,
+ "gtk-cancel", RETRY,
NULL);
} else {
response = 0;