Skip to content
Snippets Groups Projects
Commit 1859bb98 authored by Cyrille Pontvieux's avatar Cyrille Pontvieux Committed by Alexander Schwinn
Browse files

Introduce THUNAR_JOB_RESPONSE_MAX_INT to prevent magic number + fixed

comment
parent 8cea4857
No related branches found
No related tags found
No related merge requests found
......@@ -441,7 +441,7 @@ thunar_dialogs_show_job_ask (GtkWindow *parent,
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (message), "%s", secondary->str);
/* add the buttons based on the possible choices */
for (n = 6; n >= 0; --n)
for (n = THUNAR_JOB_RESPONSE_MAX_INT; n >= 0; --n)
{
/* check if the response is set */
response = choices & (1 << n);
......
......@@ -249,6 +249,7 @@ typedef enum /*< flags >*/
THUNAR_JOB_RESPONSE_RETRY = 1 << 5,
THUNAR_JOB_RESPONSE_FORCE = 1 << 6,
} ThunarJobResponse;
#define THUNAR_JOB_RESPONSE_MAX_INT 6
GType thunar_job_response_get_type (void) G_GNUC_CONST;
......
......@@ -102,7 +102,7 @@ thunar_io_jobs_util_next_duplicate_file (ThunarJob *job,
if (dot != NULL)
{
file_basename = g_strndup (old_display_name, dot - old_display_name);
/* I18N: put " (copy #) between basename and extension */
/* I18N: put " (copy #)" between basename and extension */
display_name = g_strdup_printf (_("%s (copy %u)%s"), file_basename, n, dot);
g_free(file_basename);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment