Mark Harmstone : winecfg: Invalidate property sheet when font changed.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jun 12 07:36:12 CDT 2015


Module: wine
Branch: master
Commit: 3b9ac1b18a25ea80121cbf16e98a515f844fa6f2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3b9ac1b18a25ea80121cbf16e98a515f844fa6f2

Author: Mark Harmstone <hellas at burntcomma.com>
Date:   Thu Jun 11 18:17:26 2015 +0100

winecfg: Invalidate property sheet when font changed.

When you changed the font on the Desktop Integration tab, it wasn't
enabling the Apply button.

---

 programs/winecfg/theme.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/programs/winecfg/theme.c b/programs/winecfg/theme.c
index 8ffc9bb..8bc3c88 100644
--- a/programs/winecfg/theme.c
+++ b/programs/winecfg/theme.c
@@ -1166,7 +1166,8 @@ static void on_select_font(HWND hDlg)
     cf.lpLogFont = &(metrics[index].lf);
     cf.Flags = CF_SCREENFONTS | CF_INITTOLOGFONTSTRUCT | CF_NOSCRIPTSEL | CF_NOVERTFONTS;
 
-    ChooseFontW(&cf);
+    if (ChooseFontW(&cf))
+        SendMessageW(GetParent(hDlg), PSM_CHANGED, 0, 0);
 }
 
 INT_PTR CALLBACK




More information about the wine-cvs mailing list