Use gtk_widget_add/remove_css_class() where possible

This makes the code simpler and more idiomatic to GTK 4.
This commit is contained in:
Adrien Plazas
2022-05-10 13:01:25 +02:00
parent 2fd20f72a8
commit aecfebcc9d
9 changed files with 12 additions and 24 deletions
+1 -1
View File
@@ -865,7 +865,7 @@ gcal_event_widget_init (GcalEventWidget *self)
/* Starts with horizontal */
self->orientation = GTK_ORIENTATION_HORIZONTAL;
gtk_style_context_add_class (gtk_widget_get_style_context (widget), "horizontal");
gtk_widget_add_css_class (widget, "horizontal");
}
GtkWidget*