From 68412cedacf8f0e6abc1f6d075567cacb5f23f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 8 Nov 2023 15:02:44 +0800 Subject: [PATCH] shaped-texture: Get type from `klass` We don't need to get the type from the type casted class pointer, just get it from the one from the function argument. Part-of: --- src/compositor/meta-shaped-texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index 380ec2081..c085334b4 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -122,7 +122,7 @@ meta_shaped_texture_class_init (MetaShapedTextureClass *klass) gobject_class->dispose = meta_shaped_texture_dispose; signals[SIZE_CHANGED] = g_signal_new ("size-changed", - G_TYPE_FROM_CLASS (gobject_class), + G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL,