mirror of https://github.com/GNOME/gimp.git
win: Group gimp windows together on the taskbar.
The plug-ins and the main window used to be separate.
This commit is contained in:
parent
c2a0189c98
commit
3e0d10d860
11
app/main.c
11
app/main.c
|
@ -363,6 +363,17 @@ main (int argc,
|
|||
(*p_SetProcessDEPPolicy) (PROCESS_DEP_ENABLE|PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Group all our windows together on the taskbar */
|
||||
{
|
||||
typedef HRESULT (WINAPI *t_SetCurrentProcessExplicitAppUserModelID) (PCWSTR lpPathName);
|
||||
t_SetCurrentProcessExplicitAppUserModelID p_SetCurrentProcessExplicitAppUserModelID;
|
||||
|
||||
p_SetCurrentProcessExplicitAppUserModelID = GetProcAddress (GetModuleHandle ("shell32.dll"),
|
||||
"SetCurrentProcessExplicitAppUserModelID");
|
||||
if (p_SetCurrentProcessExplicitAppUserModelID)
|
||||
(*p_SetCurrentProcessExplicitAppUserModelID) (L"gimp.GimpApplication");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef GIMP_UNSTABLE
|
||||
|
|
|
@ -307,6 +307,17 @@ gimp_main (const GimpPlugInInfo *info,
|
|||
}
|
||||
#endif
|
||||
|
||||
/* Group all our windows together on the taskbar */
|
||||
{
|
||||
typedef HRESULT (WINAPI *t_SetCurrentProcessExplicitAppUserModelID) (PCWSTR lpPathName);
|
||||
t_SetCurrentProcessExplicitAppUserModelID p_SetCurrentProcessExplicitAppUserModelID;
|
||||
|
||||
p_SetCurrentProcessExplicitAppUserModelID = GetProcAddress (GetModuleHandle ("shell32.dll"),
|
||||
"SetCurrentProcessExplicitAppUserModelID");
|
||||
if (p_SetCurrentProcessExplicitAppUserModelID)
|
||||
(*p_SetCurrentProcessExplicitAppUserModelID) (L"gimp.GimpApplication");
|
||||
}
|
||||
|
||||
/* Check for exe file name with spaces in the path having been split up
|
||||
* by buggy NT C runtime, or something. I don't know why this happens
|
||||
* on NT (including w2k), but not on w95/98.
|
||||
|
|
Loading…
Reference in New Issue