Deal with the abscence of horizontal/vertical class when rendering an expander

This commit is contained in:
Carlos Garnacho 2011-01-12 22:07:34 +01:00
parent 26db0b7276
commit 8ad724ebcc

View File

@ -2032,7 +2032,7 @@ gtk_theming_engine_render_expander (GtkThemingEngine *engine,
if (!running)
progress = (flags & GTK_STATE_FLAG_ACTIVE) ? 1 : 0;
if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_VERTICAL))
if (!gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_HORIZONTAL))
{
if (is_rtl)
angle = (G_PI) - ((G_PI / 2) * progress);