mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 10:50:08 +00:00
Cosmetic: Use defines for style classes
This commit is contained in:
parent
76fbcc2f26
commit
8d886f3513
@ -1628,7 +1628,7 @@ gtk_scale_add_mark (GtkScale *scale,
|
||||
gtk_css_node_set_name (priv->top_marks_node, I_("marks"));
|
||||
gtk_css_node_insert_before (widget_node, priv->top_marks_node, gtk_range_get_trough_node (GTK_RANGE (scale)));
|
||||
gtk_css_node_set_parent (priv->top_marks_node, widget_node);
|
||||
gtk_css_node_add_class (priv->top_marks_node, g_quark_from_static_string ("top"));
|
||||
gtk_css_node_add_class (priv->top_marks_node, g_quark_from_static_string (GTK_STYLE_CLASS_TOP));
|
||||
gtk_css_node_set_state (priv->top_marks_node, gtk_css_node_get_state (widget_node));
|
||||
g_object_unref (priv->top_marks_node);
|
||||
}
|
||||
@ -1642,7 +1642,7 @@ gtk_scale_add_mark (GtkScale *scale,
|
||||
priv->bottom_marks_node = gtk_css_node_new ();
|
||||
gtk_css_node_set_name (priv->bottom_marks_node, I_("marks"));
|
||||
gtk_css_node_insert_after (widget_node, priv->bottom_marks_node, gtk_range_get_trough_node (GTK_RANGE (scale)));
|
||||
gtk_css_node_add_class (priv->bottom_marks_node, g_quark_from_static_string ("bottom"));
|
||||
gtk_css_node_add_class (priv->bottom_marks_node, g_quark_from_static_string (GTK_STYLE_CLASS_BOTTOM));
|
||||
gtk_css_node_set_state (priv->bottom_marks_node, gtk_css_node_get_state (widget_node));
|
||||
g_object_unref (priv->bottom_marks_node);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user