[gnome-panel] notification-area: stop using deprecated gdk_display_supports_composite
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] notification-area: stop using deprecated gdk_display_supports_composite
- Date: Sun, 30 Oct 2016 22:33:32 +0000 (UTC)
commit 06e938f808043a51f3d71ef701e9e48111f73307
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Oct 30 23:04:20 2016 +0200
notification-area: stop using deprecated gdk_display_supports_composite
applets/notification_area/na-tray-child.c | 3 +--
applets/notification_area/na-tray-manager.c | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/applets/notification_area/na-tray-child.c b/applets/notification_area/na-tray-child.c
index 8684d39..00feeea 100644
--- a/applets/notification_area/na-tray-child.c
+++ b/applets/notification_area/na-tray-child.c
@@ -288,8 +288,7 @@ na_tray_child_new (GdkScreen *screen,
depth = gdk_visual_get_depth (visual);
visual_has_alpha = red_prec + blue_prec + green_prec < depth;
- child->has_alpha = (visual_has_alpha &&
- gdk_display_supports_composite (gdk_screen_get_display (screen)));
+ child->has_alpha = (visual_has_alpha && gdk_screen_is_composited (screen));
child->composited = child->has_alpha;
diff --git a/applets/notification_area/na-tray-manager.c b/applets/notification_area/na-tray-manager.c
index 99a863e..755c31f 100644
--- a/applets/notification_area/na-tray-manager.c
+++ b/applets/notification_area/na-tray-manager.c
@@ -626,7 +626,7 @@ na_tray_manager_set_visual_property (NaTrayManager *manager)
"_NET_SYSTEM_TRAY_VISUAL");
if (gdk_screen_get_rgba_visual (manager->screen) != NULL &&
- gdk_display_supports_composite (display))
+ gdk_screen_is_composited (manager->screen))
xvisual = GDK_VISUAL_XVISUAL (gdk_screen_get_rgba_visual (manager->screen));
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]