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
317fc7aa
Commit
317fc7aa
authored
Feb 07, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Mar 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Add library override instead of closing winecfg when pressing Enter.
Based on a patch by Hugh McMaster.
parent
6aa793e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
libraries.c
programs/winecfg/libraries.c
+19
-12
No files found.
programs/winecfg/libraries.c
View file @
317fc7aa
...
...
@@ -421,9 +421,15 @@ static void on_add_combo_change(HWND dialog)
len
=
SendDlgItemMessageW
(
dialog
,
IDC_DLLCOMBO
,
CB_GETLBTEXTLEN
,
sel
,
0
);
if
(
buffer
[
0
]
||
len
>
0
)
{
enable
(
IDC_DLLS_ADDDLL
)
SendMessageW
(
GetParent
(
dialog
),
DM_SETDEFID
,
IDC_DLLS_ADDDLL
,
0
);
}
else
{
disable
(
IDC_DLLS_ADDDLL
);
SendMessageW
(
GetParent
(
dialog
),
DM_SETDEFID
,
IDOK
,
0
);
}
}
static
void
set_dllmode
(
HWND
dialog
,
DWORD
id
)
...
...
@@ -492,7 +498,8 @@ static void on_add_click(HWND dialog)
SendDlgItemMessageW
(
dialog
,
IDC_DLLCOMBO
,
WM_SETTEXT
,
0
,
(
LPARAM
)
emptyW
);
disable
(
IDC_DLLS_ADDDLL
);
SendMessageW
(
GetParent
(
dialog
),
DM_SETDEFID
,
IDOK
,
0
);
WINE_TRACE
(
"Adding %s as native, builtin
\n
"
,
buffer
);
SendMessageW
(
GetParent
(
dialog
),
PSM_CHANGED
,
0
,
0
);
...
...
@@ -605,18 +612,18 @@ LibrariesDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
break
;
case
WM_COMMAND
:
switch
(
HIWORD
(
wParam
))
{
/* FIXME: when the user hits enter in the DLL combo box we should invoke the add
* add button, rather than the propsheet OK button. But I don't know how to do that!
*/
case
CBN_EDITCHANGE
:
if
(
LOWORD
(
wParam
)
==
IDC_DLLCOMBO
)
{
on_add_combo_change
(
hDlg
);
break
;
}
if
(
LOWORD
(
wParam
)
==
IDC_DLLCOMBO
)
on_add_combo_change
(
hDlg
);
break
;
case
CBN_SETFOCUS
:
if
(
LOWORD
(
wParam
)
==
IDC_DLLCOMBO
)
on_add_combo_change
(
hDlg
);
break
;
case
CBN_KILLFOCUS
:
if
(
LOWORD
(
wParam
)
==
IDC_DLLCOMBO
)
SendMessageW
(
GetParent
(
hDlg
),
DM_SETDEFID
,
IDOK
,
0
);
break
;
case
BN_CLICKED
:
switch
(
LOWORD
(
wParam
))
{
case
IDC_DLLS_ADDDLL
:
...
...
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