Remove gtk_widget_add_class()
Should use gtk_widget_add_css_class() instead.
This commit is contained in:
@@ -24,8 +24,3 @@ void gtk_grid_set_spacing(GtkGrid *grid, int spacing) {
|
||||
gtk_grid_set_row_spacing(grid, spacing);
|
||||
gtk_grid_set_column_spacing(grid, spacing);
|
||||
}
|
||||
|
||||
void gtk_widget_add_class(GtkWidget *w, const char *class) {
|
||||
GtkStyleContext *style_context = gtk_widget_get_style_context(w);
|
||||
gtk_style_context_add_class(style_context, class);
|
||||
}
|
||||
|
||||
@@ -9,4 +9,3 @@ void gtk_widget_set_margin(GtkWidget *w, int margin);
|
||||
void gtk_widget_set_expand(GtkWidget *w, gboolean expand);
|
||||
void gtk_widget_set_align(GtkWidget *w, GtkAlign x, GtkAlign y);
|
||||
void gtk_grid_set_spacing(GtkGrid *grid, int spacing);
|
||||
void gtk_widget_add_class(GtkWidget *w, const char *class);
|
||||
|
||||
@@ -657,7 +657,7 @@ static void make_src_routing_widget(
|
||||
if (strlen(name) > 1 || !card->has_talkback) {
|
||||
GtkWidget *label = gtk_label_new(name);
|
||||
gtk_box_append(GTK_BOX(box), label);
|
||||
gtk_widget_add_class(box, "route-label");
|
||||
gtk_widget_add_css_class(box, "route-label");
|
||||
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL) {
|
||||
gtk_widget_set_halign(label, GTK_ALIGN_END);
|
||||
@@ -712,7 +712,7 @@ static void make_snk_routing_widget(
|
||||
|
||||
// create a box, a "socket", and a label
|
||||
GtkWidget *box = elem->widget = gtk_box_new(orientation, 5);
|
||||
gtk_widget_add_class(box, "route-label");
|
||||
gtk_widget_add_css_class(box, "route-label");
|
||||
GtkWidget *label = gtk_label_new(name);
|
||||
gtk_box_append(GTK_BOX(box), label);
|
||||
GtkWidget *socket = elem->widget2 = make_socket_widget();
|
||||
|
||||
Reference in New Issue
Block a user