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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3443>
This commit is contained in:
Jonas Ådahl 2023-11-08 15:02:44 +08:00 committed by Marge Bot
parent 7152779ae0
commit 68412cedac

View File

@ -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,