16 GTK_TYPE_CONTAINER_ACCESSIBLE)
18 static AtkObject* fl_socket_accessible_ref_child(AtkObject*
object,
int i) {
19 FlSocketAccessible*
self = FL_SOCKET_ACCESSIBLE(
object);
20 return i == 0 ? ATK_OBJECT(g_object_ref(self->accessible_socket)) :
nullptr;
28 FlSocketAccessible*
self = FL_SOCKET_ACCESSIBLE(
object);
30 g_clear_object(&self->accessible_socket);
32 G_OBJECT_CLASS(fl_socket_accessible_parent_class)->finalize(
object);
36 FlSocketAccessible*
self = FL_SOCKET_ACCESSIBLE(
object);
38 ATK_OBJECT_CLASS(fl_socket_accessible_parent_class)->initialize(
object, data);
40 self->accessible_socket = atk_socket_new();
44 GObjectClass* object_class = G_OBJECT_CLASS(klass);
47 AtkObjectClass* atk_class = ATK_OBJECT_CLASS(klass);
50 atk_class->ref_child = fl_socket_accessible_ref_child;
56 atk_socket_embed(ATK_SOCKET(self->accessible_socket),
id);