#include <math.h>
#include <stdlib.h>
+#include "a11y/gtklevelbaraccessible.h"
+
#include "fallback-c89.c"
#define DEFAULT_BLOCK_SIZE 3
trough_borders.top - trough_borders.bottom;
inverted = self->priv->inverted;
+ if (gtk_widget_get_direction (GTK_WIDGET (self)) == GTK_TEXT_DIR_RTL)
+ {
+ if (self->priv->orientation == GTK_ORIENTATION_HORIZONTAL)
+ inverted = !inverted;
+ }
if (self->priv->bar_mode == GTK_LEVEL_BAR_MODE_CONTINUOUS)
gtk_level_bar_draw_fill_continuous (self, cr, inverted, &fill_area);
g_type_class_add_private (klass, sizeof (GtkLevelBarPrivate));
g_object_class_install_properties (oclass, LAST_PROPERTY, properties);
+
+ gtk_widget_class_set_accessible_type (wclass, GTK_TYPE_LEVEL_BAR_ACCESSIBLE);
}
static void
/**
* gtk_level_bar_set_inverted:
* @self: a #GtkLevelBar
- * @inverted: %TRUE to invert the progress bar
+ * @inverted: %TRUE to invert the level bar
*
* Sets the value of the #GtkLevelBar:inverted property.
*