Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
thunar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Lange
thunar
Commits
1859bb98
Commit
1859bb98
authored
4 years ago
by
Cyrille Pontvieux
Committed by
Alexander Schwinn
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Introduce THUNAR_JOB_RESPONSE_MAX_INT to prevent magic number + fixed
comment
parent
8cea4857
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
thunar/thunar-dialogs.c
+1
-1
1 addition, 1 deletion
thunar/thunar-dialogs.c
thunar/thunar-enum-types.h
+1
-0
1 addition, 0 deletions
thunar/thunar-enum-types.h
thunar/thunar-io-jobs-util.c
+1
-1
1 addition, 1 deletion
thunar/thunar-io-jobs-util.c
with
3 additions
and
2 deletions
thunar/thunar-dialogs.c
+
1
−
1
View file @
1859bb98
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
thunar/thunar-enum-types.h
+
1
−
0
View file @
1859bb98
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
thunar/thunar-io-jobs-util.c
+
1
−
1
View file @
1859bb98
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment