mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 20:07:36 +00:00
calls-account-overview: Adapt to GtkBin/GtkContainer removal
https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-gtkbin-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
f7354a06c6
commit
0727996edf
1 changed files with 2 additions and 6 deletions
|
@ -150,13 +150,9 @@ attach_account_widget (CallsAccountOverview *self,
|
|||
if (widget == self->current_account_widget)
|
||||
return;
|
||||
|
||||
if (self->current_account_widget)
|
||||
gtk_container_remove (GTK_CONTAINER (self->account_window),
|
||||
self->current_account_widget);
|
||||
gtk_window_set_child (self->account_window, widget);
|
||||
|
||||
self->current_account_widget = widget;
|
||||
if (widget)
|
||||
gtk_container_add (GTK_CONTAINER (self->account_window), widget);
|
||||
}
|
||||
|
||||
|
||||
|
@ -249,7 +245,7 @@ on_accounts_changed (GListModel *accounts,
|
|||
GtkListBoxRow *row =
|
||||
gtk_list_box_get_row_at_index (GTK_LIST_BOX (self->overview), position + i - 1);
|
||||
|
||||
gtk_container_remove (GTK_CONTAINER (self->overview), GTK_WIDGET (row));
|
||||
gtk_list_box_remove (GTK_LIST_BOX (self->overview), GTK_WIDGET (row));
|
||||
}
|
||||
|
||||
for (guint i = 0; i < added; i++) {
|
||||
|
|
Loading…
Reference in a new issue