Commit 7efd3913 authored by Michael Müller's avatar Michael Müller Committed by Vitaly Lipatov

winecfg: Add option to enable/disable GTK3 theming.

parent 20b2e353
......@@ -217,6 +217,7 @@
#define IDC_ENABLE_VAAPI 9002
#define IDC_ENABLE_EAX 9003
#define IDC_ENABLE_HIDEWINE 9004
#define IDC_ENABLE_GTK3 9005
/* About tab */
#define IDC_ABT_OWNER 8432
......
......@@ -90,6 +90,21 @@ static void hidewine_set(BOOL status)
set_reg_key(config_key, keypath(L""), L"HideWineExports", status ? L"Y" : L"N");
}
/*
* GTK3
*/
static BOOL gtk3_get(void)
{
BOOL ret;
WCHAR *value = get_reg_key(config_key, keypath(L""), L"ThemeEngine", NULL);
ret = (value && !wcsicmp(value, L"GTK"));
HeapFree(GetProcessHeap(), 0, value);
return ret;
}
static void gtk3_set(BOOL status)
{
set_reg_key(config_key, keypath(L""), L"ThemeEngine", status ? L"GTK" : NULL);
}
static void load_staging_settings(HWND dialog)
{
......@@ -97,6 +112,7 @@ static void load_staging_settings(HWND dialog)
CheckDlgButton(dialog, IDC_ENABLE_VAAPI, vaapi_get() ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(dialog, IDC_ENABLE_EAX, eax_get() ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(dialog, IDC_ENABLE_HIDEWINE, hidewine_get() ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(dialog, IDC_ENABLE_GTK3, gtk3_get() ? BST_CHECKED : BST_UNCHECKED);
}
INT_PTR CALLBACK StagingDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
......@@ -138,6 +154,10 @@ INT_PTR CALLBACK StagingDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
hidewine_set(IsDlgButtonChecked(hDlg, IDC_ENABLE_HIDEWINE) == BST_CHECKED);
SendMessageW(GetParent(hDlg), PSM_CHANGED, 0, 0);
return TRUE;
case IDC_ENABLE_GTK3:
gtk3_set(IsDlgButtonChecked(hDlg, IDC_ENABLE_GTK3) == BST_CHECKED);
SendMessageW(GetParent(hDlg), PSM_CHANGED, 0, 0);
return TRUE;
}
break;
}
......
......@@ -321,6 +321,7 @@ BEGIN
CONTROL "Enable &VAAPI as backend for DXVA2 GPU decoding",IDC_ENABLE_VAAPI,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,55,230,8
CONTROL "Enable Environmental Audio E&xtensions (EAX)",IDC_ENABLE_EAX,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,70,230,8
CONTROL "&Hide Wine version from applications",IDC_ENABLE_HIDEWINE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,85,230,8
CONTROL "Enable &GTK3 Theming",IDC_ENABLE_GTK3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,100,230,8
END
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment