[gtk+/gtk-3-22] Update API for El Capitan+
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] Update API for El Capitan+
- Date: Tue, 18 Jul 2017 18:57:34 +0000 (UTC)
commit 68b92cc6ef6f4276f4529ce49be2febdb78db06b
Author: Cody Russell <bratsche gnome org>
Date: Tue Jul 18 14:54:11 2017 -0400
Update API for El Capitan+
Use NSAnimationContext where possible.
gdk/quartz/gdkwindow-quartz.c | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 6878e52..4ffbae0 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -423,7 +423,14 @@ _gdk_quartz_display_before_process_all_updates (GdkDisplay *display)
{
in_process_all_updates = TRUE;
- NSDisableScreenUpdates ();
+ if (gdk_quartz_osx_version () >= GDK_OSX_EL_CAPITAN)
+ {
+ [NSAnimationContext endGrouping];
+ }
+ else
+ {
+ NSDisableScreenUpdates ();
+ }
}
void
@@ -453,7 +460,14 @@ _gdk_quartz_display_after_process_all_updates (GdkDisplay *display)
in_process_all_updates = FALSE;
- NSEnableScreenUpdates ();
+ if (gdk_quartz_osx_version() >= GDK_OSX_EL_CAPITAN)
+ {
+ [NSAnimationContext beginGrouping];
+ }
+ else
+ {
+ NSEnableScreenUpdates ();
+ }
}
static const gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]