mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 07:21:02 +00:00
Reactivate the theme when the *Windows* theme is changed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30402 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9dea35036b
commit
fcef56e1f5
4 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2010-05-16 17:39-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Headers/win32/WIN32Server.h
|
||||
* Source/win32/w32_general.m
|
||||
* Source/win32/WIN32Server.m: Added code to re-activate the
|
||||
theme when the theme changes on Windows.
|
||||
|
||||
2010-05-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* configure.ac: Make cairo the default backend. Fall back to art
|
||||
|
|
|
@ -178,6 +178,7 @@ typedef struct w32serverFlags {
|
|||
- (void) decodeWM_QUERYOPENParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd;
|
||||
- (void) decodeWM_SYSCOMMANDParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd;
|
||||
- (void) decodeWM_COMMANDParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd;
|
||||
- (void) decodeWM_THEMECHANGEDParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -666,6 +666,9 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg,
|
|||
case WM_COMMAND:
|
||||
[self decodeWM_COMMANDParams: wParam : lParam : hwnd];
|
||||
break;
|
||||
case WM_THEMECHANGED:
|
||||
[self decodeWM_THEMECHANGEDParams: wParam : lParam : hwnd];
|
||||
break;
|
||||
case WM_SYSKEYDOWN: //KEYBOARD
|
||||
NSDebugLLog(@"NSEvent", @"Got Message %s for %d", "SYSKEYDOWN", hwnd);
|
||||
ev = process_key_event(self, hwnd, wParam, lParam, NSKeyDown);
|
||||
|
@ -1099,7 +1102,10 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg,
|
|||
|
||||
if (level <= NSDesktopWindowLevel)
|
||||
{
|
||||
HWND desktop = GetDesktopWindow();
|
||||
|
||||
// For desktop level, put this at the bottom of the z-order
|
||||
SetParent((HWND)winNum, desktop);
|
||||
otherWin = (int)HWND_BOTTOM;
|
||||
NSDebugLLog(@"WTrace",
|
||||
@"orderwindow: set %i (%i) to bottom", winNum, level);
|
||||
|
|
|
@ -134,5 +134,10 @@
|
|||
{
|
||||
[[GSTheme theme] processCommand: (void *)wParam];
|
||||
}
|
||||
|
||||
|
||||
- (void) decodeWM_THEMECHANGEDParams: (WPARAM)wParam : (LPARAM)lParam : (HWND)hwnd
|
||||
{
|
||||
// Reactivate the theme when the host system changes it's theme...
|
||||
[[GSTheme theme] activate];
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue