From cdbb1bb665ff69fee821213d234741a7bc10c225 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 15 Jul 2013 17:42:43 +0200 Subject: [PATCH] st-scroll-view: properly check if the scrollbars are visible We don't set :visible on the scrollbars, but use booleans to track if they are visible. Thus check the booleans instead of the actor's properties when allocating the scrollbars. https://bugzilla.gnome.org/show_bug.cgi?id=704265 --- src/st/st-scroll-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c index 9ea394b05..04e263f60 100644 --- a/src/st/st-scroll-view.c +++ b/src/st/st-scroll-view.c @@ -598,7 +598,7 @@ st_scroll_view_allocate (ClutterActor *actor, */ /* Vertical scrollbar */ - if (CLUTTER_ACTOR_IS_VISIBLE (priv->vscroll)) + if (vscrollbar_visible) { if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL) { @@ -617,7 +617,7 @@ st_scroll_view_allocate (ClutterActor *actor, } /* Horizontal scrollbar */ - if (CLUTTER_ACTOR_IS_VISIBLE (priv->hscroll)) + if (hscrollbar_visible) { if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL) {