[gtk/surface-scale: 4/4] x11: Notify on surface scale changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/surface-scale: 4/4] x11: Notify on surface scale changes
- Date: Sat, 16 Jan 2021 20:23:01 +0000 (UTC)
commit f14762b026c4b55b1ba06f327f1414f7c634f59f
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 16 15:21:36 2021 -0500
x11: Notify on surface scale changes
Emit property notification when the surface scale
changes.
gdk/x11/gdksurface-x11.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index 207c34e419..feecf917a2 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -2013,6 +2013,8 @@ _gdk_x11_surface_set_surface_scale (GdkSurface *surface,
surface->height * impl->surface_scale);
gdk_surface_invalidate_rect (surface, NULL);
+
+ g_object_notify (G_OBJECT (surface), "scale-factor");
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]