dialogs: Respect Windows Show Animation option
Building on d25d8778
, this patch checks the Window
"Show Animation" option and uses it to determine
if the About Dialogue animations should be active.
This commit is contained in:
@ -46,6 +46,10 @@
|
|||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* The first authors are the creators and maintainers, don't shuffle
|
/* The first authors are the creators and maintainers, don't shuffle
|
||||||
* them
|
* them
|
||||||
@ -141,13 +145,18 @@ about_dialog_create (Gimp *gimp,
|
|||||||
"gtk-enable-animations", &dialog.use_animation,
|
"gtk-enable-animations", &dialog.use_animation,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
/* gtk-enable-animation does not currently respect MacOS's Reduced Motion
|
/* gtk-enable-animation does not currently respect system settings by
|
||||||
* setting. This check can be removed once that support is added in GTK.
|
* different operating systems. This check can be removed once that
|
||||||
|
* support is added in GTK.
|
||||||
*/
|
*/
|
||||||
#ifdef PLATFORM_OSX
|
#ifdef PLATFORM_OSX
|
||||||
dialog.use_animation =
|
dialog.use_animation =
|
||||||
! ([[NSWorkspace sharedWorkspace] accessibilityDisplayShouldReduceMotion]);
|
! ([[NSWorkspace sharedWorkspace] accessibilityDisplayShouldReduceMotion]);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
SystemParametersInfo (SPI_GETCLIENTAREAANIMATION, 0x00,
|
||||||
|
&dialog.use_animation, 0x00);
|
||||||
|
#endif
|
||||||
|
|
||||||
pixbuf = about_dialog_load_logo ();
|
pixbuf = about_dialog_load_logo ();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user