[gnome-shell/gnome-3-8] st-scroll-view: properly check if the scrollbars are visible



commit cdbb1bb665ff69fee821213d234741a7bc10c225
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Mon Jul 15 17:42:43 2013 +0200

    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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c
index 9ea394b..04e263f 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)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]