1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

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");
}
}

View file

@ -40,7 +40,7 @@ insert_phonenumber (CallsContactsRow *self,
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
gtk_style_context_add_class (gtk_widget_get_style_context (label), "dim-label");
gtk_widget_add_css_class (label, "dim-label");
gtk_widget_set_visible (label, TRUE);
gtk_grid_attach (GTK_GRID (self->grid), label, 1, self->n_phonenumbers, 1, 1);