+/*****************************************************************************/
+/* Set vertical text alignment method. */
+/*****************************************************************************/
+static void
+set_text_valignment (glLabelObject *object,
+ glValignment text_valignment,
+ gboolean checkpoint)
+{
+ glLabelText *ltext = (glLabelText *)object;
+ glLabel *label;
+
+ gl_debug (DEBUG_LABEL, "START");
+
+ g_return_if_fail (ltext && GL_IS_LABEL_TEXT (ltext));
+
+ if (ltext->priv->valign != text_valignment)
+ {
+ if ( checkpoint )
+ {
+ label = gl_label_object_get_parent (GL_LABEL_OBJECT (ltext));
+ gl_label_checkpoint (label, _("Vertically align text"));
+ }
+
+ ltext->priv->size_changed = TRUE;
+
+ ltext->priv->valign = text_valignment;
+ gl_label_object_emit_changed (GL_LABEL_OBJECT(ltext));
+ }
+
+ gl_debug (DEBUG_LABEL, "END");
+}
+
+