treewide: Replace StyleContext with GtkWidget CSS operations

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/729>
This commit is contained in:
Anton Lazarev
2024-04-25 19:31:01 -07:00
parent e2fa92ff45
commit b2f191eaec
2 changed files with 3 additions and 5 deletions

View File

@@ -77,12 +77,10 @@ adjust_style (CallsContactsBox *self, GtkWidget *widget)
if (gtk_widget_get_mapped (widget)) {
gtk_widget_set_vexpand (self->contacts_frame, TRUE);
gtk_style_context_add_class (gtk_widget_get_style_context (self->contacts_listbox),
"no-background");
gtk_widget_add_css_class (self->contacts_listbox, "no-background");
} else {
gtk_widget_set_vexpand (self->contacts_frame, FALSE);
gtk_style_context_remove_class (gtk_widget_get_style_context (self->contacts_listbox),
"no-background");
gtk_widget_remove_css_class (self->contacts_listbox, "no-background");
}
}