[gtk/present-toplevel-2: 19/59] x11: Stop using gdk_surface_set_opacity
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 19/59] x11: Stop using gdk_surface_set_opacity
- Date: Thu, 12 Mar 2020 18:59:00 +0000 (UTC)
commit fafddde4bc4fcc807005f240346d37aab0fc5363
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Mar 4 09:38:27 2020 -0800
x11: Stop using gdk_surface_set_opacity
We can just use the backend api directly.
gdk/x11/gdkdrag-x11.c | 2 +-
gdk/x11/gdkprivate-x11.h | 2 ++
gdk/x11/gdksurface-x11.c | 4 ++--
3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c
index 8ac9bd782b..9f2327b813 100644
--- a/gdk/x11/gdkdrag-x11.c
+++ b/gdk/x11/gdkdrag-x11.c
@@ -1786,7 +1786,7 @@ gdk_drag_anim_timeout (gpointer data)
(drag->start_x - drag->last_x) * t,
(drag->last_y - drag->hot_y) +
(drag->start_y - drag->last_y) * t);
- gdk_surface_set_opacity (drag->drag_surface, 1.0 - f);
+ gdk_x11_surface_set_opacity (drag->drag_surface, 1.0 - f);
return G_SOURCE_CONTINUE;
}
diff --git a/gdk/x11/gdkprivate-x11.h b/gdk/x11/gdkprivate-x11.h
index d1b5e4c3e3..b97913de6d 100644
--- a/gdk/x11/gdkprivate-x11.h
+++ b/gdk/x11/gdkprivate-x11.h
@@ -231,6 +231,8 @@ void gdk_x11_surface_get_root_coords (GdkSurface *surface,
gint *root_y);
void gdk_x11_surface_raise (GdkSurface *surface);
+void gdk_x11_surface_set_opacity (GdkSurface *surface,
+ double opacity);
GdkGrabStatus _gdk_x11_convert_grab_status (gint status);
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index ab65449f2b..1102bbf869 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -4459,9 +4459,9 @@ gdk_x11_surface_beep (GdkSurface *surface)
return FALSE;
}
-static void
+void
gdk_x11_surface_set_opacity (GdkSurface *surface,
- gdouble opacity)
+ double opacity)
{
GdkDisplay *display;
gulong cardinal;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]