Alexandre Julliard : winecfg:
Disable the desktop option when configuring a specific application.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Mar 29 06:21:14 CST 2006
Module: wine
Branch: refs/heads/master
Commit: d74a62cfd796c07f9fb93e28c2bbf7f1ffa395ea
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d74a62cfd796c07f9fb93e28c2bbf7f1ffa395ea
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Mar 29 13:49:36 2006 +0200
winecfg: Disable the desktop option when configuring a specific application.
---
programs/winecfg/x11drvdlg.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/programs/winecfg/x11drvdlg.c b/programs/winecfg/x11drvdlg.c
index 4b35b25..36ec846 100644
--- a/programs/winecfg/x11drvdlg.c
+++ b/programs/winecfg/x11drvdlg.c
@@ -53,7 +53,18 @@ static void update_gui_for_desktop_mode(
WINE_TRACE("\n");
updating_ui = TRUE;
-
+
+ if (current_app)
+ {
+ disable(IDC_ENABLE_DESKTOP);
+ disable(IDC_DESKTOP_WIDTH);
+ disable(IDC_DESKTOP_HEIGHT);
+ disable(IDC_DESKTOP_SIZE);
+ disable(IDC_DESKTOP_BY);
+ return;
+ }
+ enable(IDC_ENABLE_DESKTOP);
+
/* do we have desktop mode enabled? */
if (reg_key_exists(config_key, keypath("X11 Driver"), "Desktop"))
{
More information about the wine-cvs
mailing list