Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d03a3417
Commit
d03a3417
authored
Jul 23, 2000
by
Francois Gouget
Committed by
Alexandre Julliard
Jul 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed obsolete references to the Languages array.
parent
fea6d13b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
36 deletions
+0
-36
language.c
programs/clock/language.c
+0
-10
language.c
programs/notepad/language.c
+0
-11
string.c
programs/progman/string.c
+0
-15
No files found.
programs/clock/language.c
View file @
d03a3417
...
...
@@ -150,12 +150,6 @@ VOID LANGUAGE_SelectByNumber(UINT num)
if
(
Globals
.
hMainMenu
)
DestroyMenu
(
Globals
.
hMainMenu
);
Globals
.
hMainMenu
=
hMainMenu
;
#ifdef WINELIB
/* Update system menus */
for
(
i
=
0
;
Languages
[
i
].
name
&&
lstrcmp
(
szLanguage
,
Languages
[
i
].
name
);)
i
++
;
if
(
Languages
[
i
].
name
)
Options
.
language
=
i
;
#endif
/* specific for Clock: */
LANGUAGE_UpdateMenuCheckmarks
();
...
...
@@ -180,10 +174,6 @@ VOID LANGUAGE_Init(VOID)
{
CHAR
szBuffer
[
MAX_PATHNAME_LEN
];
#ifdef WINELIB
Globals
.
lpszLanguage
=
(
LPSTR
)
Languages
[
Options
.
language
].
name
;
#endif
if
(
Globals
.
lpszLanguage
==
"En"
)
{
PROFILE_GetWineIniString
(
"programs"
,
"language"
,
"En"
,
szBuffer
,
sizeof
(
szBuffer
));
...
...
programs/notepad/language.c
View file @
d03a3417
...
...
@@ -127,13 +127,6 @@ VOID LANGUAGE_SelectByNumber(UINT num)
/* Destroy old menu */
if
(
Globals
.
hMainMenu
)
DestroyMenu
(
Globals
.
hMainMenu
);
Globals
.
hMainMenu
=
hMainMenu
;
#ifdef WINELIB
/* Update system menus */
for
(
i
=
0
;
Languages
[
i
].
name
&&
lstrcmp
(
lang
,
Languages
[
i
].
name
);)
i
++
;
if
(
Languages
[
i
].
name
)
Options
.
language
=
i
;
#endif
}
VOID
LANGUAGE_DefaultHandle
(
WPARAM
wParam
)
...
...
@@ -145,9 +138,6 @@ VOID LANGUAGE_DefaultHandle(WPARAM wParam)
VOID
LANGUAGE_Init
(
VOID
)
{
#ifdef WINELIB
Globals
.
lpszLanguage
=
Languages
[
Options
.
language
].
name
;
#else
CHAR
buffer
[
MAX_PATHNAME_LEN
],
*
p
;
#ifndef LCC
...
...
@@ -157,6 +147,5 @@ VOID LANGUAGE_Init(VOID)
Globals
.
lpszLanguage
=
p
=
LocalLock
(
LocalAlloc
(
LMEM_FIXED
,
lstrlen
(
buffer
)
+
1
));
strcpy
(
p
,
buffer
);
/* hmemcpy(p, buffer, 1 + lstrlen(buffer)); */
#endif
}
programs/progman/string.c
View file @
d03a3417
...
...
@@ -70,7 +70,6 @@ VOID STRING_SelectLanguageByNumber(UINT num)
CHAR
caption
[
MAX_STRING_LEN
];
CHAR
item
[
MAX_STRING_LEN
];
HMENU
hMainMenu
;
HLOCAL
hGroup
;
/* Select string table */
Globals
.
wStringTableOffset
=
num
*
0x100
;
...
...
@@ -119,20 +118,6 @@ VOID STRING_SelectLanguageByNumber(UINT num)
/* Destroy old menu */
if
(
Globals
.
hMainMenu
)
DestroyMenu
(
Globals
.
hMainMenu
);
Globals
.
hMainMenu
=
hMainMenu
;
#ifdef WINELIB
/* Update system menus */
for
(
i
=
0
;
Languages
[
i
].
name
&&
lstrcmp
(
lang
,
Languages
[
i
].
name
);)
i
++
;
if
(
Languages
[
i
].
name
)
Options
.
language
=
i
;
GetSystemMenu
(
Globals
.
hMainWnd
,
TRUE
);
for
(
hGroup
=
GROUP_FirstGroup
();
hGroup
;
hGroup
=
GROUP_NextGroup
(
hGroup
))
{
GROUP
*
group
=
LocalLock
(
hGroup
);
GetSystemMenu
(
group
->
hWnd
,
TRUE
);
}
#endif
}
/* Local Variables: */
...
...
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