Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
19053786
Commit
19053786
authored
Mar 29, 2008
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Mar 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: verify-translation: Allow the translators to set BS_MULTILINE on buttons without an error.
parent
74870515
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
translation.c
tools/wrc/translation.c
+10
-1
No files found.
tools/wrc/translation.c
View file @
19053786
...
...
@@ -281,6 +281,7 @@ static int compare_cursor_group(cursor_group_t *cursor_group1, cursor_group_t *c
static
int
compare_control
(
control_t
*
control1
,
control_t
*
control2
)
{
int
different
=
0
;
char
*
nameid
=
NULL
;
int
ignore_style
;
if
(
!
different
&&
((
control1
&&
!
control2
)
||
(
!
control1
&&
control2
)))
...
...
@@ -291,13 +292,21 @@ static int compare_control(control_t *control1, control_t *control2) {
if
(
!
different
&&
strcmp
(
nameid
,
get_nameid_str
(
control2
->
ctlclass
)))
different
=
1
;
free
(
nameid
);
if
(
different
)
return
different
;
/* allow the translators to set some styles */
ignore_style
=
0
;
if
(
control1
->
ctlclass
->
type
==
name_ord
&&
control1
->
ctlclass
->
name
.
i_name
==
CT_BUTTON
)
ignore_style
=
0x2000
;
/* BS_MULTILINE*/
if
(
!
different
&&
(
control1
->
id
!=
control2
->
id
))
different
=
1
;
if
(
!
different
&&
control1
->
gotstyle
&&
control2
->
gotstyle
)
{
if
((
!
control1
->
style
||
!
control2
->
style
)
||
(
control1
->
style
->
and_mask
||
control2
->
style
->
and_mask
)
||
(
control1
->
style
->
or_mask
!=
control2
->
style
->
or_mask
))
(
(
control1
->
style
->
or_mask
&
~
ignore_style
)
!=
(
control2
->
style
->
or_mask
&
~
ignore_style
)
))
different
=
1
;
}
else
if
(
!
different
&&
((
control1
->
gotstyle
&&
!
control2
->
gotstyle
)
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment