mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-09-29 15:25:24 +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)
|
if (widget == self->current_account_widget)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (self->current_account_widget)
|
gtk_window_set_child (self->account_window, widget);
|
||||||
gtk_container_remove (GTK_CONTAINER (self->account_window),
|
|
||||||
self->current_account_widget);
|
|
||||||
|
|
||||||
self->current_account_widget = 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 =
|
GtkListBoxRow *row =
|
||||||
gtk_list_box_get_row_at_index (GTK_LIST_BOX (self->overview), position + i - 1);
|
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++) {
|
for (guint i = 0; i < added; i++) {
|
||||||
|
|
Loading…
Reference in a new issue