mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 20:07:36 +00:00
calls-call-window: Adapt to GtkContainer removal
https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-gtkcontainer-removal Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
parent
50126f05f0
commit
f7354a06c6
1 changed files with 4 additions and 8 deletions
|
@ -218,8 +218,7 @@ remove_call (CallsCallWindow *self,
|
|||
|
||||
if (display_call_data == ui_call_data) {
|
||||
g_list_store_remove (self->calls, i);
|
||||
gtk_container_remove (GTK_CONTAINER (self->call_stack),
|
||||
GTK_WIDGET (display));
|
||||
gtk_stack_remove (self->call_stack, GTK_WIDGET (display));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -231,14 +230,11 @@ remove_call (CallsCallWindow *self,
|
|||
static void
|
||||
remove_calls (CallsCallWindow *self)
|
||||
{
|
||||
GList *children, *child;
|
||||
GtkWidget *child;
|
||||
|
||||
/* Safely remove the call stack's children. */
|
||||
children = gtk_container_get_children (GTK_CONTAINER (self->call_stack));
|
||||
for (child = children; child != NULL; child = child->next)
|
||||
gtk_container_remove (GTK_CONTAINER (self->call_stack),
|
||||
GTK_WIDGET (child->data));
|
||||
g_list_free (children);
|
||||
while ((child = gtk_stack_get_visible_child (self->call_stack)))
|
||||
gtk_stack_remove (self->call_stack, child);
|
||||
|
||||
g_list_store_remove_all (self->calls);
|
||||
|
||||
|
|
Loading…
Reference in a new issue