mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
signalgroup: Stop using g_type_class_ref/unref
These are just wrappers for g_type_class_get/nothing now.
This commit is contained in:
parent
85ab6140a7
commit
469357e3c9
@ -117,15 +117,9 @@ g_signal_group_set_target_type (GSignalGroup *self,
|
|||||||
* to be registered, otherwise g_signal_parse_name() will fail
|
* to be registered, otherwise g_signal_parse_name() will fail
|
||||||
*/
|
*/
|
||||||
if (G_TYPE_IS_INTERFACE (target_type))
|
if (G_TYPE_IS_INTERFACE (target_type))
|
||||||
{
|
g_type_default_interface_get (target_type);
|
||||||
if (g_type_default_interface_peek (target_type) == NULL)
|
|
||||||
g_type_default_interface_unref (g_type_default_interface_ref (target_type));
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
g_type_class_get (target_type);
|
||||||
if (g_type_class_peek (target_type) == NULL)
|
|
||||||
g_type_class_unref (g_type_class_ref (target_type));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user