Cosmetic: Use defines for style classes

This commit is contained in:
Matthias Clasen 2015-11-06 07:57:03 -05:00
parent 76fbcc2f26
commit 8d886f3513

View File

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