GTK4: observe_children does not get all removed children

** Message: 22:24:47.347: child: 0x5609dbe4fcf0                                                                                                           
** Message: 22:24:47.347: child: 0x5609dbe4fee0                                                                                                           
** Message: 22:24:47.347: child: 0x5609dbe4b770                               
                                                                            
** Message: 22:24:54.614: child: 0x5609dbe4fee0, 0 removed: 1, added: 0                                                                                   
** Message: 22:24:54.614: child: 0x5609dbe4b770, 0 removed: 1, added: 0                                                                                   
** Message: 22:24:54.614: child: (nil), 0 removed: 1, added: 0                                                                                            

** Message: 22:24:54.614: child: 3                                                                                                                        

I can’t get the last child, I allocated resource for it using hash_table and I need to release it.

The value that has been deleted cannot be obtained. Is this a feature of GListModel or a code error?

Why choose GListModel? Instead of using a new class to provide the corresponding signal or callback function?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.